Project

General

Profile

Actions

Bug #1774

closed

Channel mapping to EPG grab source disappears

Bug #1774: Channel mapping to EPG grab source disappears

Added by glazed donut almost 13 years ago. Updated almost 12 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
EPG
Target version:
-
Start date:
2013-09-24
Due date:
% Done:

100%

Estimated time:
(Total: 0:00 h)
Found in version:
3.4 patch 1
Affected Versions:

Description

Whenever I restart tvheadend the mapping between my channels and the xmltv EPG grab sources disappears

As far as I can see the link is made in the files in the following folder:

.tvheadend/epggrab/xmltv/channels/www.timefor.tv/tv

After creating a mapping in the tvheadend web ui a file will look something like this:

{
        "name": "DR1 HD DK DK",
        "icon": "http://static.timefor.tv/imgs/epg/logos/dr1hd_big.png",
        "channels": [
                2,
                1
        ]
}

but when I restart tvheadend some information is removed from the file, and the file now looks like this:

{
        "name": "DR1 HD DK DK",
        "icon": "http://static.timefor.tv/imgs/epg/logos/dr1hd_big.png" 
}

This is a really big issue for me since it means that I cannot have my tvheadend box shutdown automatically during the night.


Files

epg_.xml (11.7 MB) epg_.xml glazed donut, 2013-12-05 17:54

Subtasks 1 (0 open1 closed)

Bug #1800: XMLTV / EPG Grab Source empty after reboot / start-stop of TVHFixedAdam Sutton2013-09-24

Actions

Updated by Jan S almost 13 years ago Actions #1

I can reproduce this error. Unfortunately.

Updated by Thomas Oehlenschlæger almost 13 years ago Actions #2

I also experience the same problem

Reproduce by the following steps:
  1. I put the "EPG grap source" on channel in web interface
  2. Hit "Save changes" (Here after, I can also see channeid in the xmltv file)
  3. Restart tvheadend
  4. Reload webinterface
  5. And setting from previous is now gone again

Like glazed I use also timefor.tv. as xmltv source

Can I do some debug to find more information?

Running git version: HTS Tvheadend 3.5.243~g2b64995

Updated by Thomas Oehlenschlæger almost 13 years ago Actions #3

Perhaps the problem lies in that timefor.tv uses "/" (slash) in their channel id?

Updated by Thomas Oehlenschlæger almost 13 years ago Actions #4

Hi

I've made work around script to remove the slashes from the xml file, and that fixes the problem for me.

#!/bin/bash
#download xml file from timefor.tv (replace your id)
/usr/bin/wget -q -O ~/xml/epg.xml http://timefor.tv/xmltv/idxxxxxqwer123

#use sed to remove "www.timefor.tv/tv/" from channel id's.
sed -i.bak 's/id=\"www.timefor.tv\/tv\//id=\"/g' epg.xml
sed -i.bak2 's/channel=\"www.timefor.tv\/tv\//channel=\"/g' epg.xml

Updated by glazed donut over 12 years ago Actions #5

I can confirm that the workaround in #4 works.

Updated by Ronny Eia over 12 years ago Actions #6

Is the error in timefor.tv XML, or is Tvheadend doing it wrong?

Updated by Thomas Oehlenschlæger over 12 years ago Actions #7

Ronny Eia wrote:

Is the error in timefor.tv XML, or is Tvheadend doing it wrong?

tvheadend handle not correctly when there is a slash in the xmltv channel id, which it very well may be a result xmltv standard.

Updated by Adam Sutton over 12 years ago Actions #8

Can someone provide a sample file that they believe causes the problem? There is nothing in TVH, that I can see, that should preclude a "/" being in the channel ID. But that doesn't mean there isn't something I've missed (quite probable).

Adam

Updated by glazed donut over 12 years ago Actions #9

Her is a sample file attached.

Updated by Adam Sutton over 12 years ago Actions #10

Ah, the problem is the way in which I'm storing config to disk!

The slashes get used in the config path, and thus create unexpected subdirs. When reloading the config these files are completely missed and not properly tied up.

Adam

Updated by Adam Sutton over 12 years ago Actions #11

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset tvheadend|commit:6babbad387d995600628846edc3a2f5802d2c60b.

Updated by Cedric Kastner over 12 years ago Actions #12

Adam Sutton wrote:

Applied in changeset tvheadend|commit:6babbad387d995600628846edc3a2f5802d2c60b.

Will there be a new version of TVH 3.4 with all fixes from 3.4.27 until now?

Updated by Ole Friis Heesgaard about 12 years ago Actions #13

Cedric Kastner wrote:

Adam Sutton wrote:

Applied in changeset tvheadend|commit:6babbad387d995600628846edc3a2f5802d2c60b.

Will there be a new version of TVH 3.4 with all fixes from 3.4.27 until now?

How to update to a working version of TVH ??
BR OFH

Actions

Also available in: PDF Atom