blummat0360 / bluecop-xbmc-repo

Automatically exported from code.google.com/p/bluecop-xbmc-repo
0 stars 0 forks source link

Free Cable/PBS plugin fails to play This Old House #204

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Navigate to any video available for This Old House
2. Attempt to play the video.

What is the expected output? What do you see instead?
I expect the video to start playing.  Instead, the script fails with an error.  
See included log file fragment.

What version of the product are you using? On what operating system?
This error occurs on both Eden and Frodo (which I just began using today).  I 
am using Ubuntu 11.10 (from XBMC-Live) with the latest upgrades from the 
Team-XBMC PPA.

Please provide any additional information below.
Many other PBS shows work without any problems.  The primary problem seems to 
be related to a change in the PBS website, leading to 404 errors when trying to 
play the videos linked.

Log file fragment:
00:10:09 T:2349800304  NOTICE: FREE CABLE --> common :: getURL :: url = http://u
rs.pbs.org/redirect/a4105289d8be4b9293514416afc23cdf/&format=SMIL
00:10:09 T:2349800304  NOTICE: Error reason:
00:10:09 T:2349800304  NOTICE: HTTP Error 404: NOT FOUND
00:10:09 T:2349800304  NOTICE: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final
//EN">
                                            <title>
                                             404 Not Found
                                            </title>
                                            <h1>
                                             Not Found
                                            </h1>
                                            <p>
                                             The requested URL was not found on 
the server.
                                            </p>
                                            <p>
                                             If you entered the URL manually ple
ase check your spelling and try again.
                                            </p>

Original issue reported on code.google.com by nos...@gmail.com on 31 Jan 2013 at 5:56

GoogleCodeExporter commented 8 years ago
I just tried the native PBS addon, which does correctly obtain the URL to the 
video, but I like the functionality of the Free Cable addon better, 
specifically, being able to mark various programs as favorites.

Original comment by nos...@gmail.com on 31 Jan 2013 at 6:00

GoogleCodeExporter commented 8 years ago
The link to the same video being tested in the log fragment displayed above, as 
available when using the native PBS addon:
 http://d2gy0hmj48ipqr.cloudfront.net/cove2.0/old-house/909ece23-b18f-4607-a9e5-565272ece6af/hd-mezzanine-16x9/TOH-3217-COVE-deint-MEZ-16x9-hls.m3u8

Original comment by nos...@gmail.com on 31 Jan 2013 at 6:04

GoogleCodeExporter commented 8 years ago
plugin.video.free.cable/resources/lib/pbs.py

search for "def play():"

Rename the function to def play_old():

create a new play function that looks liket his.

def play():
    data = common.getURL(common.args.url+"?format=json")
    query = json.loads(data)
    finalurl = query['url']
    item = xbmcgui.ListItem(path=finalurl)
    xbmcplugin.setResolvedUrl(pluginhandle, True, item)

Original comment by yul...@gmail.com on 4 Apr 2013 at 8:55

GoogleCodeExporter commented 8 years ago
One more thing.  I forgot to say you need to import simplesjson as json.

import simplejson as json

Original comment by yul...@gmail.com on 4 Apr 2013 at 8:57