<div dir="ltr"><div><div>Hi!<br></div>I've been trying all morning to get the tv lisings into MythTV. I've got the latest version of MythTV installed on FC20 and am using <a href="http://mhegepgsnoop-0.6.0.py">mhegepgsnoop-0.6.0.py</a>.<br><br></div><div>First of all I made the following chnages to in <a href="http://mhegepgsnoop-0.6.0.py">mhegepgsnoop-0.6.0.py</a>:<br></div><div>1. mysql_args = "-u mythtv -pmythtv"... wouldn't give me access to the database otherwise.<br>2. clean_titles = True<br>    clean_titles2 = True .. necessary as otherwise I was getting "AttributeError: 'Namespace' object has no attribute 'clean_titles2'".<br><br></div><div>Anyway, after doing these changes I ran "python mhegepgsnoop.py -o tvguide.xml -v" successfully. But when I subsequently ran "mythfilldatabase --file --sourceid 1 --xmlfile tvguide.xml" nothing was imported and I got a long list of "Unknown xmltv channel identifier:" notices:<br><br>2014-10-21 13:00:46.559966 C  mythfilldatabase version: fixes/0.27 [v0.27.3-109-g0dd5ab3] <a href="http://www.mythtv.org">www.mythtv.org</a><br>2014-10-21 13:00:46.559994 C  Qt version: compile: 4.8.6, runtime: 4.8.6<br>2014-10-21 13:00:46.559999 N  Enabled verbose msgs:  general<br>2014-10-21 13:00:46.560015 N  Setting Log Level to LOG_INFO<br>2014-10-21 13:00:46.575594 I  Bypassing grabbers, reading directly from file<br>2014-10-21 13:00:46.575660 I  Added logging to the console<br>2014-10-21 13:00:46.576247 I  Setup Interrupt handler<br>2014-10-21 13:00:46.576257 I  Setup Terminated handler<br>2014-10-21 13:00:46.576265 I  Setup Segmentation fault handler<br>2014-10-21 13:00:46.576276 I  Setup Aborted handler<br>2014-10-21 13:00:46.576282 I  Setup Bus error handler<br>2014-10-21 13:00:46.576291 I  Setup Floating point exception handler<br>2014-10-21 13:00:46.576299 I  Setup Illegal instruction handler<br>2014-10-21 13:00:46.576309 I  Setup Real-time signal 0 handler<br>2014-10-21 13:00:46.576369 N  Using runtime prefix = /usr<br>2014-10-21 13:00:46.576382 N  Using configuration directory = /root/.mythtv<br>2014-10-21 13:00:46.576464 I  Assumed character encoding: <br>2014-10-21 13:00:46.576474 W  This application expects to be running a locale that specifies a UTF-8 codeset, and many features may behave improperly with your current language settings. Please set the LC_ALL or LC_CTYPE, and LANG variable(s) in the environment in which this program is executed to include a UTF-8 codeset (such as 'en_US.UTF-8').<br>2014-10-21 13:00:46.576850 N  Empty LocalHostName.<br>2014-10-21 13:00:46.576859 I  Using localhost value of <a href="http://kauri.fritzandlily.com">kauri.fritzandlily.com</a><br>2014-10-21 13:00:46.620825 N  Setting QT default locale to en_NZ<br>2014-10-21 13:00:46.620914 I  Current locale en_NZ<br>2014-10-21 13:00:46.620975 E  No locale defaults file for en_NZ, skipping<br>2014-10-21 13:00:46.624965 I  Loading en_us translation for module mythfrontend<br>2014-10-21 13:00:46.629507 I  Current MythTV Schema Version (DBSchemaVer): 1317<br>2014-10-21 13:00:46.638402 I  MythCoreContext: Connecting to backend server: <a href="http://192.168.233.100:6543">192.168.233.100:6543</a> (try 1 of 1)<br>2014-10-21 13:00:46.640166 I  Using protocol version 77<br>2014-10-21 13:00:46.640402 I  Opening blocking connection to master backend<br>2014-10-21 13:00:46.676557 I  New Client:  (#1)<br>2014-10-21 13:00:47.021726 N  Unknown xmltv channel identifier: Al - Skipping channel.<br>2014-10-21 13:00:47.021994 N  Unknown xmltv channel identifier: Apna - Skipping channel.<br>2014-10-21 13:00:47.022259 N  Unknown xmltv channel identifier: CUE - Skipping channel.<br>2014-10-21 13:00:47.022531 N  Unknown xmltv channel identifier: ChineseTV - Skipping channel.<br>2014-10-21 13:00:47.022789 N  Unknown xmltv channel identifier: ChoiceTV - Skipping channel.<br>2014-10-21 13:00:47.023045 N  Unknown xmltv channel identifier: FOUR - Skipping channel.<br>2014-10-21 13:00:47.023301 N  Unknown xmltv channel identifier: Firstlight - Skipping channel.<br>2014-10-21 13:00:47.023568 N  Unknown xmltv channel identifier: Maori - Skipping channel.<br>2014-10-21 13:00:47.023824 N  Unknown xmltv channel identifier: PRIME - Skipping channel.<br>2014-10-21 13:00:47.024079 N  Unknown xmltv channel identifier: Parliament - Skipping channel.<br>2014-10-21 13:00:47.024335 N  Unknown xmltv channel identifier: Sommet - Skipping channel.<br>2014-10-21 13:00:47.024609 N  Unknown xmltv channel identifier: TV - Skipping channel.<br>2014-10-21 13:00:47.024908 N  Unknown xmltv channel identifier: TV2 - Skipping channel.<br>2014-10-21 13:00:47.025159 N  Unknown xmltv channel identifier: TV2+1 - Skipping channel.<br>2014-10-21 13:00:47.025412 N  Unknown xmltv channel identifier: TV29 - Skipping channel.<br>2014-10-21 13:00:47.025664 N  Unknown xmltv channel identifier: TV3 - Skipping channel.<br>2014-10-21 13:00:47.025913 N  Unknown xmltv channel identifier: TV33 - Skipping channel.<br>2014-10-21 13:00:47.026162 N  Unknown xmltv channel identifier: TVSN - Skipping channel.<br>2014-10-21 13:00:47.026419 N  Unknown xmltv channel identifier: Te - Skipping channel.<br>2014-10-21 13:00:47.026671 N  Unknown xmltv channel identifier: The - Skipping channel.<br>2014-10-21 13:00:47.026922 N  Unknown xmltv channel identifier: Yes - Skipping channel.<br>2014-10-21 13:00:47.026931 I  Updated programs: 0 Unchanged programs: 0<br>2014-10-21 13:00:47.038413 I  Adjusting program database end times.<br>2014-10-21 13:00:47.145911 I      0 replacements made<br>2014-10-21 13:00:47.145919 I  Marking generic episodes.<br>2014-10-21 13:00:47.236963 I      Found 0<br>2014-10-21 13:00:47.236972 I  Extending non-unique programids with multiple parts.<br>2014-10-21 13:00:47.276668 I      Found 0<br>2014-10-21 13:00:47.276676 I  Fixing missing original airdates.<br>2014-10-21 13:00:47.364464 I      Found 0 with programids<br>2014-10-21 13:00:47.387089 I      Found 0 without programids<br>2014-10-21 13:00:47.387099 I  Marking repeats.<br>2014-10-21 13:00:47.465658 I      Found 0<br>2014-10-21 13:00:47.465665 I  Unmarking new episode rebroadcast repeats.<br>2014-10-21 13:00:47.465984 I      Found 0<br>2014-10-21 13:00:47.706478 I  Marking episode first showings.<br>2014-10-21 13:00:48.100294 I      Found 10715<br>2014-10-21 13:00:48.100301 I  Marking episode last showings.<br>2014-10-21 13:00:48.672935 I      Found 10624<br>2014-10-21 13:00:48.673697 I  <br>===============================================================<br>| Attempting to contact the master backend for rescheduling.  |<br>| If the master is not running, rescheduling will happen when |<br>| the master backend is restarted.                            |<br>===============================================================<br>2014-10-21 13:00:48.674151 N  mythfilldatabase run complete.<br>2014-10-21 13:00:48.674190 I  Waiting for threads to exit.<br><br></div><div>The database channels show this:<br><br>MariaDB [mythconverg]> select chanid,channum,xmltvid,name from channel;<br>+--------+---------+----------------------+----------------------+<br>| chanid | channum | xmltvid              | name                 |<br>+--------+---------+----------------------+----------------------+<br>|   1036 | 36      | Apna                 | Apna Television      |<br>|   1021 | 21      | Yes Shop             | Yes Shop             |<br>|   1029 | 29      | TV29                 | TV29                 |<br>|   1003 | 3       | TV3                  | TV3                  |<br>|   1004 | 4       | FOUR                 | FOUR                 |<br>|   1008 | 8       | TV3 PLUS1            | TV3 PLUS1            |<br>|   1018 | 18      | The Shopping Channel | The Shopping Channel |<br>|   1011 | 11      | The Edge TV          | The Edge TV          |<br>|   1009 | 9       | FOUR Plus 1          | FOUR Plus 1          |<br>|   1001 | 1       | TV ONE               | TV ONE               |<br>|   1002 | 2       | TV2                  | TV2                  |<br>|   1006 | 6       | TV ONE plus 1        | TV ONE plus 1        |<br>|   1007 | 7       | TV2+1                | TV2+1                |<br>|   1005 | 5       | Maori Television     | Maori Television     |<br>|   1022 | 22      | Parliament           | Parliament           |<br>|   1028 | 28      | ChineseTV            | ChineseTV            |<br>|   1010 | 10      | PRIME                | PRIME                |<br>|   1033 | 33      | TV33                 | TV33                 |<br>|   1012 | 12      | ChoiceTV             | ChoiceTV             |<br>|   1030 | 30      |                      | TVCentral            |<br>|   1024 | 24      | Te Reo               | Te Reo               |<br>|   1031 | 31      |                      | TV Rotorua           |<br>|   1032 | 32      |                      | Info-Rotorua         |<br>|   1035 | 35      |                      | Channel North        |<br>|   1026 | 26      | Firstlight           | Firstlight           |<br>|   1014 | 14      | Sommet Sports        | Sommet Sports        |<br>|   1040 | 40      |                      | CanterburyTV         |<br>|   1039 | 39      |                      | DunedinTV            |<br>|   1023 | 23      | CUE                  | CUE                  |<br>|   1034 | 34      |                      | East Coast TV        |<br>|   2762 | 36-1402 |                      |                      |<br>|   2702 | 16      |                      | Al Jazeera           |<br>|   2704 | 20      | TVSN Shopping        | TVSN Shopping        |<br>|   2502 | 1502    | Al Jazeera           | Al Jazeera           |<br>|   2504 | 1504    |                      | TVSN Shopping        |<br>+--------+---------+----------------------+----------------------+<br><br></div><div>And the tvguidexml channel ids show this:<br><br># grep "channel id" tvguide.xml |sed "s/\t<channel id=/channel=/g" | sed 's/"//g' | sed "s/>//g"<br>channel=Al Jazeera<br>channel=Apna<br>channel=ChineseTV<br>channel=ChoiceTV<br>channel=CUE<br>channel=Firstlight<br>channel=FOUR<br>channel=FOUR Plus 1<br>channel=<br>channel=Maori Television<br>channel=Parliament<br>channel=PRIME<br>channel=Sommet Sports<br>channel=Te Reo<br>channel=The Edge TV<br>channel=The Shopping Channel<br>channel=TVSN Shopping<br>channel=TV ONE<br>channel=TV2<br>channel=TV2+1<br>channel=TV29<br>channel=TV3<br>channel=TV3 PLUS1<br>channel=TV33<br>channel=TV ONE plus 1<br>channel=Yes Shop<br><br></div><div>It all seems to match. I'm pretty well stumped and am wondering if anyone can assist? Thanks.<br></div></div>