Project

General

Profile

Bug #1800

Bug #1774: Channel mapping to EPG grab source disappears

XMLTV / EPG Grab Source empty after reboot / start-stop of TVH

Added by Cedric Kastner about 11 years ago. Updated about 10 years ago.

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

0%

Estimated time:
Found in version:
3.4.27
Affected Versions:

Description

Hi all,

it seems TVH is losing the assigned EPG Gab Source from channels after a reboot.

How to reproduce:

1. Setup an XMLTV Internal Grab Source
2. Wait until TVH has loaded the XMLTV data
3. Go to channels and assign EPG Grab source for any channel
4. Reboot machine or TVH with start-stop-script
5. EPG Grab Source is now empty, all assignments are gone, no more EPG data after a while

It for sure happens when TVH starts up with XML Internal Grab Source set, not when TVH is shutting down. Analysis I've done so far:

1. When XMLTV file was read by TVH the following folder structure is being created:

NAS> pwd
/volume1/@appstore/tvheadend/var/epggrab/xmltv/channels/www.timefor.tv/tv
NAS> ls -la
-rwx------    1 tvheaden root           132 Sep 24 09:25 11245
-rwx------    1 tvheaden root           106 Sep 24 09:24 11264
-rwx------    1 tvheaden root           108 Jul 26 06:02 11367
-rwx------    1 tvheaden root           102 Jul 26 06:02 11382
-rwx------    1 tvheaden root            95 Sep 24 09:24 11390
...

2. When EPG Grab Source is not set in the webif all files looks like this:

NAS> cat 11245
{
    "name": "Das Erste HD DE DE",
    "icon": "http://static.timefor.tv/imgs/epg/logos/daserstehd_de_big.png",
}

3. When EPG Grab Source is assigned via webif the file now looks like this:

NAS> cat 11245
{
    "name": "Das Erste HD DE DE",
    "icon": "http://static.timefor.tv/imgs/epg/logos/daserstehd_de_big.png",
    "channels": [
        66
    ]
}

4. When TVH gets shut down, the file content remains the same, assignment between channel and XMLTV source seems to be okay.

5. When TVH starts up, the channel assignment for that file is gone. Looks like an overwrite / missing condition for me when TVH starts up, loads the XMLTV and checks for EPG grab source. It's really annoying.

Cheers,
nurtext

History

#2

Updated by Cedric Kastner about 11 years ago

This may be a duplicate ticket, but altering the XML source isn't a solution as long as TimeforTV is serving valid XML…

#3

Updated by Thomas Oehlenschlæger about 11 years ago

Agreed, I just do not have skills to fix the code

#4

Updated by Cedric Kastner about 11 years ago

AFAIK TVHeadend is written in C, isn't it? If you could help me finding the correct place in the source, I could try fixing this. I guess it's only a small fix where you need to replace the "/" to be sure TVH doesn't creates subfolders in the filesystem.

#5

Updated by Adam Sutton almost 11 years ago

  • Parent task set to #1774

This is a duplicate of #1774 which I've just fixed in master.

Adam

#6

Updated by Jaroslav Kysela about 10 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF