View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Aug 17, 2005 12:49 am 
Offline
Joined: Wed Aug 17, 2005 12:45 am
Posts: 2
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?


Top
 Profile  
 
PostPosted: Wed Aug 17, 2005 1:51 am 
Offline
Joined: Fri Jun 11, 2004 6:39 am
Posts: 20
Location: Zurich, Switzerland
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

_________________
Shuttle SN41G2V2
AMD Athlon XP-3000+
Lite-On 832S IDE, +/-R
200 GB Western Digital
Hauppauge PVR-350
Xbox Frontend


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 17, 2005 2:05 am 
Offline
Joined: Wed Aug 17, 2005 12:45 am
Posts: 2
This should do wonders :D

I'll try it as soon as I get home from work. Thanks!


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu