LinHES Forums http://forums.linhes.org/ |
|
one tuner -- two tv_guide grabbers? http://forums.linhes.org/viewtopic.php?f=17&t=5705 |
Page 1 of 1 |
Author: | MrWorf [ Wed Aug 17, 2005 12:49 am ] |
Post subject: | one tuner -- two tv_guide grabbers? |
Is this possible? The reason is that I live in southern sweden where I watch both swedish and danish channels, and all on the same tuner. But I can't see how I can make mythtv understand this. I added a second guide but it cannot be attached to the tuner (since I would loose the first one). And changing the guide id on the extra danish channels to the same as the swedish guide means that they are visible in myth, but mythfilldatabase won't import new data for it. Any tips, hints and ideas? |
Author: | LaGaffe [ Wed Aug 17, 2005 1:51 am ] |
Post subject: | Shell script for this purpose |
Hi MrWorf, I am in Switzerland and had exactly the same problem (I have to grab channelinfo from germany, france and norway to get all the stuff i need) Here's what i have done: 1) configure all the grabbers so they grab the channels you need 2) put together a shell script that grabs the data and runs mythfilldatabase to populate it with the data 3) set up a cron-job to run it every day at a set time Here's the script (Disclaimer: I'm a total newb to shell scripting) I have built in some very basic logging so I can see if the script failed on the last run or not. Code: #!/bin/sh
cd /home/mythtv/tmp /home/mythtv/tmp/tv_grab_de_tvtoday.in > de.xml if [ $? = 0 ] then echo "tv_grab_de succeeded" > log.log mythfilldatabase --file 1 -1 de.xml --quiet if [ $? = 0 ] then echo "mythfilldatabase for tv_grab_de succeeded" >> log.log fi else echo "tv_grab_de failed" >> log.log fi /home/mythtv/tmp/tv_grab_fr.1.17 > /home/mythtv/tmp/fr.xml if [ $? = 0 ] then echo "tv_grab_fr succeeded" >> log.log mythfilldatabase --file 1 -1 fr.xml --quiet if [ $? = 0 ] then echo "mythfilldatabase for fr succeeded" >> log.log fi else echo "tv_grab_fr failed" >> log.log fi tv_grab_no --days 6 > /home/mythtv/tmp/no.xml if [ $? = 0 ] then echo "tv_grab_no succeeded" >> log.log mythfilldatabase --file 1 -1 no.xml --quiet if [ $? = 0 ] then echo "mythfilldatabase for tv_grab_no succeeded" >> log.log fi else echo "tv_grab_no failed" >> log.log fi If you are wondering about the tv_grab_de_tvtoday.in and the tv_grab_fr.1.17 - that's because the rippers are broken now and then and I have to grab the newest CVS Version to keep it up and running. Take care if you are grabbing info from different timezones - grabbing from the uk got me into trouble as everything was offset by one hour. Hope it helps Stefan |
Author: | MrWorf [ Wed Aug 17, 2005 2:05 am ] |
Post subject: | |
This should do wonders ![]() I'll try it as soon as I get home from work. Thanks! |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |