Bug 1769 - organisation of iTunes' podcasts in SlimServer
: organisation of iTunes' podcasts in SlimServer
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: iTunes
: 6.1.0
: All All
: P2 enhancement (vote)
: ---
Assigned To: KDF
http://localhost:9000
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-06 10:48 UTC by Patrick Cosson
Modified: 2009-09-08 09:30 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
Here is a sample (721 bytes, patch)
2005-07-06 19:34 UTC, KDF
Details | Diff
update playlist id on scans (1.04 KB, patch)
2005-07-07 02:25 UTC, KDF
Details | Diff
Add podcasts from iTunes to a "Podcasts" genre (712 bytes, patch)
2005-09-19 16:14 UTC, KDF
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Cosson 2005-07-06 10:48:34 UTC
Currently, the podcast directory from iTunes is listed under "genre" and if you select Podcast, the content 
is listed by artist (broadcaster) rather than show name.

Desired solution:  Automatically list "Browse Podcasts" in the main menu if a person uses iTunes (allow 
someone to enter their podcast directory in Server Settings if they don't use iTunes).  Once you select 
"Browse Podcasts", the list would be organized by show name and clicking on the show would generate 
the list of available shows.
Comment 1 KDF 2005-07-06 11:12:11 UTC
How about linking this instead with the Podcast Browser plugin that Dave wrote?
Comment 2 Vidur Apparao 2005-07-06 11:52:08 UTC
That could be the correct way to go...though we may need to do some
instrumentation outside the plugin. Specifically, we need to know if/when the
Podcast genre has been added to the DB.
Comment 3 KDF 2005-07-06 12:06:11 UTC
oh yeah. I missed that.  I never noticed the Podcast genre.  I found them in
playlists, which is a bit easier to trap.
Comment 4 Vidur Apparao 2005-07-06 12:10:48 UTC
I suppose either (genre or playlist) is a reasaonable way to expose podcasts as
long as we can detect the addition (during a scan) and the ongoing existence of
them.
Comment 5 Vidur Apparao 2005-07-06 12:15:30 UTC
Patrick, do you have any thoughts on how we would combine the two (local
iTunes-based podcasts and remote browsable podcast directories) in the UI? Seems
like the former would make sense as part of the Browse Podcasts menu item you
suggest, but would the latter as well? If so, would there be a second level of
the hierarchy:

Browse Podcasts > iTunes Podcasts > [Podcast names]
                > Podcast Directory > [Top level of directory]

Remember that whatever we choose will apply to both the player and web interfaces.
Comment 6 KDF 2005-07-06 12:22:29 UTC
it should be possible during iTunes scan to trap any podcast genre or podcast
playlist.  Maybe making them into a new custom url at that point would work, or
simply adding them to the 'plugin_podcast_feeds' prefs
Comment 7 Dan Sully 2005-07-06 16:00:09 UTC
Is this an easy fix for 6.1? Otherwise bump it.
Comment 8 Vidur Apparao 2005-07-06 16:04:55 UTC
It could be easy, depending on what we decide to do. We may also have a
strategic reason for adding this, albeit within the constraints of existing
deadlines.
Comment 9 KDF 2005-07-06 17:12:01 UTC
hmm...I stil can't find a genre named "podcast".  I have two that I loaded into
iTunes 4.9, and the XML shows "Family" and "Public Radio" for the genres.  The
only place they seem to be grouped is in the Playlist: Podcast.

Have I missed something?
Comment 10 Patrick Cosson 2005-07-06 17:33:26 UTC
in response to Vidur about combining the podcast plug-in and browsing my download podcasts, i would 
like to suggest that we split these experiences...one is about my content and other is about internet based 
content.  The plug-in belongs in Internet Radio and the "Browse my Podcast" belong with access to my 
content.
Comment 11 KDF 2005-07-06 17:57:21 UTC
I'm beginning to see what you mean.  Itunes actually downloads and saves episodes, whereas the 
browser is meant to store the links for downloading on demand.

As such, its is not easy to merge the two, and probably is better of being separate.  However, the genre 
isn't fixed.  The only link the the Podcasts playlist, which is always available to the users via browse 
playlists.  It might be possible for the itunes plugin to create a link on the home page to directly browse 
that playlist.
Comment 12 KDF 2005-07-06 19:34:17 UTC
Created attachment 603 [details]
Here is a sample

This creates a link on the home page to jump directly into browsing the iTunes
Podcasts playlist, if one is found. the edit playlist form still shows, but I'm
sure a bit of tweaking can get rid of that.
Comment 13 KDF 2005-07-07 02:25:09 UTC
Created attachment 606 [details]
update playlist id on scans

made the link adder into a function, so that it can be called on initPlugin,
and on doneScanning.
Comment 14 Vidur Apparao 2005-07-13 14:37:24 UTC
kdf, care to check in that last patch? Let's get it out there and get some
testing. Thanks!
Comment 15 KDF 2005-07-13 16:19:30 UTC
will do
Comment 16 KDF 2005-07-13 18:21:54 UTC
committed at change 3697
Comment 17 Vidur Apparao 2005-07-13 21:34:29 UTC
Cc:ing Dean as an FYI that this went in today. Check it out and let us know what
you think.
Comment 18 Patrick Cosson 2005-07-15 15:53:12 UTC
Input regarding nightly:
* itunes podcast is not available on the display's main menu
* when you view the web list, everything is listed in one long list without any apparent order instead of 
first presenting show names on the first level (our in our language: Album name).

New request:
* sort podcasts for each broadcaster (Album) by the date of each broadcast
 (with the date visible)...most recent on top.
Comment 19 KDF 2005-07-15 16:26:43 UTC
That will require a lot more manipulation.  More than will make it in time for
6.1. iTunes only presents these as a playlist, so the server would have to do
all the work.
Comment 20 KDF 2005-07-15 17:20:34 UTC
adding the following to iTunes::setPodcasts() will add a player menu option:

	Slim::Buttons::Home::addMenuOption('ITUNES_PODCASTS', {
			'useMode'  => 'browsedb',
			'hierarchy' => 'playlist,playlistTrack',
			'level' => 1,
			'findCriteria' => {'playlist' => @$podcast[0]->id()},
		}) if @$podcast[0];
Comment 21 Vidur Apparao 2005-07-15 17:33:19 UTC
We should add it to Browse Music, no?
Comment 22 KDF 2005-07-15 17:39:53 UTC
then its this:

Slim::Buttons::Home::addSubMenu('BROWSE_MUSIC','ITUNES_PODCASTS', {
			'useMode'  => 'browsedb',
			'hierarchy' => 'playlist,playlistTrack',
			'level' => 1,
			'findCriteria' => {'playlist' => @$podcast[0]->id()},
		}) if @$podcast[0];

Having both would be consistent with the other browse lists, since some users
may want to move iTunes Podcasts to the top level, instead of just within Browse
Music.

Sorting appears to be 'in the order listed in the playlist', as it is for any
playlist.  I'm not sure exactly how to go about doing any mroe complex parsing
and/or sorting. At least, not with existing server code.
Comment 23 Vidur Apparao 2005-07-19 14:57:49 UTC
Checked in your patches with change 3748.
Comment 24 KDF 2005-08-03 15:54:59 UTC
remarking as enhancement, as far as organisation
Comment 25 KDF 2005-08-26 15:02:31 UTC
I think this will need some sort of mechanism that allows Browse By Album, with
a find such that an album's tracks exist within a given playlist.  

Dan, is there any way to do this with what we have?  Is there a more appropriate
target for this, or a different solution for what Patrick wishes to see (comment
18)?
Comment 26 KDF 2005-09-19 16:14:27 UTC
Created attachment 837 [details]
Add podcasts from iTunes to a "Podcasts" genre

Creating a whole new method for hierarchy and browsing might not be feasible. 
So, I have another idea to get us closer to this request.  On loading iTunes,
parse the itunes podcasts playlist, adding a genre for each track: "podcasts". 
This way, itunes (and any other podcasts) can be viewed as a genre.  The
"browse podcasts" link could, instead, point to this genre instead of the
playlist.  Thus, you would gain the benefit of the multilevel browsing that is
already in place.
Comment 27 Blackketter Dean 2005-09-28 17:41:42 UTC
Try out what's in tonight's nightly and let me know what you think.