Opened 14 years ago

Closed 12 years ago

#9417 closed Patch - Feature (fixed)

Mythfilldatabase doesn't populate the xmltvid field for non us countries,

Reported by: laurent@… Owned by: stuartm
Priority: minor Milestone: 0.27
Component: MythTV - Mythfilldatabase Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Hello,

Setup of mythtv channel table for non us countries is difficult because there is no default way to populate the xmltvid field on the channel table. User may have two options:

1/ They do a channel scan from the tuner. After this, they have to manuel fill the xmltvid field in the database before they call mythfilldatabase to update the program table. They are script to automtically fill the xmltvid field in the database like this one :http://mythtv-fr.tuxfamily.org/wiki/telechargement_icone_tv.

2/ They begin by using the grabber to fill the channel table. In this case, xmltvid are correctly set, but the frequency of each channel have to be fill manually.

My proposal is a patch on mythfilldatabase. If mythfilldatabase don't find the xmltvid in channeldata::handleChannels, it will try to match the callsign already in the channel table (coming from the channel scan), and the one coming from the xmltv file. Most of the time, this match is sufficient to update the xmltvid field.

With this patch, people will be able: 1/ First step: do the channel scan. 2/ Second step: update xmltvid field and program with a mythfilldatabase --update --source n file.xmltv

Attachments (1)

automate-xmltvid-filldefaultvalue.diff (5.9 KB) - added by laurent@… 14 years ago.
Automate xmltvid filldefaultvalue.diff

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by laurent@…

Automate xmltvid filldefaultvalue.diff

comment:1 Changed 14 years ago by sphery

Seems to be a dup of #6531, which has a different patch

comment:2 Changed 13 years ago by stuartm

Milestone: unknown0.25
Status: newaccepted

comment:3 Changed 13 years ago by stuartm

Milestone: 0.250.26

Unfortunately I forgot about this for 0.25

comment:4 Changed 12 years ago by Kenni Lund [kenni a kelu dot dk]

Milestone: 0.260.27

comment:5 Changed 12 years ago by Laurent ARNAL <laurent@…>

Resolution: fixed
Status: acceptedclosed

In b7a1bd237e16c7653f34a2826eef14f841ef4e7b/mythtv:

Make a best guess effort to automate the insertion of xmltvids

If mythfilldatabase don't find the xmltvid in channeldata::handleChannels, it will try to match the callsign already in the channel table (coming from the channel scan), and the one coming from the xmltv file. Most of the time, this match is sufficient to update the xmltvid field.

With this patch, people will be able:

1/ First step: do the channel scan.

2/ Second step: update xmltvid field and program with a

mythfilldatabase --update --source n file.xmltv

Fixes #9417

Signed-off-by: Stuart Morgan <smorgan@…>

Note: See TracTickets for help on using tickets.