all working pretty well... only tried the series scanner though... exactly what I needed. GF-friendly and all...
Part of the problem here is that [at least my] enigma2 box uses tags for organising recordings, rather than folders.
Separating into folders is a bit laborious, but it'd be good to be able to auto split movies and tv-shows, that way you could apply a different scanner to each folder - disco!
This is (AFAIK) not possible. Plex has been designed from the ground up to have seperate sections for Movie content or Series content. It does not group Movies, and Series require a Season/Episode for the grouping. The two are mutually exclusive I'm afraid. The only way to go about it is to split your recordings logically too and have two sections in Plex.
However, everyone seems happy with the tag system, so it's not a priority I think [I use ViX]. I'll have another sniff round the forums and see if anyone has a view on it...
Another suggestion, can you copy the code from the existing Plex agent for TV-series enigma2 scanner so it scrapes the TV show artwork [and music?] for the folders on your TV-scanner? I'm probably being basic, but would the same code not work? Or create an enigma2 agent using similar code. Might need to adjust the "Title" for the episodes as it shows the channel and time at the moment...
You can try this already yourself. Instead of using Personal Media Shows, set it to TheTVDB. I am going to write an Agent for the .eit files (which contains the EPG description for the recording), but this may take some time
You'll have to excuse me, I really have no idea what I am talking about, so it's probably way more complex than that... I should learn python really.
No worries, I didn't know how all this worked on Monday, and look where we are now ;)
I tried the TVDB agent but it didn't work out... maybe because the "Title" field is the channel name/date?
I'll look at the bundle and see if I can interpret any of it...
It worked for me with very mixed results. For the purpose of my testing I have 1 movie (Total Recall), 1 episode of Revenge, and 3 episodes of some Dutch childrens series. It matched the movie to a TV series called Total Recall 2007, couldnt match at all the childrens tv series (not even when I manually matched on the language), and the only successful match was Revenge. It may be because of the title, it may be because there is just not enough detail to provide a good match… Like I said, I will try to add an Agent for ts files, but for now, this is what (may) work.
Sorry, misunderstood, I was talking about having separate recording folders, I don't have any expectation for Plex to do that... if on the VU+ I could automatically separate into folders, that would fix this as I could create two new sections on Plex [recorded TV and recorded films]
On another note, I fiddled with your .py file so the channel date/time goes in the summary field [this didn't work though] and I used the name/date for the title field... this forced the correct TVDB data to come through! Amazing!
show = programme
season = year
episode = t[-2]
title = programme+" - "+date[6:8]+"/"+date[4:6]+"/"+date[0:4]
summary = channel+" - "+date[6:8]+"/"+date[4:6]+"/"+date[0:4]+" "+time[0:2]+":"+time[2:4]
any idea why the "Summary" field wasn't updated? n00b business I supsect.
I tell you what else is a bit odd, where I corrected the TVDB incorrect matches [two shows], it overrides the naming metadata left by the scanner, leaving just the date in reverse... not what I expected to see. ANy idea why that may be? Strikes me as Plex behaviour rather than this bundle.
any idea why the "Summary" field wasn't updated? n00b business I supsect.
You can not populate the summary field in a Scanner, only the Agent can do that. C'est la vie ;)
I tell you what else is a bit odd, where I corrected the TVDB incorrect matches [two shows], it overrides the naming metadata left by the scanner, leaving just the date in reverse... not what I expected to see. ANy idea why that may be? Strikes me as Plex behaviour rather than this bundle.
Agents can 'overwrite' any of the meta data assigned to the object, so that does not strike me as odd. When you say reverse, you mean American notation (MM/DD/YY) or something else? Screenshot maybe?
understood about the summary... how about using the "sort field"? I looked in the dev centre to see what term I should be using but couldn't find anything obvious...
See attached pic of renaming of metadata, this has only occurred where I "fixed incorrect match".

I’ve not seen a “sort” field, so would have to look at it. Not many things can be set in the Scanner though, it is all down to Agent to fill in the blanks.
The date reversal is caused by the Agent, can’t do much for you there…
I see... well I've managed to do something to break it completely now, i tried re-adding the section but it's fallen over [short term] so is returning 0 itmes on a scan.
I'll keep fiddling though, very pleased with this setup...
If you do manage to extract the info from the EIT files, would it be an agent or a scanner?
It will be for the Agent, but there is some stuff in the .eit file that I may decide to use in the Scanner too, like programme title (instead of the one from the filename).
hmmm baffled as to what I have done wrong... tried deleting the section, emptying the trash, optimising, upgrading PMS the lot, it won't read any files in the folder now, gutted.
I've even tried adding other sections and they won't register anything at all [even with different source folders]... I think I broke something :(
Any suggestions before I delete the whole plex db?
Bummer...
:(
Back to basics, remove the Scanner files and use Plex's built in Scanners. You may need to perform Deep scan instead of Turbo... Have you checked the Activity page to see if it gives any clues?
hmmm I have done that, and briefly got back in the game but now it's fragged it again... very odd indeed. I'll keep fiddling, don't want to bust things up too bad tho.
Hope my silence hasn't put you off, but I bring good news... A (tweaked) Scanner and an Agent for the .eit files!
You need to install the Enigma2 TV Shows.py in the ~/Library/Application Support/Plex Media Server/Scanners/Series directory (as before) and the Enigma2.bundle in the ~/Library/Application Support/Plex Media Server/Plug-ins directory
It works as an additional Agent to the TVDB primary Agent, so you need to configure a section using the 'Enigma2 TV Shows' as Scanner, and 'TheTVDB' as Agent.

Then you need to make sure that the 'Enigma2 TV Shows' Agent is set above the 'TheTVDB' Agent in the preference order. This ensures that episode summaries are taken from the Enigma2 Agent, and not from anything else.

You may need to force refresh it twice (I am still looking into this, plex is a bit of a beast), but once the dust has settled, your library will look like mine... except for the dodgy Dutch TV shows ;)



1 Like
Well... the troubles I ran into consisted of amending this code:
title = programme+" - "channel+" - "+date[6:8]+"/"+date[4:6]+"/"+date[0:4]
It was a bit mental, the first time I did it, it worked ace, and the TVDB scanner d/led all the right info. However, I managed to completely break it subsequently, which I never recovered from except by reverting to the original code. Very odd, expecially seeing as it worked once.
I'm gonna try your scanner now though, wish me luck!
If you've got any problems let me know... I'd be interested to hear if it works as good for you as it does for me :)
will do...
I haven't got any movies recorded, how does it respond to them?
Movies inside a section that is defined as containing TV shows, will be treated as a single episode single season tv show. This is because of the way Plex has been designed. If there was some way of knowing what recording is a movie and what recording isn't, then I could look at grouping all movies together in a single season, multiple episode folder.
I'm working on the Movie agent as well, which can then be used in the same way as the Series one...
Pfew, glad you got it working now. When I got some more time again I will also investigate the Agent option to see if we can get the programme descriptions out of the .eit files.
Thanks for this, its working great on my system too. I had a VUDUO writing a bunch of stuff to a NFS drive and was wondering how to get all the content catalogued. stupidly I deleted all the EIT stuff previously thinking it was no use, but just having the titles recognised correctly has been great.
john