ktshabatie / bluecop-xbmc-repo

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

Can't pull up videos in hulu #77

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Click on a directory within hulu add in and get the error plugin.hulu.video 
failed
2.
3.

What is the expected output? What do you see instead?
Expect to see a list of shows instead see error

What version of the product are you using? On what operating system?
10.1 win 7 64 bit

Please provide any additional information below.
updated librtmp with no effect log is in pastebin and attached

http://pastebin.com/YDzdmBzW

Original issue reported on code.google.com by slh...@gmail.com on 18 Nov 2011 at 2:51

Attachments:

GoogleCodeExporter commented 8 years ago
also removed and reinstalled both the plugin and xbmc itself

Original comment by slh...@gmail.com on 18 Nov 2011 at 2:52

GoogleCodeExporter commented 8 years ago
Fixed it by reinstalling everything including OS... still not sure of the cause 
but I did change configurations prior to it breaking.... even reset to default 
did not fix it.

Original comment by slh...@gmail.com on 20 Nov 2011 at 2:31

GoogleCodeExporter commented 8 years ago
(fix included)

The problem is in common.py when the below line 28 is called

exec "args = _Info(%s)" % (urllib.unquote_plus(sys.argv[2][1:].replace("&", ", 
").replace('"','\'')), )
--------------------

On windows machines,  urllib.unquote_plus(sys.argv[2][1:].replace("&", ", 
").replace('"','\'')), )  evaluates to

plugin://plugin.video.hulu/?url="http%3A%2F%2Fm.hulu.com%2Fmenu%2F11683%3Fshow_i
d%3D829"&mode="Menu"&name="Seasons"&art="C%3A%5CUsers%5Cxbmc%5CAppData%5CRoaming
%5CXBMC%5Caddons%5Cplugin.video.hulu%5Cresources%5Cimages%5Cicon.png"&fanart="ht
tp%3A%2F%2Fassets.hulu.com%2Fshows%2Fkey_art_futurama.jpg"&page="1"&popular="fal
se"&updatelisting="false"

  When the windows user name is 'xbmc' then the 'art' var of the url is essentially 'c:\users\xbmc\AppData\Roaming\XBMC\addons\.....' which has 2 \x even though it a pathname, thus python thinks it needs to perform hex conversion. Thus the script error and the log message    "ValueError: invalid \x escape"

I simply changed line 28 to read: [adding .replace('%5C', '%5C%5C')]

exec "args = _Info(%s)" % (urllib.unquote_plus(sys.argv[2][1:].replace("&", ", 
").replace('"','\'').replace('%5C', '%5C%5C'), )

My script error disappeared.  

Original comment by jason.al...@gmail.com on 24 Jan 2012 at 3:37

GoogleCodeExporter commented 8 years ago
Im having script errors with Hulu.  To verify what do I add into line 28 and 
where?

Original comment by rhema...@gmail.com on 27 Jan 2012 at 3:59

GoogleCodeExporter commented 8 years ago
Hi,

I am getting a script error (Script Failed plugin.video.hulu) while playing any 
video in Hulu.

I am using Windows 7 32bit, Hulu 3.4.2 

I have tried the above solution, but my common.py file already have the above 
mentioned line.

exec "args = _Info(%s)" % (urllib.unquote_plus(sys.argv[2][1:].replace("&", ", 
").replace('"','\'').replace('%5C', '%5C%5C'), )

I recently installed the hulu plugin. 

Installed the plugin then installed the update. Am I missing something.

Can any one please help me? I really want this to work.

Original comment by rishi.da...@gmail.com on 22 Feb 2012 at 9:14

GoogleCodeExporter commented 8 years ago
Please see the attached screen shot of the error. XBMC 10.1

Original comment by rishi.da...@gmail.com on 22 Feb 2012 at 10:22

Attachments:

GoogleCodeExporter commented 8 years ago
i have the same problem

Original comment by Djseanie...@gmail.com on 22 Feb 2012 at 10:42

GoogleCodeExporter commented 8 years ago
Fixed with r372 for me

Original comment by marc.see...@acquia.com on 23 Feb 2012 at 8:06

GoogleCodeExporter commented 8 years ago
Hi thanks for the solution.

Where can i find the files to change code?

I am using Winwods 7 32bit.

Regards

Original comment by rishi.da...@gmail.com on 25 Feb 2012 at 1:17