possible bug only allowing 2 digit seasons to be scanned properly
I'm trying to use the Plex Series Scanner to bring in some HOME videos... I have my files structured as such:
Home Videos
>>Halloween
>>>>Halloween - S1998E01 - Trick or Treating.m4v
>>>>Halloween - S2001E02 - Getting Read.m4v
The scanner works great to bring in all my files - but they don't have episode names. So I started embedding file names using metaX for mac. When I scanned in my files again, still no episode titles appeared.
coincidentally however, I had a file in there named: Halloween - S19E01 - Candy.m4v that had an embedded title name of "eating candy" and the scanner DID bring in the episode title for this file.
So it seems, after some testing, that the scanner will bring in embedded metadata if you have a 2 digit season but it wont work if you have a 4 digit season.
Can someone point me to, or help me modify the code so the criteria for scanning in embedded metadata will be expanded to 4 digit seasons?
I actually found this when investigating issues I’m having with an agent I’m trying to write. As I was digging through various agents looking for examples, I found that the local media agent explicitly ignores any season above 1900. The comment in the code is not completely clear as to why. I can dig it out for you when I get home later.
However, I think that the restriction was put in to avoid problems with date based episodes, which scan in with Season = year, episode = nil, and there is definitively a problem with metadata and date based episodes (which is what my agent was supposed to do), but I was successful in adding metadata to episodes named as yours (season=year, episode=month-day)
EDIT:
Here it is.
~/Library/Application Support/Plex Media Server/Plug-ins/LocalMedia.bundle/Contents/Code/init.py, line 90
# If we’ve got a date based season, ignore it for now, otherwise it’ll collide with S/E folders/XML and PMS