Esempio n. 1
0
	def getVideo(self):
		titel = self.playList[self.playIdx][self.title_inr]
		url = self.playList[self.playIdx][1]
		token = self.playList[self.playIdx][2]
		imgurl = self.playList[self.playIdx][3]
		print titel, url, token

		MyvideoLink(self.session).getLink(self.playStream, self.dataError, titel, url, token, imgurl=imgurl)
Esempio n. 2
0
    def keyOK(self):
        if self.keyLocked:
            return
        mvUrl = self['roflList'].getCurrent()[0][1]
        print mvUrl
        """
		id = re.findall('/watch/(.*?)/', mvUrl)
		if id:
			url = "http://www.myvideo.de/dynamic/get_player_video_xml.php?ID=" + id[0]
			getPage(url, headers={'Content-Type':'application/x-www-form-urlencoded'}).addCallback(self.parseData, id[0]).addErrback(self.dataError)
		"""
        id = re.findall('/watch/(.*?)/', mvUrl)
        if id:
            url = "http://www.myvideo.de/dynamic/get_player_video_xml.php?ID=" + id[
                0]
            kiTitle = self['roflList'].getCurrent()[0][0]
            MyvideoLink(self.session).getLink(self.playStream, self.dataError,
                                              kiTitle, url, id[0])
Esempio n. 3
0
    def getVideo2(self):
        print "getVideo2:"
        if self.playLen > 0:
            titel = self.playList2[self.playIdx][1]
            url = self.playList2[self.playIdx][2]
            album = self.playList2[self.playIdx][3]
            artist = self.playList2[self.playIdx][4]
            if len(self.playList2[self.playIdx]) < 6:
                ltype = ''
            else:
                ltype = self.playList2[self.playIdx][5]

            if ltype == 'youtube':
                YoutubeLink(self.session).getLink(self.playStream,
                                                  self.dataError, titel, url)
            elif ltype == 'putpattv':
                token = self.playList2[self.playIdx][6]
                PutpattvLink(self.session).getLink(self.playStream,
                                                   self.dataError, titel, url,
                                                   token)
            elif ltype == 'myvideo':
                token = self.playList2[self.playIdx][6]
                MyvideoLink(self.session).getLink(self.playStream,
                                                  self.dataError, titel, url,
                                                  token)
            elif ltype == 'songsto':
                #print "songsto",titel,artist,album,token
                token = self.playList2[self.playIdx][6]
                SongstoLink(self.session).getLink(self.playStream,
                                                  self.dataError, titel,
                                                  artist, album, token)
            elif ltype == 'canna':
                #print "canna",titel,artist,album,token
                token = self.playList2[self.playIdx][6]
                CannaLink(self.session).getLink(self.playStream,
                                                self.dataError, titel, artist,
                                                album, url)
            else:
                self.playStream(titel, url, album, artist)
        else:
            self.close()