On Sun, Dec 28, 2008 at 11:41 AM, Paul Gardiner <span dir="ltr">&lt;<a href="mailto:lists@glidos.net">lists@glidos.net</a>&gt;</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&#39;ve had<br>no end of trouble.<br><br>First I go into the backend setup &gt; 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 &quot;your grabber does not provide channel numbers&quot;, 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&#39;t matter if I refuse that automatic run.<br><br>Anyway, let&#39;s say I run it now. If I run mythfilldatabase --manual as<br>
directed,<br><br>&nbsp;(...this took 29 minutes just for grabbing, as the log&#39;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&#39;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&nbsp;&nbsp;&nbsp;&nbsp; = BBC Four<br>### callsign = <br>### channum&nbsp; = <br>### finetune = <br>
### tvformat = Default<br>### icon&nbsp;&nbsp;&nbsp;&nbsp; = /home/tv/.mythtv/channels/bbc4.jpg<br>### <br>Choose a channel ID (positive integer)&nbsp; [0]&nbsp; <br>### <br>### Channel skipped<br>### <br>### <br>### New channel found<br>### <br>### name&nbsp;&nbsp;&nbsp;&nbsp; = BBC News Channel<br>
### callsign = <br>### channum&nbsp; = <br>### finetune = <br>### tvformat = Default<br>### icon&nbsp;&nbsp;&nbsp;&nbsp; = /home/tv/.mythtv/channels/bbc_news.jpg<br>### <br>Choose a channel ID (positive integer)&nbsp; [0]&nbsp; 1<br>Choose a channel name (any string, long version)&nbsp; [BBC News Channel]&nbsp; <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)&nbsp; [Default]&nbsp; <br>
Choose a channel icon image (any path name)&nbsp; [<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>]&nbsp; <br>2008-12-29 14:05:08.741 New DB connection, total: 5<br>
2008-12-29 14:05:08.780 Connected to database &#39;mythconverg&#39; at host: 127.0.0.1<br>### <br>### Channel inserted<br>#<br>&nbsp;&nbsp; ...and so on...<br><br>So that&#39;s pretty much unusable, especially if I have to redo it<br>
several times by trial and error until the configuration works. Let&#39;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 &gt; 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>
&nbsp;...<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&#39;t work properly.&nbsp; <br><br>I go into the database to check things out and I figure that the<br>
closest to that &quot;xmltv channel identifier&quot; is probably the<br>channel.default_authority field:<br><br>mysql&gt; select channum, name, default_authority from channel;<br>+---------+------------------+----------------------+<br>
| channum | name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | default_authority&nbsp;&nbsp;&nbsp; |<br>+---------+------------------+----------------------+<br>| 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | BBC ONE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <a href="http://fp.bbc.co.uk">fp.bbc.co.uk</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <br>| 2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | BBC TWO&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <a href="http://fp.bbc.co.uk">fp.bbc.co.uk</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <br>
| 3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | ITV1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <a href="http://www.itv.com">www.itv.com</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <br>| 4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Channel 4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <a href="http://www.channel4.com">www.channel4.com</a>&nbsp;&nbsp;&nbsp;&nbsp; | <br>| 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Five&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <a href="http://www.five.tv">www.five.tv</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <br>
| 6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | ITV2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <a href="http://www.itv.com">www.itv.com</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <br>| 7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | BBC THREE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <a href="http://fp.bbc.co.uk">fp.bbc.co.uk</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | <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&#39;m not going to enter<br>all that stuff by hand, and I don&#39;t think that&#39;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&#39;m assuming that at least the channel<br>names match, though I&#39;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&#39;t for me at the moment, where would you enter that command you<br>had above? Just when you&#39;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&#39;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&#39;s the result, after closing the backend setup and letting it<br>run mythfilldatabase? That not only all the channel numbers are f&#39;d<br>
up, but also there&#39;s now NO data whatsoever in the program<br>guide. Groan. Guess I&#39;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&#39;m doing it...<br>
<br>