On Sun, Dec 28, 2008 at 11:41 AM, Paul Gardiner <span dir="ltr"><<a href="mailto:lists@glidos.net">lists@glidos.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
And here, although - on the advice of a friend - I use:<br>
tv_grab_uk_rt --quiet --config-file /root/.mythtv/Freeview.xmltv |<br>
mythfilldatabase --update --file 1 -<br>
</blockquote></div><br>Where exactly do you enter this command?<br><br>Triggered by your posting and by the fact that I could see no<br>data for itv1 beyond 2 Jan 2009 while all the other channels had some, I tried once<br>
more to activate the feature of grabbing listings from the internet as<br>opposed to getting them from the EIT tv broadcast itself, but I've had<br>no end of trouble.<br><br>First I go into the backend setup > video sources.<br>
Delete all video sources.<br>New video source.<br><br>Video source name: RadioTimes<br>Listings grabber: UK/Republic of Ireland<br>tv_grab_uk_rt: config will run in the terminal window<br>X Perform EIT scan <br>Channel frequency table: default<br>
Finish<br><br>Now in the terminal I answer all the setup questions:<br>Encoding: default<br>Directory: default<br>Title processing: default<br>Postcode: my postcode<br>Which tv platform: freeview<br>Select the channels you want to receive data for: all<br>
<br>and here it says two things:<br><br>You MUST run mythfilldatabase --manual the first time instead of<br>mythfilldatabase.<br><br>Your grabber does not provide channel numbers, so you have to set them<br>manually.<br><br>
Then I switch back to the gui and it repeats those two things in a<br>dialog box.<br><br>Now, when it says "your grabber does not provide channel numbers", I<br>assume it means tv_grab_uk_rt, because I know that from EIT I did get<br>
channel numbers! And hey, I even checked the checkbox to use EIT as<br>well, so why does it not make use of that? Mysteries. Anyway I click<br>OK.<br><br>Now, when am I supposed to run mythfilldatabase --manual ? right now?<br>
I know it will offer to run mythfilldatabase (without other options)<br>when I close the backend setup. Should I instead do it AFTER that? I<br>suppose it won't matter if I refuse that automatic run.<br><br>Anyway, let's say I run it now. If I run mythfilldatabase --manual as<br>
directed,<br><br> (...this took 29 minutes just for grabbing, as the log's timestamps show...)<br><br>then I get asked half a dozen questions for EACH of the 80+ channels,<br>and if I just press enter to let it take the defaults (assuming eg<br>
that I'll fix the channel numbers later at the sql prompt) then it<br>just SKIPS those channels!<br><br>### <br>### New channel found<br>### <br>### name = BBC Four<br>### callsign = <br>### channum = <br>### finetune = <br>
### tvformat = Default<br>### icon = /home/tv/.mythtv/channels/bbc4.jpg<br>### <br>Choose a channel ID (positive integer) [0] <br>### <br>### Channel skipped<br>### <br>### <br>### New channel found<br>### <br>### name = BBC News Channel<br>
### callsign = <br>### channum = <br>### finetune = <br>### tvformat = Default<br>### icon = /home/tv/.mythtv/channels/bbc_news.jpg<br>### <br>Choose a channel ID (positive integer) [0] 1<br>Choose a channel name (any string, long version) [BBC News Channel] <br>
Choose a channel callsign (any string, short version) <br>Choose a channel number (just like xawtv) <br>Choose a channel fine tune offset (just like xawtv) <br>Choose a TV format (PAL/SECAM/NTSC/ATSC/Default) [Default] <br>
Choose a channel icon image (any path name) [<a href="http://www.lyngsat-logo.com/logo/tv/bb/bbc_news.jpg">http://www.lyngsat-logo.com/logo/tv/bb/bbc_news.jpg</a>] <br>2008-12-29 14:05:08.741 New DB connection, total: 5<br>
2008-12-29 14:05:08.780 Connected to database 'mythconverg' at host: 127.0.0.1<br>### <br>### Channel inserted<br>#<br> ...and so on...<br><br>So that's pretty much unusable, especially if I have to redo it<br>
several times by trial and error until the configuration works. Let's<br>break out of that.<br><br>So, other approach. I take your command up there and break it up into<br>parts; so from the command line I run the first part and save the<br>
output to a file:<br><br>tv_grab_uk_rt --quiet --config-file /home/tv/.mythtv/RadioTimes.xmltv > dump.txt<br><br>This also takes ages to run (predictably) but eventually I get a 6.7<br>MB file in xml that looks about right. So at least the grabbing works.<br>
<br>Then I run the second part of your command:<br><br>-mythfilldatabase --update --file 1 dump.txt <br><br>and what do I get? A big bunch of <br><br>Unknown xmltv channel identifier: <a href="http://anglia.itv1.itv.co.uk">anglia.itv1.itv.co.uk</a> - Skipping channel.<br>
Unknown xmltv channel identifier: <a href="http://bbcfour.bbc.co.uk">bbcfour.bbc.co.uk</a> - Skipping channel.<br>Unknown xmltv channel identifier: <a href="http://bbcthree.bbc.co.uk">bbcthree.bbc.co.uk</a> - Skipping channel.<br>
...<br>Unknown xmltv channel identifier: <a href="http://us.channel5.co.uk">us.channel5.co.uk</a> - Skipping channel.<br><br>So that also doesn't work properly. <br><br>I go into the database to check things out and I figure that the<br>
closest to that "xmltv channel identifier" is probably the<br>channel.default_authority field:<br><br>mysql> select channum, name, default_authority from channel;<br>+---------+------------------+----------------------+<br>
| channum | name | default_authority |<br>+---------+------------------+----------------------+<br>| 1 | BBC ONE | <a href="http://fp.bbc.co.uk">fp.bbc.co.uk</a> | <br>| 2 | BBC TWO | <a href="http://fp.bbc.co.uk">fp.bbc.co.uk</a> | <br>
| 3 | ITV1 | <a href="http://www.itv.com">www.itv.com</a> | <br>| 4 | Channel 4 | <a href="http://www.channel4.com">www.channel4.com</a> | <br>| 5 | Five | <a href="http://www.five.tv">www.five.tv</a> | <br>
| 6 | ITV2 | <a href="http://www.itv.com">www.itv.com</a> | <br>| 7 | BBC THREE | <a href="http://fp.bbc.co.uk">fp.bbc.co.uk</a> | <br><br>...and if my guess is right then that explains why I have a problem<br>
with ITV, for example, which is listed as <a href="http://www.itv.com">www.itv.com</a> in the database<br>and <a href="http://anglia.itv1.itv.co.uk">anglia.itv1.itv.co.uk</a> in the grabbed xml. (Never mind that there must be another problem with ITV1 too, because it had no data FROM THE EIT, before I even tried using the grabber; hey, it was the reason for wanting to use it in the first place.)<br>
<br>Anyway, what do I do at this stage? For sure I'm not going to enter<br>all that stuff by hand, and I don't think that's what most of the<br>people for whom it works are doing. How else can I resync stuff? Get a<br>
database dump of the channel table from someone who sees the same<br>channels and has a working radio-times-grabbing setup?<br><br>Why does it claim that the radio times grabber does not provide<br>channel numbers? How else does it work for other people? Any way to<br>
use EIT to give it the channel numbers, and the grabber for the<br>schedule info, for example? (I'm assuming that at least the channel<br>names match, though I've seen inconsistencies there too when checking<br>what was in those tables.)<br>
<br>And anyway, assuming that everything else worked, which it clearly<br>doesn't for me at the moment, where would you enter that command you<br>had above? Just when you're asked to do a manual rescan, or is it a<br>
setting you must enter somewhere in the backend setup?<br><br>If anyone has got a step by step tutorial on getting this grabber to<br>work, I'd appreciate it.<br><br>Meanwhile, I go back to just EIT, do a rescan and... sigh... now the<br>
channel numers are all messed up, with BBC ONE having gone from 1 to<br>4173 (sic!), BBC TWO to 4237 and so on, without rhyme or reason.<br><br>So what's the result, after closing the backend setup and letting it<br>run mythfilldatabase? That not only all the channel numbers are f'd<br>
up, but also there's now NO data whatsoever in the program<br>guide. Groan. Guess I'll have to redo the setup of the EIT from<br>scratch yet once more, hoping to hit the right phase of the moon while<br>I'm doing it...<br>
<br>