Project

General

Profile

Bug #1774

Channel mapping to EPG grab source disappears

Added by glazed donut over 11 years ago. Updated over 10 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

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

Actions

History

#1

Updated by Jan S about 11 years ago

I can reproduce this error. Unfortunately.

#2

Updated by Thomas Oehlenschlæger about 11 years ago

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

#3

Updated by Thomas Oehlenschlæger about 11 years ago

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

#4

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
#5

Updated by glazed donut about 11 years ago

I can confirm that the workaround in #4 works.

#6

Updated by Ronny Eia about 11 years ago

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

#7

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.

#8

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

#9

Updated by glazed donut almost 11 years ago

Her is a sample file attached.

#10

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

#11

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.

#12

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?

#13

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

Also available in: Atom PDF