示例#1
0
文件: Ustream.py 项目: FrankBuss/1dv8
	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 = {}
示例#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 = {}
示例#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 = {}
示例#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 = {}
示例#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 = {}
示例#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
示例#7
0
文件: FORAtv.py 项目: FrankBuss/1dv8
	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 = {}
示例#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 = {}
示例#9
0
文件: Atom.py 项目: FrankBuss/1dv8
	def __init__(self):
		Download.__init__(self)
		self.re_id = re.compile('\:content\:atom\.com\:(.+?)\"')
		self.urltype = VidType.ATOM
		self.h = {}
示例#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 = {}
示例#11
0
文件: Veoh.py 项目: FrankBuss/1dv8
	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 = {}
示例#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 = {}
示例#13
0
文件: Vimeo.py 项目: FrankBuss/1dv8
	def __init__(self):
		Download.__init__(self)
		self.re_url = re.compile("^http\:\/\/(www\.)?vimeo\.com\/(\d+)$")
		self.urltype = VidType.VIMEO
		self.h = {}
示例#14
0
	def __init__(self):
		Download.__init__(self)
		self.urltype = VidType.METACAFE
		self.h = {}
示例#15
0
文件: Qik.py 项目: FrankBuss/1dv8
	def __init__(self):
		Download.__init__(self)
		self.type = None
		self.urltype = None	# 90 - QIKL, 91 - QIKR
		self.h = {}
示例#16
0
	def __init__(self):
		Download.__init__(self)
		self.urltype = VidType.LIVELEAK
		self.h = {}
示例#17
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.FUNNYORDIE
     self.h = {}
示例#18
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.FUNNYORDIE
     self.h = {}
示例#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 = {}
示例#20
0
 def __init__(self):
     Download.__init__(self)
     self.type = None
     self.urltype = None  # 90 - QIKL, 91 - QIKR
     self.h = {}
示例#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 = {}
示例#22
0
文件: Current.py 项目: FrankBuss/1dv8
	def __init__(self):
		Download.__init__(self)
		self.h = {}
示例#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 = {}
示例#24
0
文件: Bing.py 项目: GeekStreams/1dv8
 def __init__(self):
     Download.__init__(self)
     self.re_id = re.compile('\.swf\?player\.v\=(.+?)\&amp\;')
     self.urltype = VidType.BING
     self.h = {}
示例#25
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.VIDDLER
     self.h = {}
示例#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 = {}
示例#27
0
	def __init__(self, phenny):
		Download.__init__(self)
		self.urltype = None	# 97 - TWITCHTV
		self.type = None
		self.consumerkey = phenny.config.justintvkey
		self.h = {}
示例#28
0
文件: Vimeo.py 项目: GeekStreams/1dv8
 def __init__(self):
     Download.__init__(self)
     self.re_url = re.compile("^http\:\/\/(www\.)?vimeo\.com\/(\d+)$")
     self.urltype = VidType.VIMEO
     self.h = {}
示例#29
0
文件: MySpace.py 项目: FrankBuss/1dv8
	def __init__(self):
		Download.__init__(self)
		self.urltype = VidType.MYSPACE
		self.h = {}
示例#30
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.MYSPACE
     self.h = {}
示例#31
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.METACAFE
     self.h = {}
示例#32
0
 def __init__(self):
     Download.__init__(self)
     self.re_id = re.compile('\:content\:atom\.com\:(.+?)\"')
     self.urltype = VidType.ATOM
     self.h = {}
示例#33
0
文件: Bing.py 项目: FrankBuss/1dv8
	def __init__(self):
		Download.__init__(self)
		self.re_id = re.compile('\.swf\?player\.v\=(.+?)\&amp\;')
		self.urltype = VidType.BING
		self.h = {}
示例#34
0
文件: Revver.py 项目: FrankBuss/1dv8
	def __init__(self):
		Download.__init__(self)
		self.urltype = VidType.REVVER
		self.h = {}
示例#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 = {}
示例#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 = {}
示例#37
0
 def __init__(self):
     Download.__init__(self)
     self.urltype = VidType.REVVER
     self.h = {}
示例#38
0
 def __init__(self):
     Download.__init__(self)
     self.h = {}
示例#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 = {}