More TwonkyMedia work...
Dec. 14th, 2007 07:49 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
So more work on the UPnP server today. One big annoyance has been that Twonky would not correctly import my iTunes playlists. I finally sat down and hacked my own solution to this.
Some parts that went into this: A little bit of XSLT and Saxon to process the XML using the XSLT.
At first I thought I would have to generate Twonky style .playlist files, but Twonky will correctly show the original .m3u files if you just point it at a folder full of them. Easy enough!
Next was on to video sorting. I DVR a lot of television shows, and while I previously worked on a solution to get Twonky to work well with the scheme eyeTV uses for its recordings, I still ended up with a huge list of videos. I would have to skip through twenty or so episodes of "Boston Legal" to get to the first episode of "Chuck", for example.
In a very quick five minutes I got the script to not only create the well-named symlinks to the original eyeTV recordings, but also auto-generate folders to contain any series it finds. This means that all of the episodes of "Boston Legal" end up in a "Boston Legal" folder, and that means I only have to skip past *one* folder to get to episodes of "Chuck".
The plan is to eventually get some of these scripts (and maybe some better documentation) online.
Some parts that went into this: A little bit of XSLT and Saxon to process the XML using the XSLT.
At first I thought I would have to generate Twonky style .playlist files, but Twonky will correctly show the original .m3u files if you just point it at a folder full of them. Easy enough!
Next was on to video sorting. I DVR a lot of television shows, and while I previously worked on a solution to get Twonky to work well with the scheme eyeTV uses for its recordings, I still ended up with a huge list of videos. I would have to skip through twenty or so episodes of "Boston Legal" to get to the first episode of "Chuck", for example.
In a very quick five minutes I got the script to not only create the well-named symlinks to the original eyeTV recordings, but also auto-generate folders to contain any series it finds. This means that all of the episodes of "Boston Legal" end up in a "Boston Legal" folder, and that means I only have to skip past *one* folder to get to episodes of "Chuck".
The plan is to eventually get some of these scripts (and maybe some better documentation) online.