@accepts(utf8, gint)
def add_location(location, index)

If the location matches an entry in the database, the entry is added to the playlist. Otherwise, if it identifies a directory, the contents of that directory are added.

location :

location (URI) to add to the playlist

index :

position at which to add the location (-1 to add at the end)