Single TV Folder full of multiple shows

here's you scanner
For all of those wishing to have a scanner full of multiple Tv shows, here you go...

Currently all episodes must have this format Tv show.SxxExx.format or Tv show.Sxx.Exx.format.

This means that your tv shows can be called "The Simpsons" or "the.Simpsons" and it wil put it into pmm. This means that your season/epsiode item can have upper ow lower case "S"'s and "E"'s, and it can either have a dot between Sxx and Exx, or not. I does not matter.

I had to zip the file to upload it. unzip the file. Load it into ~Library/Application Support/Plex Media Server/Scanners/Series. If the "Series" folder does not exist, make one.


*Update: new version below, and it is a ton faster. Also, read above for features.*

updated version above

This is just what I’ve been looking for - cheers.



Just seems like I have a small problem though… I added the file to the Series folder (newly created at the path you specified above), updated the Library in Media Server and loaded Plex, but they’re not showing up? Any ideas? The file names follow the required format (TVshow.SxxExx.moretext.format).



Would be great to get this working.

My bad. I thought you could have junk, but you can’t. Try taking the junk out and just go from season episode to format.

I got this to add the video with a name like Modern.Family.S02E07.HDTV.XviD-LOL.avi but then it has an issue with actually playing the file. It gives an error of unknown input format. Would love to use this as it is better for shows I dont want to keep around for more than one watch.

Take out HDTV and xvid

I ran into an error which required this patch to fix.



Patched version is attached.Single Folder Plex Series Scanner.py.zip (3.56 KB)



— Single Folder Plex Series Scanner.py.orig 2010-11-05 21:43:20.000000000 -0500

+++ Single Folder Plex Series Scanner.py 2010-11-05 21:42:52.000000000 -0500

@@ -75,7 +75,10 @@

except:

pass

if showname == ‘’:

  •        (showname, season, episode)=re.findall('_(.+?)\.[Ss]([0-9]+)[Ee]([0-9]+)',file)[0]<br />
    
  •        try:<br />
    
  •          (showname, season, episode)=re.findall('_(.+?)\.[Ss]([0-9]+)[Ee]([0-9]+)',file)[0]<br />
    
  •        except:<br />
    
  •          continue<br />
       file=file.replace("_","")<br />
       showname=showname.replace("_",":")<br />
       print (showname)

Strange - I still can’t get the single folder to work.



I tried removing the extra text, so the filename read as Title.SxxExx.format.

That still didn’t pickup individual files in the main media folder.



Everything else works fine, it shows anything that I put in a subfolder. This would just be real handy so I don’t have to sort each different show folder by folder…

In PMM delete your single folder section.

Add the section back.



go to Finder->Go Menu ->Utilities->Console.app



In left hand sidebar click Console Messages. You should have something like this:



11/7/10 1:22:27 PM	com.plexapp.mediaserver[271]	/DVR/CSI_ Miami.S9E5.avi<br />
11/7/10 1:22:27 PM	com.plexapp.mediaserver[271]	CSI: Miami<br />
11/7/10 1:22:27 PM	com.plexapp.mediaserver[271]	9<br />
11/7/10 1:22:27 PM	com.plexapp.mediaserver[271]	5<br />
11/7/10 1:22:27 PM	com.plexapp.mediaserver[271]	huh<br />
11/7/10 1:22:27 PM	com.plexapp.mediaserver[271]	goodbye

Hi all-- first thanks for writing this scanner, I am in the same boat as not wanting to organize my TV shows as I tend to delete after I watch.



However, I am not able to play shows that have been added to the library using this scanner, the details are posted here: Error: Could not determine input format



I can play shows when I add the folder as a source in the Video Plug-ins section, or by choosing “Open with Plex” on the Mac right-click menu. It also plays fine when I use the original, built-in scanner but I have to organize my shows into folders for that scanner to work. When I use this single folder scanner on a show that is in a folder, then Plex pops up a menu asking me to choose what video format to use (MP4 or Unknown). Choosing Unknown gives the same error above, otherwise it plays fine.



Is there anything that the scanner is doing that might be causing this? Thanks for any help…

follow directions in post above. does our console messages look like this?



Just followed the instructions above, and the console says:


11/7/10 3:54:07 PM	com.plexapp.mediaserver[394]	/Users/vlotty/Movies/TV/Outsourced.S01E05.HDTV.XviD-LOL.avi<br />
11/7/10 3:54:07 PM	com.plexapp.mediaserver[394]	Outsourced<br />
11/7/10 3:54:07 PM	com.plexapp.mediaserver[394]	01<br />
11/7/10 3:54:07 PM	com.plexapp.mediaserver[394]	05<br />
11/7/10 3:54:07 PM	com.plexapp.mediaserver[394]	huh<br />
11/7/10 3:54:07 PM	com.plexapp.mediaserver[394]	goodbye



And at the end it said:


11/7/10 3:55:52 PM	com.plexapp.mediaserver[394]	['/Users/vlotty/Movies/TV/30.Rock.S05E06.HDTV.XviD-LOL.avi', '/Users/vlotty/Movies/TV/American.Dad.S06E01.HDTV.XviD-LOL.avi', '/Users/vlotty/Movies/TV/American.Dad.S06E02.HDTV.XviD-LOL.avi', '/Users/vlotty/Movies/TV/Brothers.and.Sisters.S05E05.HDTV.XviD-LOL.avi', '/Users/vlotty/Movies/TV/Brothers.and.Sisters.S05E06.HDTV.XviD-LOL.avi', '/Users/vlotty/Movies/TV/Chuck.S04E01.HDTV.XviD-LOL.avi', '/Users/vlotty/Movies/TV/Chuck.S04E02.HDTV.XviD-LOL.avi'...



Then did another section of:


11/7/10 3:55:52 PM	com.plexapp.mediaserver[394]	/Users/vlotty/Movies/TV/The.Simpsons.S21E18.HDTV.XviD-LOL.avi<br />
11/7/10 3:55:52 PM	com.plexapp.mediaserver[394]	The.Simpsons<br />
11/7/10 3:55:52 PM	com.plexapp.mediaserver[394]	21<br />
11/7/10 3:55:52 PM	com.plexapp.mediaserver[394]	18<br />
11/7/10 3:55:52 PM	com.plexapp.mediaserver[394]	huh<br />
11/7/10 3:55:52 PM	com.plexapp.mediaserver[394]	*** process 394 exceeded 500 log message per second limit  -  remaining messages this second discarded ***



The numbers seem to switch around, are they always supposed to be 01 and 05?

Awesome - that did it. It was using the usual media scanner, and I’m guessing I just had to set it to the Series scanner from the newly added script.



Fantastic work, all! This is going to be very handy for me.

Also when I tried removing the extra text (HDTV, XviD etc) and do a rescan, in some cases, it doesn’t get picked up by the scanner at all, and in others (when there is an episode name), the scanner picks it up but we still get the “Error: Could not determine input format”.



More detail provided in the other thread: Error: Could not determine input format

When you do a rescan you need to wipe the folder from media manager and start over. Is this what you have been doing?



Yes, here is what I just tried (again to make sure):

1) Remove the entire section (TV shows) from the Library Sections area on the left
2) Add the section back, choosing the Single Folder Plex Series Scanner
- I am using the patched version from post #7, not the one attached to post #1. If I try to use the one attached to post #1, nothing shows up, even if it's in a folder, or if extra text (HDTV.XviD-LOL etc) is removed

Also tried this with a reboot in the middle. And also with quitting PMS in the middle, before adding back.

Am I missing some important step?

Using the patched Single Folder scanner, it identifies the shows and pulls the right metadata, but then gives the "Error: Could not determine input format" when I try to play the show. If I remove the extra text from the file name, it disappears--the scanner no longer sees it when identifying shows. When I place the items in folders, it gives me a menu to choose a codec (SD MPEG4 in this case).

Thanks for any help!

First off the code in post 7 will make it so its possible not to get a showname, season and episode number. It skips files.



Second off I find it odd that it scans your folder once, and tags a single episode with two codecs. Think the problem is that the scanner you’re using doesn’t work for you. Check mine a whirl.



In reference to your log files. The numbers corresponds to season and episode numbers. Also, “goodbye” is only posted after a file has been added.



Harley just want to thank you for spending time helping me figure out what's wrong-- I appreciate it.

So when I try your original scanner in #1, it doesn't find anything, even if the filename is showname.exx.sxx.format. (junk is removed)... so I can't test if it plays files... (although it does say it is scanning something, just ends up with "No TV Shows")

Go to the chatroom

vlotto…try this and get back to the chatroom.