Synology XMLTV
Added by sascha sascha over 10 years ago
Hi,
ich würde gerne XMLTV als EPG Grabber nutzen, komme aber nicht ganz mit der Installation klar.
Die XML würde ich dann von timefor.tv oder epgdata.com beziehen.
KAnn mir da jemand mal eine Anleitung für Anfänger geben??
Replies (26)
RE: Synology XMLTV - Added by Cedric Kastner about 10 years ago
Guck mal hier:
https://github.com/nurtext/tv_grab_file_synology
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
Hi Cedric,
Have tried with tv_grab_file_synology but no luck.
It have change the option disable , so now I can chose tv_grab_file_synology.
But cannot make it work.
I have used Tvheadend before with Ubuntu without problems with xmltv.
The xmltv.xml file its created by xmltv on a windows machine. I just put the file in /volume1/Sharefolder
and on tv_grab_file_synology pointing to /volume1/Sharefolder/xmltv.xml
Can you see what I m doing wrong? please.
Regards Helio
RE: Synology XMLTV - Added by Cedric Kastner about 10 years ago
Hi Jose,
have you followed the installation steps?
- Check if /usr/bin/tv_grab_file is executable by logging into SSH and running the command
- Check if the file produces an output
- Have you restarted Tvheadend in order to make notice of the new grabber?
If you're unsure regarding the steps above, please provide and output for the following commands that must be run via SSH:
1. ls -la /usr/bin | grep "tv_grab_file"
2. cat /usr/bin/tv_grab_file
3. ls -la /volume1/Sharefolder/xmltv.xml
Please DO NOT paste the results for the commands directly into your reply. Instead use http://xbmclogs.com or http://gist.github.com/ or any other pasteboard service. Thanks in advance.
Cheers,
Cedric
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
Thanks Cedric for helping.
When i run /usr/bin/tv_grab_file
it prints the xmltv file.
I have the result of the commands on:
https://gist.github.com/helio58/13ca682d5124959b3e1b
Thanks
In Ubuntu you can run
sudo ./tv_grab_file | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock
is there a way to do this in synology?
I m a newbie in this
RE: Synology XMLTV - Added by Cedric Kastner about 10 years ago
Hi Jose,
the grabber seem to work fine so far if it generates XML output.
Sorry but no socat / netcat on Synology so far, but it's not needed. If you have restarted Tvheadend after installing the grabber, it should detect the grabber and it should become available within the Tvheadend web interface. Then you have to enable the grabber and after the first grab is done, assign the XMLTV sources to your channels.
Screenshots attached.
Cheers,
Cedric
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
That I will like to have, the grabber don't show up after several reboots.
Can it be something with the os of synology? I think I m running DSM 5.0-4528. With the community TVheadend 3.4.27-6 .
Have tried TVheadend-Testing with the same resultat. Just the EPG missing.
I m thinking the xmltv.xml can't be wrong if it works with on Ubuntu , the same file should work here.
The grabber show up if I copy the file to /usr/bin/ but when I save in the botten debug it says nothing to grab.
Witch os version are you running?
Regards
Helio
RE: Synology XMLTV - Added by Cedric Kastner about 10 years ago
I'm running DSM 4.3.
Could you please send me the output oft this command?
echo $PATH
Thanks
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
echo $PATH
Lagring> echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
This is what i get executed when i log in ssh
Thanks for your taking your time.
RE: Synology XMLTV - Added by Cedric Kastner about 10 years ago
$PATH variable seems fine. I still don't get why Tvheadend isn't accepting the grabber. Any chance to enable advanced logging for your Tvheadend version via web interface or at least start Tvheadend by command line with logging enabled?
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
Of course, but I don't know how to do it.
One thing, if i tick
External interfaces
external socket enabled
Where does TVheadend expect xmltv.xml file?
RE: Synology XMLTV - Added by Cedric Kastner about 10 years ago
Forget about the socket solution, only works on systems with socat/netcat working properly. Synology isn't.
Please do the following:
1. Login in via SSH
2. Run this command:
/usr/local/tvheadend/bin/tvheadend -c /usr/local/tvheadend/var -l /volume1/Sharefolder/tvheadend.log
As soon as Tvheadend's startup has finished, please upload tvheadend.log to a pasteboard service. I'll look into it as soon as possible.
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
One question,
I have recordings to /usr/local/tvheadend/var
I will like to change to /volume1/Alla/
I have tried but it does not work.
Is there a way to archive this?
Thanks
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
Now I can see the grabber XMLTV:Local
What I have done: copy the file to /usr/bin/ chmod 777
But there is nothing in EPG Grab Source
debug got this:
Oct 28 21:52:43.704 /usr/bin/tv_grab_file: grab /usr/bin/tv_grab_file
Oct 28 21:52:43.710 /usr/bin/tv_grab_file: no output detected
Oct 28 21:52:43.710 /usr/bin/tv_grab_file: grab returned no data
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
Solved
Wrong permission /volume1/Alla/
Thanks for your help Cedric
Regards
RE: Synology XMLTV - Added by Cedric Kastner about 10 years ago
That would have been my next question… ;)
Great you solved it. Have fun!
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
Now works great, next problem.
Is it possible to add Polini Epg?
I tried to copy mobile folder to
/usr/local/tvheadend/share/tvheadend/src/webui/static/
But when try to open the page get
500 Unknown return code
Have you Cedric tested the Web Epg on Synology. I have used it on Ubuntu works well.
Once more thanks for yesterday help.
RE: Synology XMLTV - Added by Cedric Kastner about 10 years ago
You're tealking about TvheadendMobileUI don't you?
To be honest, It's outdated, hasn't got any updates in the near past and I doubt it will ever be updated to work on new Tvheadend versions.
Instead, I've recommended native apps for managing Tvheadend on smartphones over at the XBMC/Kodi forum. Please see my following post (#44) here:
http://forum.kodi.tv/showthread.php?tid=162224&pid=1823008#pid1823008
Yes, my username there is "Cassiel"
Cheers,
Cedric
RE: Synology XMLTV - Added by Jose Fer about 10 years ago
Hi,
Have to ask you Cedric,
Have you tried Tvheadend with the transcoding in Synology?
Regards
Helio
RE: Synology XMLTV - Added by Cedric Kastner about 10 years ago
Not yet but AFAIK you need to compile Tvheadend with transcoding support and 3.4.27-6 doesn't support it. You'll need a build environment (Linux) and decent knowledge in cross compiling.
RE: Synology XMLTV - Added by Jose Fer almost 10 years ago
Hi Cedric,
I try to record to /volume1/video/Record does not work , is there a way to give Tvheadend the right permissions on synology, to make the recording possible?
If I use /volume1/Alla/Record it works.
The reason why i ask is the files in video are indexed automatically
Thanks
RE: Synology XMLTV - Added by Stéphane Dubois almost 10 years ago
I don't know if you can give permissions on video folder, but you can index the recorded file at the end of the recording.
In TVHeadEnd web interface, go to Configuration/Recording and fill-in the Post-processor command with a script name (for example: /volume1/public/pprecord.sh %f)
You can use the following script
#!/bin/sh
echo $1 > /volume1/public/last_recorded_file.txt
synoindex -a $1
It works well for me.