View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 22 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Sep 10, 2007 1:56 am 
Offline
Joined: Sat Apr 08, 2006 7:27 am
Posts: 125
i havent been able to get tv guide data using either either ausdragon2 or tv country=au at the boot promp.

the AusDragonTweaker.sh script hasn't been modify much since F1, but it no longer collects data from TUHS when i type mythfilldatabase.

instead, mythfilldatabase is looking for the shedules direct urls to get the guide data.

The problem (i think) is that mythtv-setup does not have a listings grabber for australia.. ie it doesnt have tv_grab_au

the setup defaults to the us grabber.. and even when i boot with ausdragon2, the us schedules direct grabber is selected.. presumably because the tv_grab_au xmltv isnt there.

has tv_grab_au been omitted.?

without been able to select tv_grab_au, im not able to run AusDragonTweaker.sh .. how will i get guide data?

thanks

attached is a bit of what mythfilldatabase spits out.. but as ive said.. this is cause of the fact that the us has been selected in the backend setup.. (it is by default with the ausdragon2 and tv country=au boot promp. and i cant select tv_grab_au as it isnt there/?? ... help

sh-3.1$ mythfilldatabase
2007-09-10 18:19:37.747 Using runtime prefix = /usr
2007-09-10 18:19:37.783 New DB connection, total: 1
2007-09-10 18:19:37.795 Connected to database 'mythconverg' at host: localhost
2007-09-10 18:19:37.806 New DB connection, total: 2
2007-09-10 18:19:37.807 Connected to database 'mythconverg' at host: localhost
2007-09-10 18:19:37.808 Updating source #1 (HD-broadcast) with grabber schedulesdirect1
2007-09-10 18:19:37.809 Found 22 channels for source 1 which use grabber
2007-09-10 18:19:37.810
2007-09-10 18:19:37.810 Checking day @ offset 0, date: Mon Sep 10 2007
2007-09-10 18:19:37.813 Data refresh needed because no data exists for day @ offset 0 from 6PM - midnight.
2007-09-10 18:19:37.813 Refreshing data for Mon Sep 10 2007
2007-09-10 18:19:37.815 New DB DataDirect connection
2007-09-10 18:19:37.815 Connected to database 'mythconverg' at host: localhost
2007-09-10 18:19:37.817 Retrieving datadirect data.
2007-09-10 18:19:37.818 Grabbing data for Mon Sep 10 2007 offset 0
2007-09-10 18:19:37.818 From Sun Sep 9 14:00:00 2007 to Mon Sep 10 14:00:00 2007 (UTC)
2007-09-10 18:19:37.818 Grabbing listing data
--18:19:37-- http://webservices.schedulesdirect.tmsd ... tvdService
=> `-'


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 10, 2007 3:14 am 
Offline
Joined: Mon Mar 13, 2006 2:28 am
Posts: 143
Location: Brisbane, Australia
I did a quick install at work this arvo to check out the cool new features and noticed this too. The script is located in /usr/bin, but there is no way to select it from mythtv-setup.

Without being at the box right now, I guess you could run mythfilldatabase manually until a decent fix is found.


Top
 Profile  
 
PostPosted: Mon Sep 10, 2007 3:21 am 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
stevetv wrote:
has tv_grab_au been omitted.?


Please check with "which -a tv_grab_au"

If you don't have it, I can easily post a script that will install it.

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 10, 2007 11:25 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
tv_grab_au is included.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 10, 2007 5:48 pm 
Offline
Joined: Mon Mar 13, 2006 2:28 am
Posts: 143
Location: Brisbane, Australia
Yes, it is included. But it doesn't seem to detect as a grabber. Running tv_find_grabbers doesn't find it. I have also disabled all the other grabbers by renaming them, leaving only tv_grab_au as an option. While this will remove the ones I don't need from mythtv-setup, it still won't add the AU one.

Please note running tv_grab_au manually works fine after configured and is returning listings.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 10, 2007 6:15 pm 
Offline
Joined: Mon Mar 13, 2006 2:28 am
Posts: 143
Location: Brisbane, Australia
Ok, the problem is is that the tv_grab_au script does not implement the --description option which the tv_find_grabbers is looking for.

You need to edit the tv_grab_au script so it ouputs some kind of description.

Code:
mythtv@mythtv:/usr/bin$ diff tv_grab_au_backup tv_grab_au
84a85,87
>
>     --description
>       The description of the place this grabber works for.
528c531
<                       "hvo:d:c:", ["help", "version", "verbose", "quiet", "debug", "output=", "days=", "offset=", "configure", "config-file=", "force-explicit-timezone", "capabilities", "preferredmethod"])
---
>                       "hvo:d:c:", ["help", "version", "verbose", "quiet", "debug", "output=", "days=", "offset=", "configure", "config-file=", "force-explicit-timezone", "capabilities", "preferredmethod", "description"])
545a549,551
>               elif o == "--description":
>                       print >> sys.stdout, "Australia"
>                       sys.exit(0)


It will now show up in mythtv-seutp.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 10, 2007 6:37 pm 
Offline
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location: Brisbane, Queensland, Australia
Could this be added to the patcher, so for new installs this would be corrected?

_________________
Girkers


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 11, 2007 1:15 am 
Offline
Joined: Sat Apr 08, 2006 7:27 am
Posts: 125
Kirk wrote:
Ok, the problem is is that the tv_grab_au script does not implement the --description option which the tv_find_grabbers is looking for.

You need to edit the tv_grab_au script so it ouputs some kind of description.

Code:
mythtv@mythtv:/usr/bin$ diff tv_grab_au_backup tv_grab_au
84a85,87
>
>     --description
>       The description of the place this grabber works for.
528c531
<                       "hvo:d:c:", ["help", "version", "verbose", "quiet", "debug", "output=", "days=", "offset=", "configure", "config-file=", "force-explicit-timezone", "capabilities", "preferredmethod"])
---
>                       "hvo:d:c:", ["help", "version", "verbose", "quiet", "debug", "output=", "days=", "offset=", "configure", "config-file=", "force-explicit-timezone", "capabilities", "preferredmethod", "description"])
545a549,551
>               elif o == "--description":
>                       print >> sys.stdout, "Australia"
>                       sys.exit(0)




It will now show up in mythtv-seutp.


sorry kirk.. can you write this in the form of a how to? .. dont hate me. will i need to configure tv_grab_au completely .. ie adding channels etc, or will mikes AusDragonTweaker.sh do that for me after tv_grab_au has been selected in the backend setup.

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 11, 2007 6:44 am 
Offline
Joined: Mon Mar 13, 2006 2:28 am
Posts: 143
Location: Brisbane, Australia
Apparently python cares about indentation and this is screwing up my reply to this post. Any ideas anyone? I don't have web space atm to host this patch.

Thanks,
Kirk.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 11, 2007 7:07 am 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
Kirk wrote:
Apparently python cares about indentation and this is screwing up my reply to this post. Any ideas anyone? I don't have web space atm to host this patch.

Thanks,
Kirk.


I have. Send it to me and I'll upload it.

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 11, 2007 7:20 am 
Offline
Joined: Tue Nov 08, 2005 7:31 am
Posts: 195
Location: Secret Lair
You can also put files like this up on the wiki.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 11, 2007 7:35 am 
Offline
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location: Mechanicsburg, PA
Girkers wrote:
Could this be added to the patcher, so for new installs this would be corrected?

If someone turns this into a sed command, I can add it to the patcher.

_________________
KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 11, 2007 6:40 pm 
Offline
Joined: Mon Mar 13, 2006 2:28 am
Posts: 143
Location: Brisbane, Australia
Hi Steve,

Sorry, but I have no digital (yet), nor even a system close to the ausdragon specs so I've never run Mike's script before so I can't with certainty comment on that. I was more referring to the general problem of tv_grab_au not showing up in mythtv-setup.

Essentially what I'm trying to do here is patch the tv_grab_au file with some extra code, so that when tv_find_grabbers is run it returns some usable information (ie, a tv_grab_au --description output).

That all being said I whacked together an old EPIA board without tuners and did an ausdragon2 install anyways :wink: and it looks like it will work fine after editing the tv_grab_au script and running the AusDragonTweaks.sh. I would recommend that you edit this right after the first reboot, just before it asks you your TUHS username, by opening up another terminal (alt-x) if doing a fresh install.

There is also a problem with some xmltv scripts being too slow before tv_find_grabbers times out, as per this thread. I recommend renaming, or simply removing the tv_grabbers that you aren't going to use.

Let's get to it. Copy this code into a file called tv_grab_au_patcher;
Code:
#!/bin/bash
cp /usr/bin/tv_grab_au /usr/bin/tv_grab_au~
sed -e '86i\    --description\n\tThe place this grabber works for.\n' \
-e 's/od"]/od", "description"]/' \
-e '546i\\t\telif o == "--description":\n\t\t\tprint >> sys.stdout, "Australia"\n\t\t\tsys.exit(0)' \
< /usr/bin/tv_grab_au~ > /usr/bin/tv_grab_au

Now as root;
Code:
chmod +x tv_grab_au_patcher
./tv_grab_au_patcher

Done. Should return without any errors.

As mythtv user, run;
Code:
Code:
tv_find_grabbers

tv_grab_au|Australia should be the first entry to come up. If it doesn't something's wrong, eek, try run "tv_grab_au --description".. it's supposed to return "Australia".

If all is running smoothly you will now see 'Australia (xmltv)' in mythtv-setup. Now following the install it looks like it will ask you to scan for channels, and try and run mythfilldatabase, which should work a treat (remembering I've haven't done this method before).

By the way, 'apt-get update; apt-get install iceweasel' works great in R5F27 if you need www access.

Good luck.

Human wrote:
If someone turns this into a sed command, I can add it to the patcher.

Hope that helps somewhat Human.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 11, 2007 7:12 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
Does KM or AusDragon include the latest (27Jan07) tv_grab_au from http://www.cse.unsw.edu.au/~willu/xmltv ... u_reg.html? As it is supposed to include the --description option.

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 11, 2007 7:51 pm 
Offline
Joined: Mon Mar 13, 2006 2:28 am
Posts: 143
Location: Brisbane, Australia
Nah, it's not the latest (Sat, 13 Jan 2007).

I checked the newer version and it does indeed include the description string.

It'd probably be easier for everyone to simply download that.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 29 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu