Scanner for enigma2 .ts files

Hi,

may be a silly question, but is it possible to just transform the filenames and not watch for metadata?

I managed to adjust the scanner to my desired nameformat, but if I run the library scan with the Free- or Moviedatabase

the Filenames are correct,but plex searches endlessly for matching; if I chose personal media it goes back to the original filenames.

Any ideas?

Unlight

Same problem here. The scanners are not working without the agents. And the library refreshs are very buggy. Unfortunately there is no support in this forum from plex ninjas or devs - they are the only ones to help us

need help with this got a weird problem,Ā  I can only get my recordings to display if I use the default movie scanner and not tv shows?Ā  is that everyone is doing as I would like to use the .py for the tv scanner due to the groupings.

any ideas?

thanks

Hello together - sorry I am german too

I have a vu+ solo² and VTI image release 5.1 record on a synology ds213 in different folders under "movie" like "comedy" "doku" "kino"

modify my recordtimer.py so the records shows like this:Ā 

folder movie/kino with plex movie scanner

Windtalkers (2013) - 2013_04_06 - 2255.ts Ā or Ā Avatar - Aufbruch nach Pandora (2013) - 2013_05_20.ts

because the plex movie scanner want`s to have a year in () after the name - 2013 is not the correct Ā year of publication but it works good enough for me (90%)

folder movie/comedy with plex series scanner

I record my comedy series with the lovely "autotimer" plugin - the records shows like this:

Rules Of Engagement S06E15 Eine Woche Zölibat (2013) - 2013_05_22.ts  or  2 Broke Girls S02E16 Fliegen für Anfänger (2013) - 2013_08_27.ts

PLEX PERFECT

But I want to have the eit. scanner - why?

My wife programs her records with tv-browser and the wonderfull enigma plugin from "fishhead" - german travel reports - garden and flower and other documentary reports

So i spend a lot of timer to test - a lot of time

Enigma2 Movies.py work`s not - nothing - no import of eit - content

Enigma2 TV Shows.py work`s - import of eit - content looks good but 8 of 10 testfile become an incorrect name and or title - angry and out of all reason

Enigma2 TV Shows agent ist at the top of the list - like quinten screenshot

For my wife I like it easy and quick - this is a movie and the content is what?

Why does the enigma2 Movies.py not work? I think this was the goal for my problem and makes my wife happy

Best regards from germany

SunTi

Hey Guys,

Any news on this?

where i gotta to put this in windows?

asĀ  /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Scanners

seems to be mac or linux system?

cheers

Hello,

few month ago I started with some modifications of the Enigma2 scanners (Movie/Series). My modified version is available here:

http://www.awalon.de/software/download/files/plex/awalon-enigma2-scanner.tar.xz

Tested/developed under Debian (wheezy). Your feedback is welcome.

Installation:

cd /tmp
wget "http://www.awalon.de/software/download/files/plex/awalon-enigma2-scanner.tar.xz"
tar -xJf awalon-enigma2-scanner.tar.xz
sudo cp -a Scanners /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/

optional (clean up)

rm /tmp/awalon-enigma2-scanner.tar.xz
rm -r /tmp/Scanners

restart PMS

sudo /etc/init.d/plexmediaserver restart

Select "Awalon - Enigma2 Movies" scanner for Movie librariesĀ and "Awalon - Enigma2 Series" for Series/Shows libraries.

1 Like

Hi @awalon,

thanks for the scanners - they work for me too on a mac!

But the series scanner goes something wrong, i think. They can't identify the single files anymore with the S0XE0Y Syntax.

In my case for example shows me the info screen two Mediafiles for only one in Plex Web:

Files
  • /Users/ogr/nfs/Recordings_duo2/Serien/Alphas/20140512_2014_-_SYFY_HD_-_ALPHAS_-_S01E10_-_DIE_UNUEBLICHEN_VERDAECHTIGEN_-_S01E10_-_DIE_UNUEBLICHEN_VERDAECHTIGEN.ts
  • /Users/ogr/nfs/Recordings_duo2/Serien/Alphas/Alphas - S02E10 (Leben nach dem Tod).ts

Do you have any ideas?

Thanks!

Hi othorg,

are there .meta and .eit files for the recordings?

The scanner is parsing...

1) File name

2) Meta file

3) Eit file

... to determine the title, season and episode.

As I remember some of my older recordings had no S??E?? within .meta file (second line), which should contain " S??E?? ".

I've fixed my .meta files with a small script, but this method has pros and cons.

Please provide the .meta and .eit files and I'll have a look on the issue.

Thanx Awalon, this scanner works great for me. But i have one Problem. I have 3 Dreambox and 1 VU+ in my Network. All records goes to my Network Storage. The VU+ records in YYMMDD - Title.ts. This records are not renamed with your scanner. Is there a chance to fix this problem? Ā  Ā *solved*

Hi,

Based on all the great info, I started writing my own Movie Scanner.Ā 

* only dreambox recordings are supported (yet)

* Retrieves the needed data from the *ts.meta file (program name and title)

* learning project (python, plex ...)

https://github.com/witjoh/enigma2_dreambox_scanner

Starting to write the series scanners.

trying to add movies now they seem to match then rematch in a loop any idea

***EDIT ** just had another play with this

what happens is they match and all looks ok its when you try and play from the library that its goes haywire

the move that is playing with match and unmatch in the web interface and the cpu usage goes up and up

wondering if its a plex problem with TS files and not the scanner as just edited one file to be Prometheus.ts and used the standard scanner and its doing the same

Just wonted to butt in lol :) Heres a mediaInfo from a Vu+ Solo2

20141023 2258 - Channel 5 HD - Can't Pay_ We'll Take It Away.ts

The _ is meant to be an ?

Mediainfo for HD format

http://paste.ubuntu.com/8802889 - SD / 1920*1080 @ 16:9 / Overall bit rate 10.2 Mbps

Mediainfo for SD format

http://paste.ubuntu.com/8803139 - SD / 704*576 @ 16:9 / Overall bit rate 4072 Kbps

Is anyone of you transcoding the ts files to an android device? Since pms 0.9.9.10 which worked perfectly, I am no more able to transcode files from my vu+; I just get blocky stuttering stuff. Tried 2 versions above 0.9.9.10, both didn’t work. Anyone else who encountered this?


Greets

Unlight


https://github.com/witjoh/enigma2_dreambox_scanner

Starting to write the series scanners.

happy new year! Any news about this? Has anybody tried this for VU+ recordings?

hello,

the scanners are function @ the actual plex on windows?

1 Like

Hi,

I have attempted to use a couple of the scanners here, but unfortunately there seem to be a few issues.

For example, when scanning movies, the year is taken from the E2 timestamp and not the meta info. This causes a mismatch or no match at all.

I decided to go down the route of a solution myself. I approached ti from another angle, whch I have found to be much simpler.

I have modified the RecordTimer.py file in /usr/lib/enigma2/python of the E2 box to create scannable movie and TV show file names that the default plex scanners can work with.

it is only a few lines of code change and so far works well for me. I am running OpenViX 4.1.009.

I’m a java dev by trade, so haven’t used python before, but I think it should all be working. It’s quite rough, but seems stable and does the job for me.

I just made a few changes to ā€œcalculateFilenameā€. Below is the code changes I have made:

def calculateFilename(self, name=None):
	service_name = self.service_ref.getServiceName()
	begin_date = strftime("%Y%m%d %H%M", localtime(self.begin))

	desc = self.description
	season_and_episode = re.search('[Ss]([0-9]{1,2})(.*)[Ee](.?[0-9]{1,2})', desc.replace(" ", ""))
	episode = re.search('[Ee](.?[0-9]{1,2})', desc.replace(" ", "")) 
	year = re.search('\((\d{4})\)', desc)

	display_season_and_episode = ""
	display_year = ""
	if season_and_episode:
		display_season_and_episode = ".S" + season_and_episode.group(1).strip()  + "E" + season_and_episode.group(3).replace("p", "").strip()
	elif episode:
		display_season_and_episode = ".S01E" + episode.group(1).replace("p", "").strip() # Allow for some instances where a season number isn't supplied
	if year:
		display_year = "." + year.group(1)		
	
	name = name or self.name
	filename = ""
	if name:
		if config.recording.filename_composition.value == "event":
			filename = name + ' - ' + begin_date + "_" + service_name
		elif config.recording.filename_composition.value == "short":
			filename = strftime("%Y%m%d", localtime(self.begin)) + " - " + name
		elif config.recording.filename_composition.value == "long":
			filename += " - " + name + " - " + self.description
		else:
			filename += name + "" + display_year + "" + display_season_and_episode # standard

	if config.recording.ascii_filenames.value:
		filename = ASCIItranslit.legacyEncode(filename)

	self.Filename = Directories.getRecordingFilename(filename, self.MountPath)
	self.log(0, "Filename calculated as: '%s'" % self.Filename)
	return self.Filename

NOTE: Make a backup of you E2 image before making any of these changes as you can easily corrupt you image Just extract the python script from the zip file attached and upload if to you box to /usr/lib/enigma2/python. You will need to restart your box for the file to recompile and be usable by the system.

Multi parts question/help:

Can someone help, I don’t know what I’m missing…I’ve tried the two scanners (on this thread) and I’m not getting the meta or .eit file read correctly. The summary/bio in Plex is being populated with the title no matter what I do. So is shows 2 titles…(the summaries are present in the corresponding meta files)

and

Hi ianegerton…I too am not having much luck as yet getting these scanners to work as desired…

Can you tell me how you backup the e2image, so I can then try your modded method?

The file you mention is RecordTimer.py however on my ā€œBeyonwizā€ Enigma2 box, the file you mention is .pyo. Is there any issues with changing the code on RecordTimer.pyo vs RecordTimer.py ?

Also, when I open my RecordTimer.pyo in notepad++, the file is full of weird null etc what looks like jargon…(see screenshot attachment) not sure what that means…(or what I’ve done wrong?)…

Also is there anyone from Beyonwiz that can implement this into future T3/T4 builds…Would be amazing for it to be plex default scanner friendly (rather than modding code each after each firmware upgrade)

Cheers

@snotty41 said:
Multi parts question/help:

Can someone help, I don’t know what I’m missing…I’ve tried the two scanners (on this thread) and I’m not getting the meta or .eit file read correctly. The summary/bio in Plex is being populated with the title no matter what I do. So is shows 2 titles…(the summaries are present in the corresponding meta files)

and

Hi ianegerton…I too am not having much luck as yet getting these scanners to work as desired…

Can you tell me how you backup the e2image, so I can then try your modded method?

The file you mention is RecordTimer.py however on my ā€œBeyonwizā€ Enigma2 box, the file you mention is .pyo. Is there any issues with changing the code on RecordTimer.pyo vs RecordTimer.py ?

Also, when I open my RecordTimer.pyo in notepad++, the file is full of weird null etc what looks like jargon…(see screenshot attachment) not sure what that means…(or what I’ve done wrong?)…

Also is there anyone from Beyonwiz that can implement this into future T3/T4 builds…Would be amazing for it to be plex default scanner friendly (rather than modding code each after each firmware upgrade)

Cheers

Hi,

The pyo file is the optimised python code.

You can just copy the file I attached to the same directory and restart the box and it should recompile the file. If that doesn’t work you can install the enigma2 sources by running:

opkg install enigma2-src

You will then see a corresponding *.py file for each *.pyo file.

It’s useful to copy the resulting RecordTimer.py file from your box to somewhere local in case you get a corruption and want to start from scratch again without having to recover an entire image of the system.

I’m not sure how you can take a backup in Beyonwiz. I’ve never heard of that system. On openvix there is a backup option in the setup menu. With some boxes you need to do it from the boot menu.

Is there a current/working scanner and agent that can deal with Enigma2 .ts files? I’ve now got my E2 saving files directly to my NAS, where Plex can see them, but I can only process them as Personal Videos and it would be great to have it match them to the correct TV show.