GoogleCodeArchives / voinage-xbmc-plugins

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

MySoJu plugin can't play video from tudou. #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. play a video on MySoJu:
   Hong Kong Drama==>A CHIP OFF THE OLD BLOCK ==>episode-4 ==> Part 1
2.
3.

What is the expected output? What do you see instead?
See the movie which is from Tudou.  The move is not played

What version of the product are you using? On what operating system?
MySoJu Rev 6
Ubuntu 10.04

Please provide any additional information below.

I am seeing this error info from the xbmc.log file
---------------------------------------------------
23:38:50 T:2853157744 M:297357312   ERROR: AddSortMethod - called with an 
invalid handle.
23:38:53 T:3077781376 M:296165376  NOTICE: DVDPlayer: Opening: 
http://www.tudou.com/player/outside/player_outside.swf?iid=53068459&snap_pic=htt
p%3A%2F%2Fi01.img.tudou.com%2Fdata%2Fimgs%2Fi%2F053%2F068%2F459%2Fw.jpg&default_
skin=http%3A%2F%2Fjs.tudouui.com%2Fbin%2Fplayer2%2Foutside%2FSkin_outside_48.swf
&autostart=flase&autoPlay=false&code=fPjceZvrX98&rurl=
23:38:53 T:3077781376 M:296165376 WARNING: CDVDMessageQueue(player)::Put 
MSGQ_NOT_INITIALIZED
23:38:53 T:2829364080 M:296165376  NOTICE: Creating InputStream
23:38:54 T:2829364080 M:279113728  NOTICE: Creating Demuxer
23:38:57 T:2829364080 M:259203072   ERROR: Open - Error, could not open file 
http://www.tudou.com/player/outside/player_outside.swf?iid=53068459&snap_pic=htt
p%3A%2F%2Fi01.img.tudou.com%2Fdata%2Fimgs%2Fi%2F053%2F068%2F459%2Fw.jpg&default_
skin=http%3A%2F%2Fjs.tudouui.com%2Fbin%2Fplayer2%2Foutside%2FSkin_outside_48.swf
&autostart=flase&autoPlay=false&code=fPjceZvrX98&rurl=
23:38:57 T:2829364080 M:259203072   ERROR: OpenDemuxStream - Error creating 
demuxer
23:38:57 T:2829364080 M:259203072  NOTICE: CDVDPlayer::OnExit()
23:38:57 T:2829364080 M:259203072  NOTICE: CDVDPlayer::OnExit() deleting input 
stream
23:38:57 T:3077781376 M:274821120   ERROR: Playlist Player: skipping unplayable 
item: 0, path 
[http://www.tudou.com/player/outside/player_outside.swf?iid=53068459&snap_pic=ht
tp%3A%2F%2Fi01.img.tudou.com%2Fdata%2Fimgs%2Fi%2F053%2F068%2F459%2Fw.jpg&default
_skin=http%3A%2F%2Fjs.tudouui.com%2Fbin%2Fplayer2%2Foutside%2FSkin_outside_48.sw
f&autostart=flase&autoPlay=false&code=fPjceZvrX98&rurl=]
23:38:57 T:3077781376 M:275058688  NOTICE: CDVDPlayer::CloseFile()
23:38:57 T:3077781376 M:275058688 WARNING: CDVDMessageQueue(player)::Put 
MSGQ_NOT_INITIALIZED
23:38:57 T:3077781376 M:275058688  NOTICE: DVDPlayer: waiting for threads to 
exit
2

Original issue reported on code.google.com by jsk...@gmail.com on 31 Jul 2010 at 3:54

GoogleCodeExporter commented 9 years ago
P.S.
I have to modify the defautl.py for MySoJu Rev 5 alittle bit in order to 
extract the video link on tudou.

        try:
                todouStr=re.compile('document.write\(decodeBase64\("(.+?)"\)\);').findall(link)
#                print "todouStr="+todouStr[0]
                todouDecode=todouStr[0].decode('base64','strict')
                print "todouDecode="+todouDecode
                todouLink=re.compile('<param name="movie" value="(.+?)"\/>').findall(todouDecode)
                todouLink=re.compile('<object type=".+?" data="(.+?)" width=".+?" height=".+?">').findall(todouDecode)
                print "todouLink[0]="+todouLink[0]
                print "todouLink="+str(todouLink)
                req = urllib2.Request('%s'%todouLink[0])
                req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
                todou = urllib2.urlopen(req)
                print "todou="+str(todou)
                addLink(name,todou.url,info)
        except: pass

Original comment by jsk...@gmail.com on 31 Jul 2010 at 3:59