Project

General

Profile

Actions

Bug #1800

closed

Bug #1774: Channel mapping to EPG grab source disappears

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

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

Added by Cedric Kastner over 12 years ago. Updated almost 12 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

Updated by Cedric Kastner over 12 years ago Actions #2

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

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

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

Updated by Cedric Kastner over 12 years ago Actions #4

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.

Updated by Adam Sutton over 12 years ago Actions #5

  • Parent task set to #1774

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

Adam

Updated by Jaroslav Kysela almost 12 years ago Actions #6

  • Status changed from New to Fixed
Actions

Also available in: PDF Atom