I just managed to get some free time to try how easy it is to hack scanner plugins. And I have to say, it's really easy. I made these for my personal usage, but what the heck, might as well share them if someone wants to use/hack them. These are kind of ugly hacks, but it took me about two hours to get know PMS/Api and get these to work. I might do something more to these too.
1) Tv Series Scanner: Adds Temporary folder support:
Usually root-folders files are completely ignored. In my version they are scanned normally like every file (but no folder-name backup) and added to library. So this can be used with your all TV-series. Normal usage was(/should) not affected. Just add your fresh TV-series folder to section and select this scanner, it should just work.
2) Tv Music Scanner: FLAC-scanner with tags:
I implemented FLAC-tag scanning to normal Music-scanner using [mutagen](http://code.google.com/p/mutagen/), GPLv2 python tag-reader. Easy peasy. Also in this, normal usage shouldn't be affected.
I didn't test these too throughly, but give these a try! And leave comments!
Scanners go to ~/Library/Application Support/Plex Media Server/Scanners, and it should contain after moving Music, Common and Series folders. You will need to merge folders if you are already using some scanner plugins.
-tv
ps. Devs: You could make whole music-script use the mutagen, would only need one extra library.
Neither. Scanner aka. Media Scanner is the one that crawls through filesystems and passes files & data it parsed (artist,album,title/movie title, year etc) to the metadata agent. Metadata agent then gets the needed information from the internet. You can select which scanner to use in section preferences.
I was working a mutagen code as well, you diffenetly used better in a scanner than my attempt on a metadata agent. My question is I am trying to pull genre and year (which I can do in python) and maybe path to coverart while scanning. The list you you return can more things be added or is that format required for the metadata agent.
Dbl_A...say it ain't so! What is keeping you from the awesomeness that is Nine? And how did you get Framework2 to work in 8.5? Did you update the framework.bundle from the one in 9?
And another one, instead of appending files[0] you need to do:
tv_show.parts.append([f for f in files if f.endswith(filename)][0])
in the series scanner. Can someone clarify the license status of the scanners as shipped by Plex, are they really closed source, or can we build on them?
I’d like to start work on a collection of updated scanners, but don’t particularly want to start from nothing.
Use and abuse them, we'd love to see what people come up with! They are open source, obviously copyright Plex, Inc. but we encourage people to use them as the basis for enhancing or writing their own scanners.
It's awesome to see threads like this where you guys are starting to figure out how to use all this new stuff and do great things with it :)