NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 38 39 40 41 42 … 93 Next »
YahooXMLTv (requires Go for TV)

 
  • 0 Vote(s) - 0 Average
YahooXMLTv (requires Go for TV)
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#1
2007-07-02, 05:07 AM (This post was last modified: 2007-09-17, 05:00 PM by whurlston.)
YAHOO GO 4 TV NO LONGER RETRIEVES LISTINGS, THEREFORE THIS UTILITY NO LONGER WORKS.

THOSE UPGRADING SHOULD READ THE CHANGES. YOU WILL NEED TO CLEAR YOUR CURRENT CHANNELS AS THE CHANNEL IDs HAVE CHANGED.

This requires Go for TV to be installed and configured with at least one lineup. When installing, make sure not to tell it to run in service mode. Once a lineup is configured, the tuner can be removed from the machine (easily done with a USB tuner). Go for TV does not need to be installed on the same machine as GB-PVR.

Extract the contents of the zip file to the direcory of your choice. Run YahooXMLtv.exe and it will download the listings for each configured lineup and export an xml file using the name of the lineup for the filename.

No commandline options are required but the following are available:

dir=<OutputDirectory> -- Write xml files to specified path.
"dir=<Output Directory>" -- Same as above but for paths containing spaces. Note the Quotes. Default is the app directory.
file=<OutputFile1.xml,OutputFile2.xml> -- Write xml to specified file. Multiple lineups use comma separation.
retries=X -- Number of times to retry listings download (per lineup). Default is 3.
add-marker -- Appends an asterisk to the end of the show title if the show is not a repeat.
marker-text=X -- The text used when marking shows as new. Default is "*" Example: marker-text=(New) will output "The Closer (New)".
delay=X -- Time between retries in seconds. Default is 60.
display-name=X -- Specifies the first display-name tag to be written. The rest will be written in the order below. Default is 1.
  • 0 = "23"
  • 1 = "APLNT" (Output first by default.)
  • 2 = "23 APLNT"
  • 3 = "Animal Planet"
  • 4 = "23 Animal Planet"
  • 5 = "(APLNT) Animal Planet"
  • 6 = "23 (APLNT) Animal Planet"

no-download -- Process only. Do not download new listings (useful for testing to eliminate server load).
show-progress -- Shows current processing progress. CANNOT BE USED WHEN REDIRECTING OUTPUT.
clear-cache -- Clears the download cache for Go4Tv before retrieving listings.

A log will be output to the screen. If you want to log to a file, simply append " > logfile.txt" to the end of the command/options (without quotes).

Changes:
Now uses channel ID instead of channel number for the <channel id="XXXX">.
Now automatically renumbers duplicate channel numbers.
Now outputs all display-name tags.
Added long channel name support.
Added channel icon support.
Added an option to clear the Go4Tv lineup download cache.
Added new show marker option with option to specify the marker text.
Added output filename option.
Improved processing speed.
Added blank listing download detection with automatic retry.
All titles are now unsorted due to the new processing.
Note the change to the display-name output.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#2
2007-07-02, 05:08 AM (This post was last modified: 2007-07-16, 07:30 PM by whurlston.)
Here is the method to convert a bda.ini entry into a config file for Go to Tv so that you can set up the initial lineup. The numbers in red are to show what information goes where (only the relevant parts of the bda.ini are shown).

bda.ini:
Quote:FILTER_CAPTURE=1
FILTER_TUNER=2
Go forTV
Quote:<graph device="1" flags="BDA" >
<device id="vid_0930&amp;pid_1005" />
<sink>
<filter id="CAPTURE" category="BDA-CAPTURE" name="1" />
<filter id="TVTUNER" category="BDA-TUNER" name="2" />
<filter id="BDA-PROVIDER" category="BDA-PROVIDER" name="Microsoft ATSC Network Provider" clsid="{0DAD2FDD-5FD7-11D3-8F50-00C04F7971E2}" />
<filter id="BDA-TIF" category="BDA-TIF" name="BDA MPEG2 Transport Information Filter" />
<filter id="BDA-MST" category="BDA-TIF" name="MPEG-2 Sections and Tables" />
<filter id="DEMUX" category="MPEG2DEMUX" flags="no-preset" />
<filter id="ANALYZER" category="MPEG2ANALYZER" />
<filter id="SBESINK" category="SBESINK" />
<connect output_filter="BDA-PROVIDER" output_pin="#0" input_filter="TVTUNER" input_pin="#0" />
<connect output_filter="TVTUNER" output_pin="#0" input_filter="CAPTURE" input_pin="#0" />
<connect output_filter="CAPTURE" output_pin="#0" input_filter="DEMUX" input_pin="#0" />
<connect auto_demux="true" />
</sink>
<source>
</source>
</graph>

Once that is done, you will need GraphEdit to get the device id. Open GraphEdit and go to "Graph -> Insert Filters". Expand the BDA Receiver Component tree and then expand the above capture device. You should see an entry similar to:
Quote:DisplayName: @device:pnp:\\?\usb#vid_0930&pid_1005#404947700177#{fd0a5af4-b41d-11d2-9c95-00c04f7971e0}\{e77e0bb8-f473-40ec-8152-e95308bd1ded}
Replace the device id value with the text between the first two hash marks.
Change "&" to "&amp;".
Save the file to C:\Program Files\Yahoo!\Yahoo! Go for TV\tv\graphs\1.mtv-graph
Replace the "1" in the filename with the corresponding value.
Run the TV Setup Wizard to select a lineup.

Once a lineup is selected, the tuner can be removed.

ALTERNATE METHOD TO SET UP LINEUPS WITHOUT A TUNER

elbryyan Wrote:For those of you that are slow like me you can install the yahoo go for tv on any machine with or without a tv tuner and kick of the program guide wizard manually by using this at the command line in the yahoo go for tv directory.

ygtvwizardhost.exe {11534277-7823-4E49-AFE6-587805632302}

If that does not work then browse to the \plugins\wizard\tvlineups directory and open the TVLinups.plugin file with notepad and copy the plugin id and use that in place of the numbers in brackets above.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#3
2007-07-02, 05:08 AM (This post was last modified: 2007-07-03, 03:41 AM by whurlston.)
The UI would only allow me to select a single lineup but I was able to add more.

Download SQL Administrator from http://sqliteadmin.orbmu2k.de/
Open C:\ProgramData\Yahoo!\Go\TV\library\tv\lineups.dat
(c:\documents and settings\All Users\Local Settings... for pre-Vista)

Edit the Lineups table and add another entry.
Increment the id field by 1
Enter a name for the lineup. (you should be able to use any name for the lineups, yahoo does not use them in any major capacity. The lineup name will be the name of the exported XML file though.)
Copy the plugin_id from the existing entry.
Enter "1" for the tuner_count.
All other fields can be left blank.

Edit the plugin_prop table and duplicate the 4 prop_name entries.
In the lineup_id field for all of the new entries, put the id number you entered in the lineup table.
Enter the relevant info in the prop_value fields.

If you are not sure of the values, you can run through the listings setup for each one and check the value in the database between runs. You will need a tuner to run through the listing setup again.
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#4
2007-07-02, 06:48 AM
First class all the way, I see you even added the movie genre.
Nice job! Smile
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#5
2007-07-02, 06:54 AM
Jim_ Wrote:First class all the way, I see you even added the movie genre.
Nice job! Smile
Thanks, I did have to add that one manually. The advisories aren't quite right but that info isn't in the database so I was going off the "Has***Rating". Also, for some strange reason, the Episode Number for a series (100th episode, not episode id) is in the text file that Y! downloads but it is not in the database :confused:
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#6
2007-07-02, 07:19 AM
That is strange, I'll have to give it a good look-over tomorrow when I’m not quite as sleepy (I‘m fading fast). I can only imagine the work you did over the last few days to put this together, it is very appreciated!

The only little thing I noticed in the xml output file was “UTC” in the programme start/stop time field. It’s not a big deal (and I remember the original xmltv example I posted had it that way, sorry) but I usually convert UTC to +0000 after downloading the xmltv file or gbpvr wouldn’t do the automatic time zone program offsets.
I’m not quite sure if it would be best to just change it to +0000 or automatically populate it using the computer time zone setting, or maybe default to UTC or +0000 and have another command line option to set whatever the user wants.
It may not even be a problem but I thought I’d mention it incase the listing times are off for some people, with some versions of gbpvr.

Tomorrow,
Jim
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#7
2007-07-02, 07:21 AM
If its UTC dates times, then it should have UTC in the start/stop time fields as the timezone specifier.
Jim_
Offline

Senior Member

Posts: 696
Threads: 21
Joined: Dec 2005
#8
2007-07-02, 07:38 AM
sub Wrote:If its UTC dates times, then it should have UTC in the start/stop time fields as the timezone specifier.

I think there was something wierd going on with the grabber version I was using that gave those results, and they did change it to +0000 in a later rev, so it may not have been proper UTC time in the first place.
Never did figure out what the exact problem was and I quit looking after I found that using +0000 instead worked.

I just didnt want to leave without mentioning it, just incase.
[SIZE="1"]HP e9240f| Phenom II X4-945| Radeon HD4650 1-gig | 8 gig ram | Blu-Ray
Windows 7 64bit | 1TB system | 1.5TB Recordings | 3-TB Library
HDMI >> Sony 40" 1080p LCD TV
HVR-2250 | HVR-1290 | WinTV PVR USB2 | WinTV HD-PVR | GBPVR 1.4.7[/SIZE]
Projects: I-xmltv (Unsupported at this time) |
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#9
2007-07-02, 07:50 AM
Jim_ Wrote:That is strange, I'll have to give it a good look-over tomorrow when I’m not quite as sleepy (I‘m fading fast). I can only imagine the work you did over the last few days to put this together, it is very appreciated!
I haven't gotten much sleep the past few days but I blame it on sub and the guys at Silicondust. Big Grin
If it wasn't for GB-PVR and the HDHomeRun, I would never have bought that book on C# last November and I'd still be ignorantly unhappy with my cable box and DVD player. But I'd be getting more sleep.

Jim_ Wrote:The only little thing I noticed in the xml output file was “UTC” in the programme start/stop time field. It’s not a big deal (and I remember the original xmltv example I posted had it that way, sorry) but I usually convert UTC to +0000 after downloading the xmltv file or gbpvr wouldn’t do the automatic time zone program offsets.
I’m not quite sure if it would be best to just change it to +0000 or automatically populate it using the computer time zone setting, or maybe default to UTC or +0000 and have another command line option to set whatever the user wants.
It may not even be a problem but I thought I’d mention it incase the listing times are off for some people, with some versions of gbpvr.

Tomorrow,
Jim
I verified the correct format with sub before using it.
mulletback
Offline

Member

USA
Posts: 237
Threads: 10
Joined: Feb 2006
#10
2007-07-02, 04:39 PM (This post was last modified: 2007-07-02, 06:53 PM by mulletback.)
...everything is -1 hour for me, as though it was loading EST, not EDT... :confused:

...but, if I replace "UTC" with "+0000", all listings are on time...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (34): 1 2 3 4 5 … 34 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  I-xmltv updated for YahooXMLTv (adds a new show marker and more) Jim_ 78 25,611 2008-01-02, 10:33 AM
Last Post: tvshowman

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode