Scanner for enigma2 .ts files

Happy to help!  Mine has now been running flawlessly for the past month, and although the TVDB matching is occasionally hit and miss (due to my unique recording circumstances ;)), a quick re-match sorts that out.  Having the actual descriptions from the recordings is really good (if I say so myself :)).

Hey quinten,

great that you had the idea to program such stuff. i thought i was the only one who wants to import vcr files!

i took a look at the files itself to adjust some things but i can´t imagine the way to accomplish my need.

i´d like to have the files listed like in a home video section, just the showname and the date, no database search or anything.

could you explain in short terms if and how it can be done?

thanks in advance

Unlight

Similar concept to what I had to do for nextpvr - a windows based pvr. I had to modify a cloned copy of the TV series scanner to get the .ts files to be picked up.

Then I needed an agent to read and update the metadata. I was lucky that the metadata for next pvr is kept in an XML file- so I was able to modify the xbmctvnfo agent.

So if you want metadata you’ll need both. With just the scanner and personal media will get the files with their default file names which may or may not be useful

ok, i don´t think i get the concept; to just display the files in a different way (Name of Show - Channel - Datewitdots instead of the crappy -datewithoutspaces-channel-Name of show- format) with no search in a database i need an agent? and to alter the metadata?

An agent sets the metadata - which includes the show, the title, description, actors, thumbnail all sorts.

All a scanner does is decide what files to add to plex.

Hi,

I'm sorry but I can't find any file (movie, tv-shows) in the folders.

I've tried this scanner with short and standard named Enigma2-Recordings.

Really sad about it.

This scanner will make Plex much better!!!

Can anyone help me, please?

Hi guys! (Sorry for my bad English - I am German)  :)

I am new to Plex. My Plex server is running on Synology DS713+. I have 6 HDDs with recordings from my 2 VU+ Receivers. 2 HDDs are connected to one of the receivers, 3 HDDs are connected to the other receiver. The remaining HDD is connected to my Pogoplug-NAS which is running a full Debian.

Yesterday I tried scanning my movie with the Enigma2-Scanner developed by Quinten. Thank you very much!  :wub:

However, there are some difficulties or problems:

1) As I run Plex on Synology I can only copy the movie py-file to my Plex under Plex/Library/Application Support/Plex Media Server/Plug-ins/scanners.bundle/Contents/Resources/Movies

Can anybody confirm that this is the right place for the py-file? After copying the file to that folder I was able to choose the Enigma2-Scanner in the movie section of Plex. BUT: After one or two scans it was removed automatically from the system?! It was gone from the plugin folder on Synology?! Only the standard scanners were still there. How is that possible? That means I have to copy the py-file again to  that folder after scanning...

2) All my movies were scanned with the correct titles. However, the Movie Database Agent could not find any match as all movies had "2013" as year which I could see when I tried to search for the match manually.

3) Not all of my HDDs were scanned properly. 3 of 6 were scanned completely. The remaining 3 were obviously not scanned. None of the movie of those HDDs were added to the movie section. The 3 HDDs are connected to Pogoplug and VU+. The VU+ has 3 HDDs in total and 1 is scanned correctly.

Can anybody help me please? Any more information needed? Do I do something wrong or is it a special thing with my setup?

Thank you very much in advance for any help!  :wub:

Hi

I'm running the scanner on a QNAP NAS. I have the same Problem as "absolog", after one or two scans the scanner is removed automatically from the System. Only the standard scanners are still there.

I tried to Change the movie scanner directly but the changes also disappear after one or two scans!

Any idea?

Thanks

same problem here. Hope we get a fix soon.

This film was found with scanner:

20130609 1220 - Sky Action HD - Largo Winch II - Die Burma-Verschwörung.ts
 

this not

20130615 - Chernobyl Diaries.ts

One is recorded with a VU+ the other with a Dreambox 8000. Both are recorded in the same directory.

Regards, Valle

Hello everybody,

I'm also from Germany and tried Quintens Enigma2 Scanners on my QNAP NAS. First I copied the Scanners in the following folder:

for Movies: /share/MD0_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Scanners/Movie

for Series: /share/MD0_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Scanners/Series

I set the authority of the .py files to 644 (but the same problem as gobbli and Bazival. After the first Scan the files were deleted)

But if I add the sections again there are no files found. After that I read the posts above and copied the Scanner files in:

for Movies: /share/MD0_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Scanners.bundle/Contents/Resources/Movies

for Series: /share/MD0_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/Scanners.bundle/Contents/Resources/Series

But the same problems. No files were found and the Scanner files were deleted after first scan. The Enigma2 TV Scanner is set to the highest priority in The TVDB Agent. Where I can set the Movie Scanner as well?

Kind regards

same problem here: the scanner says "Library scan complete" but no items appear.

I'm running PMS on a synology nas.

it seems that the files are not passed to the enigma scanner since they are already in the database. There are lot's of "as nothing as changed" entries in the plex media scanner.log

Same problem...Also not working for movies. Mine have the following naming:

20130921 1740 - Sky Action HD - Zorn der Titanen.ts

20130921 1740 - Sky Action HD - Zorn der Titanen.eit

20130921 1740 - Sky Action HD - Zorn der Titanen.ts.ap

20130921 1740 - Sky Action HD - Zorn der Titanen.ts.cuts

20130921 1740 - Sky Action HD - Zorn der Titanen.ts.meta

20130921 1740 - Sky Action HD - Zorn der Titanen.ts.sc

German EIT files.

the problem seems to be caused by the line

           (date_time,channel,programme) = tsfile.split(' - ',2)

If there are files that do not match the naming convention the scanner sort of crashes.

I added a line before

        if " - " in tsfile:

and got the items scanned and displayed without that boring datetime and channel before the original filename. So that's already a great step in using enigma2-recorded files
 

I forgot: you also have to change the def Scan line like this (seems that the interface has changed):

def Scan(path, files, mediaList, subdirs, language=None, root=None, **kwargs):
 

Can you post the prepaired and finished file, please?

here is a modded file for the series scanner.

@iphoneuser

Thank you for this file.

Maybe you some ideas for the Movie scanner?

@iphoneuser

Thank you for this file.

Maybe you some ideas for the Movie scanner?


That would be awesome! Most of my recordings are movies.

Thanks in advance!

great work everybody :)

I have a recorder with OpenPli running and I can choose long or short filenames for my recordings. The short are without the channel name and this isn't working properly with the current code. I'm not a python programmer but if we change Enigma2 TV Shows like this it will take care of that problem. It will also deal with all filenames without dates

Original:

        # Enigma2 files look like: YYYYMMDD HHMM - Channel - Programmename.ts
        (date_time,channel,programme) = tsfile.split(' - ',2)
 

New:

 # Enigma2 files have a long (with channel) or short format:
 # YYYYMMDD HHMM - Channel - Programmename.ts
 # YYYYMMDD HHMM - Programmename.ts

 # do we have a file with channelname?
 if tsfile.count(' - ') == 3:
   (date_time,channel,programme) = tsfile.split(' - ',2)
 elseif tsfile.count(' - ') == 2:
   (date_time,programme) = tsfile.split(' - ',1)
 else:
   programme = tsfile
   date_time = time.strftime("%Y%m%d %H%M")

that's a cool improvement of the scanner since there might of course be files with more dashes, too.

There is one annoying issue in that ts-file handling:

when you record several shows and movies you do not have a description of the the eit-file inside (I did not get this part working).

And you loose the records timestamp so you can't identify the show easily.

E.g. record a kid's series on saturday and on sunday and you can't identify the later.

Any ideas?