--- iTunes.pm 2005-09-17 02:58:00.000000000 -0700 +++ Plugins/iTunes.pm 2005-09-19 16:10:40.332527600 -0700 @@ -889,7 +889,23 @@ sub handlePlaylist { $cacheEntry->{'VALID'} = '1'; Slim::Music::Info::updateCacheEntry($url, $cacheEntry); - + + # Check for podcasts and add to custom Genre + if ($name =~ /podcasts/i) { + + my $ds = Slim::Music::Info::getCurrentDataStore(); + + foreach my $url (@{$cacheEntry->{'LIST'}}) { + + # update with Podcast genre + my $track = $ds->updateOrCreate({ + + 'url' => $url, + 'attributes' => {'GENRE' => 'Podcasts'}, + }); + } + } + $::d_itunes && msg("iTunes: playlists now has " . scalar @{$cacheEntry->{'LIST'}} . " items...\n"); }