I thought that I might as well upload my iTunes podcast scanner in case someone else finds it useful. I have had the problem with iTunes that as it deletes podcasts, the instance of an episode is not always completely removed, hence it is still listed in the iTunes Library.xml file. Since the iTunes plugin for plex uses this xml file to list episodes, none existent episodes are listed which becomes confusing after a while. Therefore I wrote this very simple scanner to just list all the episodes in a simple manner.
It uses TV Series section type and year as the season. It is still a little unpolished so for episode number it uses the date and a trailing incremental number. This is due to the problem that since most podcasts do not have an episode number or published date in the metadata and that plex needs this to differentiate between different episodes.
Future features I plan is to look up episodes in the iTunes Library.xml file and fetch downloaded date to replace the file creation date I use today. I also plan to see if it is possible to somehow call back to iTunes to mark a file as watched.
Podcast.zip (1.43 KB)
I have the same problem, have not been able to finde a solution 
Good to hear that somebody else is having this problem. I haven’t had time to extend this plugin and I do not know if it is possible to achieve what I want but at least it has been a good enough solution for me.
But I cannot for any good reason understand why the iTunes library file saves old deleted episodes. And that they are always added to the new xml file every time it is rebuilt.
Excellent job!! Thank you! 
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.