2013-03-18, 18:14
Thanks!
(2013-02-02, 17:46)vandonh Wrote:(2013-02-01, 23:57)learningit Wrote:(2013-01-31, 01:21)vandonh Wrote: I'm using TV Guide now with the Filmon plugin and it works great, have also set up several sports stream setup and that works too.
Now my next hurdle is the USTVNOW plugin, I can save the channels as favorites and select the channels in TV Guide to the correct program/station, however I've noticed now that the USTVNOW favorites are only valid for a 24 hour period, after that period they will need to be reselected and again assigned to the TV Guide channels. The end result is that it is a non working solution.
Now I wonder if we can do the same as done for the FilmOn plugin
To use the USTVNOW plugin from TV Guide, add the following code at the end of default.py, just before the last line which should read: Addon.end_of_directory()
You will find default.py in the plugin.video.ustvnow directory.
elif mode=='play':
name = Addon.plugin_queries['name']
try:
stream_type = 'rtmp'
channels = []
quality = int(Addon.get_setting('quality'))
channels = ustv.get_channels(quality,stream_type)
for c in channels:
if c['name'] == name:
print "URL = "+c['url']
print "setResolvedUrl"
item = xbmcgui.ListItem(path=c['url'])
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, item)
except:
pass
Then, setup a .strm file containing the following line:
plugin://plugin.video.ustvnow/?name=ABC&mode=play
You can use ABC, CBS, NBC, CW, FOX, PBS, My9 (note case sensitivity) for the free channels. The resolution will follow whatever is set in settings for USTVNOW. I use mc2xml set to a harrisburg, pa zip code to get the .xml for listings.
For some reason the indentations on the code above don't show correctly, but if you 'quote' the post you'll see the proper indents or if you know python you can figure it out.
This is great, exactly whay I needed, thank you!!!
Have a problem with the code, I get the following script error:
Error Contents: ('invalid syntax', ('C:\\Users\\Sony\\AppData\\Roaming\\XBMC\\addons\\plugin.video.ustvnow\\default.py', 84, 7, ' for c in channels:\n'))
So I must be doing some thing wrong with inserting the code
Update, figured it out working like a champ!!!!
Many thanks my friend!!!
(2013-04-02, 16:40)rebelscum Wrote: What did you have to change to get it working? I too am running into this.
elif mode=='play':
name = Addon.plugin_queries['name']
try:
stream_type = 'rtmp'
channels = []
quality = int(Addon.get_setting('quality'))
channels = ustv.get_channels(quality,stream_type)
for c in channels:
if c['name'] == name:
print "URL = "+c['url']
print "setResolvedUrl"
item = xbmcgui.ListItem(path=c['url'])
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, item)
except:
pass
(2013-04-01, 17:18)greco Wrote: Here's another tricky question... How can I get the TV Guide script to read from two different xmltv files? One file pulls from one source, while the other form a completely different one. It's impossible to combine the two sources as teh XMLTVFormat DTD only allows for one tv tag.
Any bright ideas out there?
(2013-04-09, 08:41)alibaba011 Wrote:(2013-04-01, 17:18)greco Wrote: Here's another tricky question... How can I get the TV Guide script to read from two different xmltv files? One file pulls from one source, while the other form a completely different one. It's impossible to combine the two sources as teh XMLTVFormat DTD only allows for one tv tag.
Any bright ideas out there?
i use mc2xml to combine two xml See Tutorial here and here
basically among other option use option -I to combine two xml example:
mc2xml.exe -c gb -g "W1D 3RW" -C uk.chl -F -a -A -D uk.dat -I tvguide2.xml -o tvguide.xml
(2013-04-09, 21:34)bry- Wrote:(2013-04-09, 08:41)alibaba011 Wrote:(2013-04-01, 17:18)greco Wrote: Here's another tricky question... How can I get the TV Guide script to read from two different xmltv files? One file pulls from one source, while the other form a completely different one. It's impossible to combine the two sources as teh XMLTVFormat DTD only allows for one tv tag.
Any bright ideas out there?
i use mc2xml to combine two xml See Tutorial here and here
basically among other option use option -I to combine two xml example:
mc2xml.exe -c gb -g "W1D 3RW" -C uk.chl -F -a -A -D uk.dat -I tvguide2.xml -o tvguide.xml
quoting this to save. thanks for the info!
(2013-04-01, 17:18)greco Wrote: Here's another tricky question... How can I get the TV Guide script to read from two different xmltv files? One file pulls from one source, while the other form a completely different one. It's impossible to combine the two sources as teh XMLTVFormat DTD only allows for one tv tag.
Any bright ideas out there?