本文整理汇总了Python中utils.downloadVideo函数的典型用法代码示例。如果您正苦于以下问题:Python downloadVideo函数的具体用法?Python downloadVideo怎么用?Python downloadVideo使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了downloadVideo函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: BGPlayvid
def BGPlayvid(url, name, download=None):
videopage = utils.getHtml(url, "")
videopage = json.loads(videopage)
if not videopage["240p"] == None:
url = videopage["240p"].encode("utf8")
if not videopage["480p"] == None:
url = videopage["480p"].encode("utf8")
if not videopage["720p"] == None:
url = videopage["720p"].encode("utf8")
url = url.replace("{DATA_MARKERS}", "data=pc.DE")
if not url.startswith("http:"):
url = "https:" + url
key = re.compile("/key=(.*?)%2Cend", re.DOTALL | re.IGNORECASE).findall(url)[0]
decryptedkey = decrypt_key(key)
videourl = url.replace(key, decryptedkey)
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo("video", {"Title": name, "Genre": "Porn"})
listitem.setProperty("IsPlayable", "true")
if int(sys.argv[1]) == -1:
pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
pl.clear()
pl.add(videourl, listitem)
xbmc.Player().play(pl)
else:
listitem.setPath(str(videourl))
xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:35,代码来源:beeg.py
示例2: BGPlayvid
def BGPlayvid(url, name, download=None):
videopage = utils.getHtml(url, '')
match = re.compile("'720p': '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)
if not match:
match = re.compile("'480p': '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)
if not match:
match = re.compile("'240p': '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)
if match:
videourl = match[0]
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
listitem.setProperty("IsPlayable","true")
if int(sys.argv[1]) == -1:
pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
pl.clear()
pl.add(videourl, listitem)
xbmc.Player().play(pl)
#xbmc.Player().play(videourl, listitem)
else:
listitem.setPath(str(videourl))
xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
开发者ID:jake47,项目名称:WhiteCream-V0.0.1.bundle,代码行数:25,代码来源:beeg.py
示例3: Playvid
def Playvid(url, name, download=None):
listhtml = utils.getHtml2(url)
listhtml = utils.unescapes(listhtml)
match480 = re.search(r'[[]480p[]]=([^"]*?)&video_vars', listhtml)
if match480: videourl = match480.group(1)
else:
match360 = re.search(r'[[]360p[]]=([^"]*?)&video_vars', listhtml)
videourl = match360.group(1)
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
listitem.setProperty("IsPlayable","true")
if int(sys.argv[1]) == -1:
pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
pl.clear()
pl.add(videourl, listitem)
xbmc.Player().play(pl)
else:
listitem.setPath(str(videourl))
xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
return
开发者ID:Kasik,项目名称:Kasiks-Repo,代码行数:25,代码来源:playvids.py
示例4: BGPlayvid
def BGPlayvid(url, name, download=None):
videopage = utils.getHtml2(url)
videopage = json.loads(videopage)
if not videopage["240p"] == None:
url = videopage["240p"].encode("utf8")
if not videopage["480p"] == None:
url = videopage["480p"].encode("utf8")
if not videopage["720p"] == None:
url = videopage["720p"].encode("utf8")
url = url.replace("{DATA_MARKERS}","data=pc.XX")
if not url.startswith("http:"): url = "http:" + url
videourl = url
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
listitem.setProperty("IsPlayable","true")
if int(sys.argv[1]) == -1:
pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
pl.clear()
pl.add(videourl, listitem)
xbmc.Player().play(pl)
else:
listitem.setPath(str(videourl))
xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
开发者ID:neopack1,项目名称:WhiteCream-V0.0.1,代码行数:30,代码来源:beeg.py
示例5: PHVideo
def PHVideo(url, name, download=None):
progress.create('Play video', 'Searching videofile.')
progress.update( 10, "", "Loading video page", "" )
Supported_hosts = ['Openload.io', 'StreamCloud', 'NowVideo', 'FlashX', 'www.flashx.tv', 'streamcloud.eu', 'streamin.to']
videopage = utils.getHtml(url, '')
match = re.compile(r'<li id="link-([^"]+).*?xs-12">\s+Watch it on ([\w\.]+)', re.DOTALL | re.IGNORECASE).findall(videopage)
if len(match) > 1:
sites = []
vidurls = []
for videourl, site in match:
if site in Supported_hosts:
sites.append(site)
vidurls.append(videourl)
if len(sites) == 1:
sitename = match[0][1]
siteurl = match[0][0]
else:
site = utils.dialog.select('Select video site', sites)
sitename = sites[site]
siteurl = vidurls[site]
else:
sitename = match[0][1]
siteurl = match[0][0]
outurl = "http://www.pornhive.tv/en/out/" + siteurl
progress.update( 20, "", "Getting video page", "" )
if 'loud' in sitename:
progress.update( 30, "", "Getting StreamCloud", "" )
playurl = getStreamCloud(outurl)
elif "lash" in sitename:
progress.update( 30, "", "Getting FlashX", "" )
playurl = getFlashX(outurl)
elif sitename == "NowVideo":
progress.update( 30, "", "Getting NowVideo", "" )
playurl = getNowVideo(outurl)
elif "Openload" in sitename:
progress.update( 30, "", "Getting Openload", "" )
progress.close()
utils.PLAYVIDEO(outurl, name, download)
return
elif "streamin" in sitename:
progress.update( 30, "", "Getting Streamin", "" )
streaming = utils.getHtml(outurl, '')
outurl=re.compile("action='([^']+)'").findall(streaming)[0]
progress.close()
utils.playvideo(outurl, name, download)
return
else:
progress.close()
utils.dialog.ok('Sorry','This host is not supported.')
return
progress.update( 90, "", "Playing video", "" )
progress.close()
if download == 1:
utils.downloadVideo(playurl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(playurl, listitem)
开发者ID:dreamykun,项目名称:WhiteCream-V0.0.1,代码行数:59,代码来源:pornhive.py
示例6: playvid
def playvid():
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:livewire187,项目名称:WhiteCream-V0.0.1,代码行数:8,代码来源:hdporn.py
示例7: playvid
def playvid():
progress.close()
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo("video", {"Title": name, "Genre": "Porn"})
xbmc.Player().play(videourl, listitem)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:9,代码来源:hdporn.py
示例8: Playvid
def Playvid(url, name, download=None):
videopage = utils.getHtml(url, "")
videourl = re.compile("video_url: '([^']+)", re.DOTALL | re.IGNORECASE).findall(videopage)
videourl = videourl[0]
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo("video", {"Title": name, "Genre": "Porn"})
xbmc.Player().play(videourl, listitem)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:11,代码来源:tubepornclassic.py
示例9: Playvid
def Playvid(url, name, download=None):
html = utils.getHtml(url, '')
videourl = re.compile("video_url: '([^']+)").findall(html)
videourl = videourl[0]
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:11,代码来源:hclips.py
示例10: NLPLAYVID
def NLPLAYVID(url,name, download=None):
videopage = utils.getHtml(url, '')
videourl = re.compile('<source src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)
videourl = videourl[0]
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:11,代码来源:nltubes.py
示例11: TPPlayvid
def TPPlayvid(url, name, download=None):
videopage = utils.getHtml(url, '')
match = re.compile("url: '([^']+flv)'", re.DOTALL | re.IGNORECASE).findall(videopage)
if match:
videourl = match[0]
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:jake47,项目名称:WhiteCream-V0.0.1.bundle,代码行数:12,代码来源:todayporn.py
示例12: Playvid
def Playvid(url, name, download=None):
videopage = utils.getHtml(url, pdreferer, headers, data='')
links = re.compile('<a href="([^"]+)" class="post_download_link clearfix">[^>]+>.*?(\d+p).*?<',
re.DOTALL | re.IGNORECASE).findall(videopage)
videourl = getVideoUrl(links)
videourl = utils.getVideoLink(videourl, url)
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:RaspberryMCAdmin,项目名称:DevProjects,代码行数:13,代码来源:porndig.py
示例13: Playvid
def Playvid(url, name, download=None):
print "mrsexe::Playvid " + url
html = utils.getHtml(url, '')
videourl = re.compile(r"src='(/inc/clic\.php\?video=.+?&cat=mrsex.+?)'").findall(html)
html = utils.getHtml('http://www.mrsexe.com/' + videourl[0], '')
videourls = re.compile(r"'file': \"(.+?)\",.+?'label': '(.+?)'", re.DOTALL).findall(html)
videourls = sorted(videourls, key=lambda tup: tup[1], reverse=True)
videourl = videourls[0][0]
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:Mirocow,项目名称:WhiteCream-V0.0.2,代码行数:15,代码来源:mrsexe.py
示例14: PTPlayvid
def PTPlayvid(url, name, download=None):
videopage = utils.getHtml(url, "")
match = re.compile("<filehd>([^<]+)<", re.DOTALL | re.IGNORECASE).findall(videopage)
match2 = re.compile("<file>([^<]+)<", re.DOTALL | re.IGNORECASE).findall(videopage)
try:
videourl = match[0]
except:
videourl = match2[0]
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo("video", {"Title": name, "Genre": "Porn"})
xbmc.Player().play(videourl, listitem)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:15,代码来源:porntrex.py
示例15: Playvid
def Playvid(url, name, download=None):
videopage = utils.getHtml(url, '')
servervideo = re.compile("servervideo = '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
vpath = re.compile("path = '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
repp = re.compile(r"repp = codage\('([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
filee = re.compile("filee = '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
repp = hashlib.md5(repp).hexdigest()
videourl = servervideo + vpath + repp + filee
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:badwog1,项目名称:kodi-repo-gaymods,代码行数:15,代码来源:absoluporn.py
示例16: Playvid
def Playvid(url, name, download=None):
videopage = utils.getHtml(url, url)
video_url = re.compile("video_url:([^}]+)", re.DOTALL | re.IGNORECASE).findall(videopage)[0]
match = re.compile(r'(ghb\w\w)="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)
for repl, repl2 in match:
video_url = video_url.replace(repl,repl2)
video_url = video_url.replace("\"","")
videourl = video_url.replace("+","")
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:NothingGnome,项目名称:WhiteCream-V0.0.1,代码行数:16,代码来源:anybunny.py
示例17: Playvid
def Playvid(url, name, download=None):
html = utils.getHtml(url, '')
stream_id = re.compile("stream_id = '([^']+)';").findall(html)
stream_key = re.compile("stream_key = '([^']+)'").findall(html)
stream_hd = re.compile("stream_hd = (1|0)").findall(html)
if int(stream_hd[0]) == 1:
source = '/title/720p__mp4'
else:
source = '/title/480p__mp4'
videourl = base_url + '/_' + stream_id[0] + '/' + stream_key[0] + source
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:rofunds,项目名称:maximumTv,代码行数:17,代码来源:spankbang.py
示例18: HCPlayvid
def HCPlayvid(url,name, download=None):
progress.create('Play video', 'Searching videofile.')
progress.update( 10, "", "Loading video page", "" )
link = utils.getHtml(url,'')
match = re.compile('<iframe.*? src="([^"]+)" FRAME', re.DOTALL | re.IGNORECASE).findall(link)
if len(match) > 1:
vh = dialog.select('Videohost:', match)
if vh == -1:
return
else:
vh = 0
progress.update( 40, "", "Loading video host", "" )
urldata2 = getHC(match[vh])
if match[vh].find('hentaiupload') > 0:
progress.update( 80, "", "Loading hentaiupload", "" )
try:
match1 = re.compile('url: "([^"]+mp4)', re.DOTALL | re.IGNORECASE).findall(urldata2)
url = match1[0]
except: pass
videourl = url + "|referer="+ match[vh]
elif match[vh].find('hvidengine') > 0:
progress.update( 80, "", "Loading hvidengine", "" )
try:
match1 = re.compile('file: "([^"]+)', re.DOTALL | re.IGNORECASE).findall(urldata2)
url = match1[0]
except: pass
videourl = url + "|referer="+ match[vh]
else:
progress.update( 80, "", "Loading video uphentaivid", "" )
match2 = re.compile("<script type='text/javascript'>([^<]+)</sc", re.DOTALL | re.IGNORECASE).findall(urldata2)
for jspacked in match2:
res = unpack(jspacked)
try:
videourl = re.compile("file.*?(http.*?mp4)", re.DOTALL | re.IGNORECASE).findall(res)[0]
except:
videourl = None
progress.close()
if videourl:
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:Mirocow,项目名称:WhiteCream-V0.0.2,代码行数:45,代码来源:hentaicraving.py
示例19: Playvid
def Playvid(url, name, download=None):
if utils.addon.getSetting("paradisehill") == "true": playall = True
else: playall = ''
videopage = utils.getHtml(url, '')
match = re.compile('films="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)
videos = match[0].split('|||')
if playall == '':
if len(videos) > 1:
i = 1
videolist = []
for x in videos:
videolist.append('Part ' + str(i))
i += 1
videopart = dialog.select('Multiple videos found', videolist)
if videopart == -1:
return
videourl = videos[videopart]
else: videourl = videos[0]
videourl = videourl + "|referer="+ url
if download == 1 and playall == '':
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
if playall:
pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
pl.clear()
i = 1
for videourl in videos:
newname = name + ' Part ' + str(i)
listitem = xbmcgui.ListItem(newname, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': newname, 'Genre': 'Porn'})
listitem.setProperty("IsPlayable","true")
videourl = videourl + "|referer="+ url
pl.add(videourl, listitem)
i += 1
listitem = ''
xbmc.Player().play(pl)
else:
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo('video', {'Title': name, 'Genre': 'Porn'})
xbmc.Player().play(videourl, listitem)
开发者ID:Mirocow,项目名称:WhiteCream-V0.0.2,代码行数:44,代码来源:paradisehill.py
示例20: HCPlayvid
def HCPlayvid(url, name, download=None):
progress.create("Play video", "Searching videofile.")
progress.update(10, "", "Loading video page", "")
link = utils.getHtml(url, "")
match = re.compile('<iframe.*? src="([^"]+)" FRAME', re.DOTALL | re.IGNORECASE).findall(link)
if len(match) > 1:
vh = dialog.select("Videohost:", match)
else:
vh = 0
progress.update(40, "", "Loading video host", "")
urldata2 = getHC(match[vh])
if match[vh].find("hentaiupload") > 0:
progress.update(80, "", "Loading hentaiupload", "")
try:
match1 = re.compile('url: "([^"]+mp4)', re.DOTALL | re.IGNORECASE).findall(urldata2)
url = match1[0]
except:
pass
videourl = url + "|referer=" + match[vh]
elif match[vh].find("hvidengine") > 0:
progress.update(80, "", "Loading hvidengine", "")
try:
match1 = re.compile('file: "([^"]+)', re.DOTALL | re.IGNORECASE).findall(urldata2)
url = match1[0]
except:
pass
videourl = url + "|referer=" + match[vh]
else:
progress.update(80, "", "Loading video", "")
match2 = re.compile("<script type='text/javascript'>([^<]+)</sc", re.DOTALL | re.IGNORECASE).findall(urldata2)
res = beautify(match2[0])
match3 = re.compile("file.*?(http.*?mp4)", re.DOTALL | re.IGNORECASE).findall(res)
videourl = match3[0]
progress.close()
if download == 1:
utils.downloadVideo(videourl, name)
else:
iconimage = xbmc.getInfoImage("ListItem.Thumb")
listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
listitem.setInfo("video", {"Title": name, "Genre": "Porn"})
xbmc.Player().play(videourl, listitem)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:41,代码来源:hentaicraving.py
注:本文中的utils.downloadVideo函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论