@ole.andreas.gloersen_gmail.com have you any news for us?
I tested your script with emby and that works fine. It seems, that the Problem is that the Plex team disabled older apis.
@ole.andreas.gloersen_gmail.com have you any news for us?
I tested your script with emby and that works fine. It seems, that the Problem is that the Plex team disabled older apis.
There is something with your script, which I just spotted now:
It always creates the output in the current folder, from which the script is run. This I didn’t get until now and made a headache especially with cron.
I now simply added the path, where I want the output to be put into a new “script” and execute yours after changing the path. Still, Plex (and emby) refuse to tune several of my channels, really dunno why…
And another “flaw” I just realised: if I would want to record something, Plex only allows me to record to my movie library, since it is neither able to recognise reocurring TV shows but also does not recognise season or episode. This would render the show recording via Plex useless I guess. Still, not your fault 
Edit: By switching again to the Gracenote EPG, I can (again) tune all the channels which did not work via the xmltv guide. So there seems to be some problem with it, which I don’t understand.
New version of scipt for EPG extracting from Enigma2.
First time use or edit of bouquets run with option GET_ALL
In console use option PRINT if you want feedback.
I has to say that script has only been testet on CentOS.
For get Plex to tune STB the parameter HEADER_channel_number has to been set to yes

stb_epg.zip (9.3 KB)
A tip:
Rename old files before extracting.
Do a sdiff between new and old config file for checking for new parameters.
Cheers to your efforts, I might give it a spin on my ubuntu machine. It used to work before as you know, so I am in good mood 
I haven’t tested it with cron yet. Sorry.
I will do it soon.
I will also setup an Ubuntu server/PC for testing later.
No worries, it is not a high priority for me. More of a fun project 
Hello, it works fine. At first I had have the problem, that just was shown the channel numbers. Just set HEADER_channel_name= to yes and all works fine at the moment.
Hello, I doesn’t changed something but get this errors again if the Script runs.
/STB_EPG.sh: line 1406: ((: 23(13): syntax error in expression (error token is "(13)")
/STB_EPG.sh: line 1406: ((: 24(13): syntax error in expression (error token is "(13)")
/STB_EPG.sh: line 1406: ((: 20(15): syntax error in expression (error token is "(15)")
/STB_EPG.sh: line 1406: ((: 7(14): syntax error in expression (error token is "(14)")
/STB_EPG.sh: line 1406: ((: 20(15): syntax error in expression (error token is "(15)")
/STB_EPG.sh: line 1406: ((: 7(14): syntax error in expression (error token is "(14)")
/STB_EPG.sh: line 1406: ((: 25(13): syntax error in expression (error token is "(13)")
/STB_EPG.sh: line 1406: ((: 26(13): syntax error in expression (error token is "(13)")
/STB_EPG.sh: line 1406: ((: 21(15): syntax error in expression (error token is "(15)")
/STB_EPG.sh: line 1406: ((: 8(14): syntax error in expression (error token is "(14)")
/STB_EPG.sh: line 1406: ((: 8(14): syntax error in expression (error token is "(14)")
/STB_EPG.sh: line 1406: ((: 1(15): syntax error in expression (error token is "(15)")
/STB_EPG.sh: line 1406: ((: 2(15): syntax error in expression (error token is "(15)")
/STB_EPG.sh: line 1406: ((: 22(15): syntax error in expression (error token is "(15)")
/STB_EPG.sh: line 1406: ((: 9(14): syntax error in expression (error token is "(14)")
Plex now says unknown or missing file and doesn’t update EPG. Tested with Plex 1.13.9 and 1.14.0.
I tried to set the HEADER_channel_name to no again and updated with GET_ALL but no change to this issue.
If I look in the bouquet the EPG-Data is shown witouth playing a channel.
Sorry for your problems.
I’m not sure what it is because it works on CentOS 7.
If I remember right I have seen it on Armbian or Ubuntu with a script for IP camera surveillance I made.
Then I have a fix:
" Version 3.1 : Some variable fix in “if-then” statement with " before and after text variable "
Also fix directories setting for running under cron job. Run script with parameter CHANGE for see last changes I made.
Make backup of old script AND config file before unpacking zip file.
stb_epg.zip (9.4 KB)
No Problem. It’s my wich to use your script.
Thanks for your hard work. I’ll test and write.
Hello,
I’m so sorry, but the same issue after some days. I don’t know what’s the issue. There wasn’t any changes at the vu or the NAS. Just Plex was updated. If I put my old XML File into the Read Folder of Plex The EPGrefresh works fine.
Attached are the running XML-file and the new file. Also the folder oft he script with my config and logfiles.
Hopy you can help. ;-(
Sorry fort he trubble
XMLTV.zip (1.27 MB)
Hi at All,
is it possible to run on mac os?
kg
chris
Hi
Is IT possibil top Run in a enigma2 STB ?
I tried it!
the XMLTV will not be created!
I think it is because there is no lftp
I got it running on a enigmabox!
But it is a feler in the script! instead of channel names becomes the genre id
can you fix that
Hi.
Sorry for late reply. The script was crated to run on CentOS (my server).
I also started to make a Ubuntu version, but din’t hav the time to complete i yet.
I tried to run it on my VU+ box, but the Linux there is a stripped version without all functions.
I hope I can get the time to investigate more later.
I tested the script again and ran into two issues:
"Creating play list for STB
49 of 49 channels written to play list from bouquet “Favourites (TV)”
EPG for STB 1 skipped"
If I put / at the end of the folders in the config, it creates a second folder inside the top folder: xmltv/’’$’\r’/
Any chance to fix this? 
Hi to everyone,
because we will loose the Plex DVR EPG for the Czech channels soon I put together a Windows PowerShell script which combines the EPG of all the channels you added to HRtunerProxy to XMLTV formatted xml file you can feed into Plex DVR.
The resulting EPG is as good as it is on the DVB-S/T/C receiver.
It is available at GitHub GitHub - PiGeonCZ/EnigmaEPG2XMLTV: Set of powershell scripts and xslt templates for schedulling, dowloading and converting EPG from Enigma 2 DVB S/T/C receivers with HRTunerProxy plugin installed
Enjoy it 
First post updated with new zip file with script and config file.
Change in episode number tag (EPG_episode_start_tag) so update your old config file if you only add new parameters to your old.
New parameters added. Now category is added because OpenPLi deleiver it by a new tag: e2eventgenre
It can write hole string in one, split it or both. Also genre number can be written as category tag in xmltv file.
The script is tested on CentOS server. STB is VU+ running OpenPLi 7 with latest online update. Provider is Canal Digital (Norwegian).
Everyone can use and modify and use the script for free, but script are not allowed to be sold. Only for free use.
stb_epg.zip (10.0 KB)
Hi,
thank you very much. I will test it in combination with the pms and send a feedback.