Jump to content

Codec

Member
  • Posts

    6
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Codec reacted to smirky in DJ Pedro - iTunes playlist based on Last.fm similar artists   
    DJ Pedro - Create iTunes playlist based on Last.fm similar artists
    (Updated 10/11/2015 - Fix for broken Last.fm API links)
     
    This workflow uses the Last.fm API for "similar artists" to create and play a playlist based on either the artist of the currently playing song or an artist searched for within the local iTunes Library. The workflow does not require that you use Last.fm, it only pulls information from their database using their API. (i.e., no scrobbling required.)
     
    DJ Pedro now lives on the wonderful Packal repository. The best reason for you to get this version is that Packal will handle tracking any future updates so you no longer need to watch this thread.
     
    Get the Packal version here
     
    The workflow is triggered by a hotkey or the keyword "dj", and if an argument is added the workflow searches your iTunes library for artists that match the query.
     
    NEW: I added a couple Alfred Remote triggers to the workflow, the best one allows you to create a DJ Pedro playlist from anywhere in your house via the currently playing iTunes track. This is a feature I have wanted since originally creating the workflow. :-)
    You can add the individual trigger(s) to your own custom Remote page or use the DJ Pedro Remote Page. It's fairly minimal at the moment, but I'm considering adding a Favorites feature since we can't yet type directly into an Alfred window via the remote.
     
    NEW: If you use my Last.fm and/or Discogs workflows you can now trigger those from results in DJ Pedro's Suggested Artist list using modifier keys. I tend to think that's pretty sweet.


    Settings for the workflow can be modified by triggering the "djprefs" script filter. Available modifications are:
    Playlist name Number of tracks in the created playlist Search limit for 'similar artists' the workflow requests from Last.fm. Maximum tracks per artist added to the playlist. Enable/disable the notification that lists any artists suggested by Last.fm that were not found in your Library.
    Credits/Acknowledgments:
    Much of the script for displaying artists and their artwork was borrowed from the great "Play Song" workflow, by "caleb531", which you should download if you don't have it yet. Additional scripting was improved by using the qWorkflow library developed by "ursanrazvan". Yes, DJ Pedro is named after our cat.
    Notes:
    This workflow creates a folder in your iTunes folder called "Alfred Album Artwork" for easy access to album artwork icons. This folder should be extremely small and is easily deleted if you delete the workflow.
    Known/Possible Issues:
    Because of the way iTunes 11 handles playlists, there's a pause/un-pause coded into DJ Pedro at the start of playback. If Apple ever provides a better way to deal with Up Next, besides GUI scripting, I'll update this.  
    I'm an amateur coder, so please be kind to my messy code, etc. Constructive criticism is greatly appreciated!
    I hope this workflow helps you enjoy your music a little bit more.
×
×
  • Create New...