Project

General

Profile

Use a downloadable xmltv file with TVHeadEnd on Synology

Added by Inrepublica .fr over 6 years ago

Hi all,

I try to use a xmltv downloadable file on a Synology NAS.
I created a bash script containing the following:


#!/bin/bash^M
if [ "$1" = "--version" ] ; then^M
echo "XMLTV module version 0.5.57" ^M
echo "This is tv_grab_kazer version 0.1" ^M
exit^M
fi^M
^M
if [ "$1" = "--description" ] ; then^M
echo "France Kazer" ^M
exit^M
fi^M
^M
if [ "$1" = "--capabilities" ] ; then^M
echo "France Kazer" ^M
exit^M
fi^M
^M
wget -q "http://kazer.org/tvguide.zip?u=myauthkey" -O /tmp/xmltv.zip^M
unzip -p /tmp/xmltv.zip^M
rm /tmp/xmltv.zip

Then I installed in / usr / bin / on my NAS.
However this does not work, in internal grabber my script does not appear ...

How to solve problem?

Thank you for your help.


Replies (7)

RE: Use a downloadable xmltv file with TVHeadEnd on Synology - Added by Prof Yaffle over 6 years ago

Don't you have to register any new scripts with the xmltv grabber? Have you run /usr/bin/tv_find_grabbers - I've done this before with any grabbers I've hacked (although they've always been perl, so I don't know how a shell script will play out).

RE: Use a downloadable xmltv file with TVHeadEnd on Synology - Added by Inrepublica .fr over 6 years ago

in usr/local/tvheadend/bin/ i just have: addgroup adduser busybox c_rehash delgroup deluser openssl tvheadend

no tv_find_grabbers for me...

RE: Use a downloadable xmltv file with TVHeadEnd on Synology - Added by Prof Yaffle over 6 years ago

Sorry, I'm being slow - you did say Synology - is the xmltv package even installed? When I ran tvheadend on my old Synology I used to use OTA grabbers, so never used XMLTV.

You maybe have to go and get the XMLTV grabbers from somewhere and install them manually unless there's a package available already.

A quick Google turned up this thread - look about halfway down, starting with "No response ?":

http://www.silicondust.com/forum2/viewtopic.php?t=8941&sid=2d1fc1b562c8a752bf21b3d378a3d38d

You may also just be able to borrow the relevant grabber scripts from another system if you have access to one.

RE: Use a downloadable xmltv file with TVHeadEnd on Synology - Added by Inrepublica .fr over 6 years ago

I do not want to install the package with the XMLTV grabber, I have my own grabber with bash script described above. I'm just trying to make himself useful by tvheadend script as described in this script: https://tvheadend.org/boards/12/topics/6723

I think it is in my case a bad emplacent my bash script.

RE: Use a downloadable xmltv file with TVHeadEnd on Synology - Added by Prof Yaffle over 6 years ago

Mmm, but I suspect (and I may be wrong) that tvheadend is expecting XMLTV - it certainly reads the list of grabbers as registered with tv_find_grabbers. So you either need to use that, simulate it or use the xmltv socket interface.

RE: Use a downloadable xmltv file with TVHeadEnd on Synology - Added by Inrepublica .fr over 6 years ago

After much research, I use a different script that works very well.
This is available at: https://github.com/clark17/tv_grab_FR_Kazer

Here is how I did it to make it usable:
- Transfer of the script in /usr/bin/ on the NAS.
- I run the script tv_grab_kazer and appears in the console the stream XMLTVV.
- Reboot NAS.
- Then in tvheadend, Configuration, EPG Grabber Grabber Internal I use XMLTV: France Kazer.
- Do remains only to match the tvheadend channels with the xmltv channel tab, column EPG Grabe Source File.

    (1-7/7)