Pro Yearly is on sale from $80 to $50! »

itunes-client

 itunes-client

2da0f25da3bb542a8724475589ac79a3?s=128

Ryo Katsuma

March 29, 2014
Tweet

Transcript

  1. itunes-client Ryo Katsuma Tokyu Ruby Kaigi #07

  2. http://www.flickr.com/photos/koichiroo/9293622896/ Ryo Katsuma @ryo_katsuma Engineer at COOKPAD Inc.

  3. http://www.flickr.com/photos/desarrollalatam/10271530923/ Hack

  4. music http://www.gratisography.com/

  5. iTunes https://www.apple.com/itunes/

  6. iTunes meets https://www.apple.com/itunes/

  7. iTunes meets Ruby https://www.apple.com/itunes/

  8. to improve operability? https://www.apple.com/itunes/

  9. a new Ruby gem

  10. ɹitunes-client https://github.com/katsuma/itunes-client

  11. ɹitunes-client https://github.com/katsuma/itunes-client Demo

  12. Find tracks with some conditions by Ruby

  13. Find tracks with some conditions by Ruby itunes-client solves it

  14. Itunes::Track.find_by

  15. None
  16. Play or Stop a track by Ruby

  17. Play or Stop a track by Ruby itunes-client solves it

  18. Itunes::Track#play

  19. Itunes::Track#pause

  20. Itunes::Track#stop

  21. None
  22. Add a new file, and tag it by Ruby

  23. Add a new file, and tag it by Ruby itunes-client

    solves it
  24. Itunes::Player.add

  25. Itunes::Track#update

  26. None
  27. tell application "iTunes" set specified_tracks to (every track whose #{conditions})

    … end generate temporary AppleScript
  28. execute_out, process_status = ɹ ɹ*Open3.capture2("osascript #{script_path}") exec it by osascript

  29. Play a song stored at YouTube by iTunes

  30. Play a song stored at YouTube by iTunes itunes-client wrapper

    solves it
  31. ɹtaifu https://github.com/katsuma/taifu

  32. taifu http://youtube.com/watch?v=I1X6MrBfjrk

  33. Download by youtube-dl

  34. Download by youtube-dl Convert by ffmpeg

  35. Download by youtube-dl Convert by ffmpeg Add, encode and tag

    by itunes-client
  36. Automation is great

  37. http://www.flickr.com/photos/desarrollalatam/10271530923/ happy music hack