Playlist Tutorial

Viewing 10 posts - 1 through 10 (of 21 total)
  • Author
    Posts
  • #107
    Mike
    Participant

    Would someone mind writing up a simple faq for creating playlists in the nightlies sql database? I’ve scrolled around, and there are bits of information here or there, but it still requires a lot of fiddling and searching to make it work. And frankly, I’m lazy and don’t feel like duplicating the work I’m sure at least a couple of other people have done.

    So, can one of you folks put together a simple tutorial on how to set up playlists, since a usable web based tool looks like it’s a long ways off, and there doesn’t appear to be any kind of movement towards bringing back the old mt-daapd.playlist file.

    Thanks!

    #3695
    rpedde
    Participant

    Actually, I’ve been working on the smart playlist stuff pretty steadily the last week or so. I’m thiiiiis close, and rather than write a tutorial for the playlist stuff as it exists right now in nightlies (which will disappear again in favor of something more like the existing smart playlists), I’m just going to finish it up.

    I hope that before the weekend, I’ll have the simpler cases working (strings and ints, but not playlists based on dates). I hope to also have the web interface for editing those at the same time. Once that’s all in place, then I’ll work on finishing up dates and stuff.

    It’s just hard to get traction, because there aren’t a lot of intermediate steps. Pretty much it all works or it doesn’t, and so there won’t be any visible progress on it until all of a sudden smart playlists are back.

    But I’m working on it.

    — Ron

    #3696
    Mike
    Participant

    w00t! Will we be able to define playlists based on path?

    #3697
    Spiral Scratch
    Participant

    :ohmy: Smart playlists and a web interface to edit them? My life would then be (almost) complete.

    Since moving to a Slug a couple of months ago our household has been in Networked Music Heaven. Now all I need to do is to find a way to automate a process to de-DRM the music that my wife and kids keep buying from the iTMS and I will never need to touch a computer again.

    Thanks again Ron for mt-daapd and keep up the good work.

    #3698
    rpedde
    Participant

    Mike: yes… any field in the database (even the ones that seem useless) will be useable for specifying playlist criteria. In the case of path, the playlist would look something like:

    path includes “/some/path”

    which will get translated into a sql query like:

    select * from songs where path like ‘%/some/path%’

    Spiral: Me too… that’s the thing that’s annoying about the slug — it’s a pain to ssh in, edit the playlist file, and restart the daemon. (okay, so that’s not a slug issue, it’s a mt-daapd issue). Would be much easier to web edit.

    Course the first pass as the web-based editor with be nothing more than a textarea for freeform adding… it wouldn’t be a graphical editor thing like the iTunes smart playlist editor, but it would be cool if it eventually could become that.

    Anyway… gotta stop gabbing and start coding. ๐Ÿ™‚

    — Ron

    #3699
    rpedde
    Participant

    Nightlies are up. the smart playlist editing page is the tab called ‘smart’.

    Read the nightly notes for description of valid fields, etc.

    I’ve exhaustively (in the sense of “for something like 5 minutes”) tested the web interface with safari and firefox. I have fair confidence it should work on a modernish IE, too. No promises, though… but I’d be interested to hear.

    Editing playlists doesn’t work, you have to delete and re-add. I know, I’m working on it. no error messages either. Again, I know.

    Also, as I’ve announced before, I’m web-design-challenged. I’d welcome help with making that work better, look better, whatever.

    If anyone wants to make a HTML page to serve as a “help” page for smart playlist editing (with lists of valid fields and maybe example playlists), I’d welcome it. I’d also credit you and you could be FAMOUS! Or, at least less less-well-known, if that’s worth anything. ๐Ÿ™‚

    #3700
    Mike
    Participant

    It Works!
    I have playlists again! And I don’t have to restart mt-daapd when I make a new one! Have I told you how much love I have for you?

    #3701
    rpedde
    Participant

    lol… and that’s why I do it.

    That and the kicks in the butt. Keep watching — I’ve got some more ideas for playlists, and I want to redo the configuration stuff in a javascript/xmlhttp way also.

    Glad it works for you though… It’s getting better. Slowly, but it’s getting there. ๐Ÿ™‚

    — Ron

    #3702
    Spiral Scratch
    Participant

    w00t indeed.

    Finally got the .ipk installed on the slug after I finally remembered the password (damn thing just keeps running).

    No time to play around though. Looks like navigating around the new web pages causes my mt-daapd to crash…this may be caused by Apache running on my NSLU2 in addition to httpd. If I get time tonight or (more likely) tomorrow I’ll investigate.

    Ron…do you have any other webserver software (other than the default httpd) running on your setup?

    #3703
    rpedde
    Participant

    No, my unslung slug is pretty bare. I run most of my stuff on my debonaras slug. I’m in the process of getting everything off the giant energy-sucking x86 server I have onto a debian slug.

    throw a couple giant hard drives on that with reasonable spindown times, and I have a huge server with almost no power consumption. Mmmmm. Tasty.

    As far as the web pages making it crash, I saw that too — I think I know what it is, and I hope I’ll have something on it next couple days.

    — Ron

Viewing 10 posts - 1 through 10 (of 21 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.