Bug #1774
Channel mapping to EPG grab source disappears
100%
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
Subtasks
History
Updated by Thomas Oehlenschlæger about 11 years ago
I also experience the same problem
Reproduce by the following steps:- I put the "EPG grap source" on channel in web interface
- Hit "Save changes" (Here after, I can also see channeid in the xmltv file)
- Restart tvheadend
- Reload webinterface
- 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 about 11 years ago
Perhaps the problem lies in that timefor.tv uses "/" (slash) in their channel id?
Updated by Thomas Oehlenschlæger about 11 years ago
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 Ronny Eia about 11 years ago
Is the error in timefor.tv XML, or is Tvheadend doing it wrong?
Updated by Thomas Oehlenschlæger about 11 years ago
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 almost 11 years ago
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 almost 11 years ago
Her is a sample file attached.
Updated by Adam Sutton almost 11 years ago
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 almost 11 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset tvheadend|commit:6babbad387d995600628846edc3a2f5802d2c60b.
Updated by Cedric Kastner almost 11 years ago
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 over 10 years ago
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