Esempio n. 1
0
	def __init__(self, phenny):
		Download.__init__(self)
		self.re_title = re.compile('ustream\.vars\.channelTitle\=\"(.*?)\"\;ustream\.vars\.')
		self.re_channel = re.compile('ustream\.vars\.channelId\=(\d*?)\;ustream\.vars\.')
		self.apikey = phenny.config.ustreamdevapikey
		self.urltype = None
		self.h = {}
Esempio n. 2
0
 def __init__(self):
     Download.__init__(self)
     self.re_idblob = re.compile("si:\"(.+?)\",")
     self.re_title = re.compile(
         "<title>(.*?) \|  Video on TED\.com<\/title>")
     self.urltype = VidType.TED
     self.h = {}
Esempio n. 3
0
 def __init__(self):
     Download.__init__(self)
     self.re_id = re.compile("swfobject\.embedSWF\(\"(.*?)\"")
     self.re_title = re.compile(
         "\<title\>MIT TechTV \&ndash\; (.*?)\<\/title\>")
     self.urltype = VidType.MITTECHTV
     self.h = {}
Esempio n. 4
0
 def __init__(self):
     Download.__init__(self)
     self.re_vid = re.compile(
         '<meta property="og:video"\s+content="http://blip\.tv/play/(.*?)"/>'
     )
     self.re_title = re.compile('<title>(.*?)</title>')
     self.urltype = VidType.BLIPTV
     self.h = {}
Esempio n. 5
0
 def __init__(self):
     Download.__init__(self)
     self.re_id = re.compile(
         "<meta\s+name\=\"item\-id\"\s+content\=\"(.*?)\"")
     self.re_title = re.compile(
         "<meta\s+name\=\"title\"\s+content\=\"(.*?)\"")
     self.urltype = VidType.VEOH
     self.h = {}
Esempio n. 6
0
	def __init__(self, phenny):
		Download.__init__(self)
		self.re_id = re.compile("^[a-zA-Z0-9\_\-]{11}$")
		self.re_fragment = re.compile("^t\=((\d+)h)?((\d+)m)?((\d+)s)?$")
		self.urltype = VidType.YOUTUBE
		self.h = {}
		self.gdatahost = 'gdata.youtube.com'
		self.developer_key = phenny.config.youtubedevapikey
		self.gdataxml = None
Esempio n. 7
0
	def __init__(self):
		Download.__init__(self)
		self.re_live_id = re.compile('stream_id \= (\d+?)\;')
		self.re_recorded_id = re.compile('full_program_clipid \= (\d+?)\;')
		self.re_live_title = re.compile('stream_title \= "(.+?)"\;')
		self.re_recorded_title = re.compile('full_program_title \= "(.+?)"\;')
		self.type = None
		self.urltype = None
		self.h = {}
Esempio n. 8
0
 def __init__(self):
     Download.__init__(self)
     self.re_live_id = re.compile('stream_id \= (\d+?)\;')
     self.re_recorded_id = re.compile('full_program_clipid \= (\d+?)\;')
     self.re_live_title = re.compile('stream_title \= "(.+?)"\;')
     self.re_recorded_title = re.compile('full_program_title \= "(.+?)"\;')
     self.type = None
     self.urltype = None
     self.h = {}
Esempio n. 9
0
	def __init__(self):
		Download.__init__(self)
		self.re_id = re.compile('\:content\:atom\.com\:(.+?)\"')
		self.urltype = VidType.ATOM
		self.h = {}
Esempio n. 10
0
	def __init__(self):
		Download.__init__(self)
		self.re_url = re.compile("^http\:\/\/(www\.)dailymotion\.com\/video\/([a-z0-9]+?)\_")
		self.urltype = VidType.DAILYMOTION
		self.h = {}
Esempio n. 11
0
	def __init__(self):
		Download.__init__(self)
		self.re_id = re.compile("<meta\s+name\=\"item\-id\"\s+content\=\"(.*?)\"")
		self.re_title = re.compile("<meta\s+name\=\"title\"\s+content\=\"(.*?)\"")
		self.urltype = VidType.VEOH
		self.h = {}
Esempio n. 12
0
 def __init__(self):
     Download.__init__(self)
     self.re_url = re.compile(
         "^http\:\/\/(www\.)dailymotion\.com\/video\/([a-z0-9]+?)\_")
     self.urltype = VidType.DAILYMOTION
     self.h = {}
Esempio n. 13
0
	def __init__(self):
		Download.__init__(self)
		self.re_url = re.compile("^http\:\/\/(www\.)?vimeo\.com\/(\d+)$")
		self.urltype = VidType.VIMEO
		self.h = {}
Esempio n. 14
0
	def __init__(self):
		Download.__init__(self)
		self.urltype = VidType.METACAFE
		self.h = {}
Esempio n. 15
0
	def __init__(self):
		Download.__init__(self)
		self.type = None
		self.urltype = None	# 90 - QIKL, 91 - QIKR
		self.h = {}
Esempio n. 16
0
	def __init__(self):
		Download.__init__(self)
		self.urltype = VidType.LIVELEAK
		self.h = {}
Esempio n. 17
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.FUNNYORDIE
     self.h = {}
Esempio n. 18
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.FUNNYORDIE
     self.h = {}
Esempio n. 19
0
	def __init__(self):
		Download.__init__(self)
		self.re_idblob = re.compile("si:\"(.+?)\",")
		self.re_title = re.compile("<title>(.*?) \|  Video on TED\.com<\/title>")
		self.urltype = VidType.TED
		self.h = {}
Esempio n. 20
0
 def __init__(self):
     Download.__init__(self)
     self.type = None
     self.urltype = None  # 90 - QIKL, 91 - QIKR
     self.h = {}
Esempio n. 21
0
	def __init__(self):
		Download.__init__(self)
		self.re_id = re.compile('revision3\.com\/player-v(\d+?)\"')
		self.re_title = re.compile('<title>(.*?)</title>')
		self.urltype = VidType.REVISION3
		self.h = {}
Esempio n. 22
0
	def __init__(self):
		Download.__init__(self)
		self.h = {}
Esempio n. 23
0
	def __init__(self):
		Download.__init__(self)
		self.re_title = re.compile('<h1 id="channel-info-title">(.+?)</h1>')
		self.type = None
		self.urltype = None
		self.h = {}
Esempio n. 24
0
 def __init__(self):
     Download.__init__(self)
     self.re_id = re.compile('\.swf\?player\.v\=(.+?)\&amp\;')
     self.urltype = VidType.BING
     self.h = {}
Esempio n. 25
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.VIDDLER
     self.h = {}
Esempio n. 26
0
	def __init__(self):
		Download.__init__(self)
		self.re_fragment = re.compile("^(t\=)?((\d+)h)?((\d+)m)?((\d+)s)?$")
		self.urltype = VidType.GOOGLEVIDEO
		self.h = {}
Esempio n. 27
0
	def __init__(self, phenny):
		Download.__init__(self)
		self.urltype = None	# 97 - TWITCHTV
		self.type = None
		self.consumerkey = phenny.config.justintvkey
		self.h = {}
Esempio n. 28
0
 def __init__(self):
     Download.__init__(self)
     self.re_url = re.compile("^http\:\/\/(www\.)?vimeo\.com\/(\d+)$")
     self.urltype = VidType.VIMEO
     self.h = {}
Esempio n. 29
0
	def __init__(self):
		Download.__init__(self)
		self.urltype = VidType.MYSPACE
		self.h = {}
Esempio n. 30
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.MYSPACE
     self.h = {}
Esempio n. 31
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.METACAFE
     self.h = {}
Esempio n. 32
0
 def __init__(self):
     Download.__init__(self)
     self.re_id = re.compile('\:content\:atom\.com\:(.+?)\"')
     self.urltype = VidType.ATOM
     self.h = {}
Esempio n. 33
0
	def __init__(self):
		Download.__init__(self)
		self.re_id = re.compile('\.swf\?player\.v\=(.+?)\&amp\;')
		self.urltype = VidType.BING
		self.h = {}
Esempio n. 34
0
	def __init__(self):
		Download.__init__(self)
		self.urltype = VidType.REVVER
		self.h = {}
Esempio n. 35
0
	def __init__(self):
		Download.__init__(self)
		self.re_id = re.compile('<link rel="media:video" href="http:\/\/www\.hulu\.com\/embed\/(.*?)"')
		self.re_title = re.compile('<meta property="og:title" content="(.*?)"')
		self.urltype = VidType.HULU
		self.h = {}
Esempio n. 36
0
	def __init__(self):
		Download.__init__(self)
		self.re_id = re.compile("swfobject\.embedSWF\(\"(.*?)\"")
		self.re_title = re.compile("\<title\>MIT TechTV \&ndash\; (.*?)\<\/title\>")
		self.urltype = VidType.MITTECHTV
		self.h = {}
Esempio n. 37
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.REVVER
     self.h = {}
Esempio n. 38
0
 def __init__(self):
     Download.__init__(self)
     self.h = {}
Esempio n. 39
0
 def __init__(self):
     Download.__init__(self)
     #self.re_id = re.compile('","(http://.*?)"\]')
     self.re_id = re.compile(',"\d+",\d?,\["([a-zA-Z0-9_]{11})"\]')
     self.urltype = VidType.GPLUSHANGOUT
     self.h = {}