Is it possible to icorporate ffmpeg from synology into Tvheadend
#16
(2015-02-04, 15:17)ulibuck Wrote: Okay "contentType 175" is out of range. I think it can be fixed like this:

In file "htsp-xmltv.py" insert a new line 197 before the existing one

Code:
if len(epg_genre_names[mcat]) <= scat: scat = 0

Have 2 leading blanks at the beginning of the new line.

Thank you very much Smile That worked perfectly. Now there is no Error any more Smile

Best Regards
Vlaves
Reply
#17
(2015-02-04, 15:17)ulibuck Wrote: Okay "contentType 175" is out of range. I think it can be fixed like this:

In file "htsp-xmltv.py" insert a new line 197 before the existing one

Code:
if len(epg_genre_names[mcat]) <= scat: scat = 0

Have 2 leading blanks at the beginning of the new line.

I just noticed one problem Sad Ther is a time difference in the EPG data of one hour, compared to as it should be.
A show which should start at 8pm is displayed to start at 9pm in Kodi.

Is there a way to adjust that?

Thanks again for your support here Smile

Regards
Vlaves
Reply
#18
Okay, time needs to be given in UTC for KODI (correct to the XMLTV spec). I could only test with TV Guide which displays the wrong time when given UTC.

Anyway, I updated the script to output UTC times. Find it here htsp-xmltv.py

I also changed the Info output a bit, which now looks like this

Code:
2015-02-05 21:25:37 Info   HTSP PyClient connected to [localhost] / HTS Tvheadend [3.9.2293~g74c563f-dirty] / HTSP v17
2015-02-05 21:25:37 Info   generating xmltv -- channels and epg entries -- from asynchronous initialSync
2015-02-05 21:25:50 Info   completed -- 54 channels and 8234 epg entries
Reply
#19
(2015-02-05, 22:40)ulibuck Wrote: Okay, time needs to be given in UTC for KODI (correct to the XMLTV spec). I could only test with TV Guide which displays the wrong time when given UTC.

Anyway, I updated the script to output UTC times. Find it here htsp-xmltv.py

I also changed the Info output a bit, which now looks like this

Code:
2015-02-05 21:25:37 Info   HTSP PyClient connected to [localhost] / HTS Tvheadend [3.9.2293~g74c563f-dirty] / HTSP v17
2015-02-05 21:25:37 Info   generating xmltv -- channels and epg entries -- from asynchronous initialSync
2015-02-05 21:25:50 Info   completed -- 54 channels and 8234 epg entries

Thank you so much Smile It is working perfectly now Smile

Best Regrads
Vlaves
Reply
#20
Quote:It is working perfectly now
Very good, glad to hear that.

Regards
ulibuck
Reply
#21
Hi ulibuck,

I've been using your script perfectly well for the last couple of weeks, until I configured a username and a password for tvheadend. Since then your script obviously stopped working.
Where do I need to incorporate uname and pwd into your script?

Hope you can help out here Smile I wouldn't set a password, but without a Username and password, I'm not able to login to tvheadend after an update of the package.

Thanks again for your support.

Regards
Vlaves
Reply
#22
Hi Vlaves

Glad to hear the script is working for you.

For username and password just use the corresponding command line options -u and -p:

Code:
Usage: htsp-xmltv.py [options]

Options:
  -h, --help            show this help message and exit
  -a HOST, --host=HOST  Specify HTSP server hostname
  -o PORT, --port=PORT  Specify HTSP server port
  -u USER, --user=USER  Specify HTSP authentication username
  -p PASSWD, --passwd=PASSWD
                        Specify HTSP authentication password
  -e, --epg             Do not include EPG data
  -t UPDATE, --update=UPDATE
                        Specify when to receive updates from
Reply
#23
(2015-04-09, 17:02)ulibuck Wrote: Hi Vlaves

Glad to hear the script is working for you.

For username and password just use the corresponding command line options -u and -p:

Code:
Usage: htsp-xmltv.py [options]

Options:
  -h, --help            show this help message and exit
  -a HOST, --host=HOST  Specify HTSP server hostname
  -o PORT, --port=PORT  Specify HTSP server port
  -u USER, --user=USER  Specify HTSP authentication username
  -p PASSWD, --passwd=PASSWD
                        Specify HTSP authentication password
  -e, --epg             Do not include EPG data
  -t UPDATE, --update=UPDATE
                        Specify when to receive updates from

Gosh, that was obvious Big Grin Thanks a lot for your help here, it is working perfectly no again Smile

Regards
Vlaves
Reply

Logout Mark Read Team Forum Stats Members Help
Is it possible to icorporate ffmpeg from synology into Tvheadend0