本文整理汇总了Python中resources.utils.buggalo.onExceptionRaised函数的典型用法代码示例。如果您正苦于以下问题:Python onExceptionRaised函数的具体用法?Python onExceptionRaised怎么用?Python onExceptionRaised使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了onExceptionRaised函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: PORNRESOLVE
def PORNRESOLVE(name,url,thumb):
try:
meta = 0
hmf = urlresolver.HostedMediaFile(url)
host = ''
if hmf:
url = urlresolver.resolve(url)
host = hmf.get_host()
params = {'url':url, 'name':name, 'thumb':thumb}
if meta == 0:
addon.add_video_item(params, {'title':name}, img=thumb)
liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=thumb)
else:
addon.add_video_item(params, {'title':name}, img=meta['cover_url'])
liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=meta['cover_url'])
liz.setInfo('video',infoLabels=meta)
xbmc.sleep(1000)
xbmc.Player ().play(url, liz, False)
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:25,代码来源:epornik.py
示例2: PHCATEGORIES
def PHCATEGORIES():
try:
addDir('Amature Video','http://www.pornhub.com/video?c=3','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/3.jpg')
addDir('Bi-Sexual','http://www.pornhub.com/video?c=76','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/76.jpg')
addDir('Bondage','http://www.pornhub.com/video?c=10','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/10.jpg')
addDir('Big Tits','http://www.pornhub.com/video?c=8','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/8.jpg')
addDir('Threesome','http://www.pornhub.com/video?c=65','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/65.jpg')
addDir('Celebrity','http://www.pornhub.com/video?c=12','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/12.jpg')
addDir('Pornstar','http://www.pornhub.com/video?c=30','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/30.jpg')
addDir('Female Friendly','http://www.pornhub.com/video?c=73','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/73.jpg')
addDir('Masturbation ','http://www.pornhub.com/video?c=22','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/22.jpg')
addDir('Cumshots','http://www.pornhub.com/video?c=16','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/16.jpg')
addDir('Toys','http://www.pornhub.com/video?c=23','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/23.jpg')
addDir('College','http://www.pornhub.com/categories/college','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/79.jpg')
addDir('Big Dick','http://www.pornhub.com/video?c=7','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/7.jpg')
addDir('Ebony','http://www.pornhub.com/video?c=17','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/17.jpg')
addDir('Gay','http://www.pornhub.com/gayporn','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/63.jpg')
addDir('Japanese','http://www.pornhub.com/video?c=111','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/111.jpg')
addDir('Lesbian ','http://www.pornhub.com/video?c=27','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/27.jpg')
addDir('Latina','http://www.pornhub.com/video?c=26','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/26.jpg')
addDir('Massage','http://www.pornhub.com/video?c=78','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/78.jpg')
addDir('Interracial','http://www.pornhub.com/video?c=25','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/25.jpg')
addDir('MILF','http://www.pornhub.com/video?c=29','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/29.jpg')
addDir('Uniforms','http://www.pornhub.com/video?c=81','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/81.jpg')
addDir('Webcam','http://www.pornhub.com/video?c=61','phindex','http://cdn1a.static.pornhub.phncdn.com/images/categories/61.jpg')
addDir('Search>>>','http://www.pornhub.com/video/search?search=','phsearch','')
addDir('Top Rated','http://www.pornhub.com/video?o=tr','phindex','')
addDir('All Videos','http://www.pornhub.com/video','phindex','')
main.AUTO_VIEW('')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:32,代码来源:phub.py
示例3: UFCLINKPAGE
def UFCLINKPAGE(url,name):
try:
params = {'url':url, 'mode':mode, 'name':name, 'thumb':thumb, 'dlfoldername':dlfoldername,'mainimg':mainimg}
inc = 0
link = net.http_GET(url).content
match=re.compile('rel="nofollow">(.+?)</a>').findall(link)
for urls in match:
if inc < 50:
hmf = urlresolver.HostedMediaFile(urls)
##########################################
print 'URLS is ' +urls
if hmf:
#try:
host = hmf.get_host()
hthumb = main.GETHOSTTHUMB(host)
favtype = 'movie'
try:
main.addUFCDLDir(name,urls,'vidpage',hthumb,'','UFC',favtype,artwork + 'ufc.jpg')
inc +=1
except:
continue
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:25,代码来源:chanufc.py
示例4: SGINDEX
def SGINDEX (url):
try:
link = net.http_GET(url).content
match=re.compile('<a href = "(.+?)"><img src = "(.+?)" height=".+?/><div class = "_tvshow_title">(.+?)</div>').findall(link)
if len(match) > 0:
for url,sitethumb,name in match:
inc = 0
#movie_name = fullyear[:-6]
#year = fullyear[-6:]
#movie_name = movie_name.decode('UTF-8','ignore')
data = main.GRABTVMETA(name,'')
thumb = data['cover_url']
yeargrab = data['year']
year = str(yeargrab)
dlfoldername = name
favtype = 'tvshow'
#main.addDir(name,url,'sgepisodelist',thumb,data,favtype)
main.addDir(name,basetv_url + url,'sgepisodelist',thumb,data,favtype)
#main.addSDir(movie_name +'('+ year +')',basetv_url + url,'episodes',thumb,year,favtype)
nmatch=re.compile('<span class="currentpage">.+?</span></li><li><a href="(.+?)">(.+?)</a></li><li>').findall(link)
if len(nmatch) > 0:
for pageurl,pageno in nmatch:
main.addDir('Page'+ pageno,basetv_url + pageurl,'sgindex',artwork +'nextpage.jpg','','dir')
main.AUTO_VIEW('movies')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:32,代码来源:sgate.py
示例5: CHIAALPH
def CHIAALPH():
try:
main.addDir('#','http://www.chia-anime.com/alpha/#','chiaalphmain',artwork+'anime/hash.jpg','','dir')
main.addDir('A','http://www.chia-anime.com/alpha/A','chiaalphmain',artwork+'anime/a.jpg','','dir')
main.addDir('B','http://www.chia-anime.com/alpha/B','chiaalphmain',artwork+'anime/b.jpg','','dir')
main.addDir('C','http://www.chia-anime.com/alpha/C','chiaalphmain',artwork+'anime/c.jpg','','dir')
main.addDir('D','http://www.chia-anime.com/alpha/D','chiaalphmain',artwork+'anime/d.jpg','','dir')
main.addDir('E','http://www.chia-anime.com/alpha/E','chiaalphmain',artwork+'anime/e.jpg','','dir')
main.addDir('F','http://www.chia-anime.com/alpha/F','chiaalphmain',artwork+'anime/f.jpg','','dir')
main.addDir('G','http://www.chia-anime.com/alpha/G','chiaalphmain',artwork+'anime/g.jpg','','dir')
main.addDir('H','http://www.chia-anime.com/alpha/H','chiaalphmain',artwork+'anime/h.jpg','','dir')
main.addDir('I','http://www.chia-anime.com/alpha/I','chiaalphmain',artwork+'anime/i.jpg','','dir')
main.addDir('J','http://www.chia-anime.com/alpha/J','chiaalphmain',artwork+'anime/j.jpg','','dir')
main.addDir('K','http://www.chia-anime.com/alpha/K','chiaalphmain',artwork+'anime/k.jpg','','dir')
main.addDir('L','http://www.chia-anime.com/alpha/L','chiaalphmain',artwork+'anime/l.jpg','','dir')
main.addDir('M','http://www.chia-anime.com/alpha/M','chiaalphmain',artwork+'anime/m.jpg','','dir')
main.addDir('N','http://www.chia-anime.com/alpha/N','chiaalphmain',artwork+'anime/n.jpg','','dir')
main.addDir('O','http://www.chia-anime.com/alpha/O','chiaalphmain',artwork+'anime/o.jpg','','dir')
main.addDir('P','http://www.chia-anime.com/alpha/P','chiaalphmain',artwork+'anime/p.jpg','','dir')
main.addDir('Q','http://www.chia-anime.com/alpha/Q','chiaalphmain',artwork+'anime/q.jpg','','dir')
main.addDir('R','http://www.chia-anime.com/alpha/R','chiaalphmain',artwork+'anime/r.jpg','','dir')
main.addDir('S','http://www.chia-anime.com/alpha/S','chiaalphmain',artwork+'anime/s.jpg','','dir')
main.addDir('T','http://www.chia-anime.com/alpha/T','chiaalphmain',artwork+'anime/t.jpg','','dir')
main.addDir('U','http://www.chia-anime.com/alpha/U','chiaalphmain',artwork+'anime/u.jpg','','dir')
main.addDir('V','http://www.chia-anime.com/alpha/V','chiaalphmain',artwork+'anime/v.jpg','','dir')
main.addDir('W','http://www.chia-anime.com/alpha/W','chiaalphmain',artwork+'anime/w.jpg','','dir')
main.addDir('X','http://www.chia-anime.com/alpha/X','chiaalphmain',artwork+'anime/x.jpg','','dir')
main.addDir('Y','http://www.chia-anime.com/alpha/Y','chiaalphmain',artwork+'anime/y.jpg','','dir')
main.addDir('Z','http://www.chia-anime.com/alpha/Z','chiaalphmain',artwork+'anime/z.jpg','','dir')
main.AUTO_VIEW('')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:34,代码来源:chia.py
示例6: CHIAGENRES
def CHIAGENRES(url):
try:
genreurl = 'http://www.chia-anime.com/?genre='
main.addDir('Adventure',genreurl + 'adventure','chiagenremain',artwork+'/anime/adventure.jpg','','dir')
main.addDir('Comedy',genreurl + 'comedy','chiagenremain',artwork+'/anime/comedy.jpg','','dir')
main.addDir('Drama',genreurl + 'drama','chiagenremain',artwork+'/anime/drama.jpg','','dir')
main.addDir('Erotica',genreurl + 'erotica','chiagenremain',artwork+'/anime/erotica.jpg','','dir')
main.addDir('Fantasy',genreurl + 'fantasy','chiagenremain',artwork+'/anime/fantasy.jpg','','dir')
main.addDir('Horror',genreurl + 'horror','chiagenremain',artwork+'/anime/horror.jpg','','dir')
main.addDir('Mystery',genreurl + 'mystery','chiagenremain',artwork+'/anime/mystery.jpg','','dir')
main.addDir('Romance',genreurl + 'romance','chiagenremain',artwork+'/anime/romance.jpg','','dir')
main.addDir('Thriller',genreurl + 'thriller','chiagenremain',artwork+'/anime/thriller.jpg','','dir')
main.addDir('Ninja',genreurl + 'ninga','chiagenremain',artwork+'/anime/ninja.jpg','','dir')
main.addDir('Military',genreurl + 'milatary','chiagenremain',artwork+'/anime/military.jpg','','dir')
main.addDir('Space',genreurl + 'space','chiagenremain',artwork+'/anime/space.jpg','','dir')
main.addDir('Aliens',genreurl + 'aliens','chiagenremain',artwork+'/anime/aliens.jpg','','dir')
main.addDir('Music',genreurl + 'music','chiagenremain',artwork+'/anime/music.jpg','','dir')
main.addDir('Sports',genreurl + 'sports','chiagenremain',artwork+'/anime/sports.jpg','','dir')
main.addDir('Demons',genreurl + 'demons','chiagenremain',artwork+'/anime/demons.jpg','','dir')
main.addDir('Girls with Guns',genreurl + 'girls+with+guns','chiagenremain',artwork+'/anime/girlswithguns.jpg','','dir')
main.addDir('Supernatural',genreurl + 'supernatural','chiagenremain',artwork+'/anime/supernatural.jpg','','dir')
main.addDir('Police',genreurl + 'police','chiagenremain',artwork+'/anime/police.jpg','','dir')
main.addDir('Vampires',genreurl + 'vampires','chiagenremain',artwork+'/anime/vampires.jpg','','dir')
main.addDir('Super Powers',genreurl + 'superpowers','chiagenremain',artwork+'/anime/superpowers.jpg','','dir')
main.addDir('Assassins',genreurl + 'assassins','chiagenremain',artwork+'/anime/assasins.jpg','','dir')
main.addDir('Historical',genreurl + 'historical','chiagenremain',artwork+'/anime/historical.jpg','','dir')
main.addDir('School',genreurl + 'school','chiagenremain',artwork+'/anime/school.jpg','','dir')
main.addDir('Psychological',genreurl + 'psychological','chiagenremain',artwork+'/anime/psych.jpg','','dir')
main.addDir('Martial Arts',genreurl + 'martial+arts','chiagenremain',artwork+'/anime/martialarts.jpg','','dir')
main.AUTO_VIEW('')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:33,代码来源:chia.py
示例7: EMBED
def EMBED(url,name):
try:
link=OPEN_URL(url)
match=re.compile('data-src="(.+?)" poster="(.+?)"').findall(link)
for url,iconimage in match:
addLink(name,url,iconimage)
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:8,代码来源:phub.py
示例8: PHVIDEOLINKS
def PHVIDEOLINKS(url,name):
try:
link=OPEN_URL(url)
match=re.compile('iframe src="(.+?)"').findall(link)
for url in match:
EMBED(url,name)
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:8,代码来源:phub.py
示例9: SGCATS
def SGCATS():
try:
main.addDir('All Series Gate TV Shows','http://seriesgate.me/tvshows/','sgindex',artwork + 'all.jpg','','dir')
main.addDir('[COLOR gold]Search TV Shows[/COLOR]','http://seriesgate.me/search/indv_episodes/','searchsgtv',artwork + 'search.jpg','','dir')
main.AUTO_VIEW('')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:8,代码来源:sgate.py
示例10: CHIACATS
def CHIACATS():
try:
main.addDir('Latest Anime Episodes','http://www.chia-anime.com/','chialatest',artwork+'anime/latestepisodes.jpg','','dir')
main.addDir('Anime by Genres','none','chiagenres',artwork+'anime/genre.jpg','','dir')
main.addDir('A-Z','none','chiaalph',artwork+'anime/a-z.jpg','','dir')
main.addDir('Search Anime ','http://www.chia-anime.com/search/','searchanime',artwork +'anime/search.jpg','','dir')
main.AUTO_VIEW('')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:9,代码来源:chia.py
示例11: PHINDEX
def PHINDEX(url):
try:
link=OPEN_URL(url)
match=re.compile('href="(.+?)" title="(.+?)" class=".+?" data-related-url=".+?">\r\n\t\t\t\t\t\t\t\t\t<div class=".+?">\r\n\t\t\t\t<var class=".+?">.+?</var>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t<img src=".+?" alt=".+?" data-smallthumb=".+?" data-mediumthumb="(.+?)"').findall(link)
for url, name,thumb in match:
addDir(name,baseurl + url,'phvideolinks',thumb)
main.AUTO_VIEW('movies')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:9,代码来源:phub.py
示例12: CHANUFCCATS
def CHANUFCCATS():
try:
main.addDir('UFC [COLOR red](ChannelCut)[/COLOR]','http://www.channelcut.me/?s=ufc&searchsubmit=Search','chanufcindex',artwork + 'ufc.jpg','','dir')
main.AUTO_VIEW('')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:9,代码来源:chanufc.py
示例13: CHIALINKPAGE
def CHIALINKPAGE(url,name,thumb):
try:
params = {'url':url, 'mode':mode, 'name':name, 'thumb':thumb}
link = net.http_GET(url).content
matchsource = re.compile('class="bttn green" href="(.+?)">Save mp4 as Link</a>').findall(link)
for url in matchsource:
CHIARESOLVE(name,url,thumb)
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:9,代码来源:chia.py
示例14: CHIAVIDPAGE
def CHIAVIDPAGE(url,name):
try:
link = net.http_GET(url).content
matchvid=re.compile('Watch via Mobile</font></a><a id="download" target="_blank" href="(.+?)">.+?MP4 Video format').findall(link)
for url in matchvid:
addCHIADLDir(name,url,'chialinkpage',thumb,'','','','')
main.AUTO_VIEW('movies')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:9,代码来源:chia.py
示例15: CHIAALPHMAIN
def CHIAALPHMAIN(url):
try:
link = net.http_GET(url).content
match=re.compile('<img width=".+?" height=".+?" src="(.+?)"></a></p></div></td><div style="width:.+?; float:.+?;"><td class=".+?" style=".+?; overflow:.+?;"><div style="height:.+?; width:.+?;"><div style=".+?;"><a href="(.+?)" title="(.+?)">').findall(link)
for thumb,url,name in match:
name = name.replace('View all episode in','')
main.addDir(name,url,'chiaepisodes',thumb,'','')
main.AUTO_VIEW('movies')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:10,代码来源:chia.py
示例16: CHIASEARCH
def CHIASEARCH(url):
try:
link = net.http_GET(url).content
match=re.compile('<img style="padding-left:0px;" width="135" height="190" src="(.+?)"></a></div><div class="title"><a href="(.+?)">(.+?)</a></div>').findall(link)
for thumb,url,name in match:
#name = name.replace('View all episode in','')
main.addDir(name,url,'chialinkpage',thumb,'','')
main.AUTO_VIEW('movies')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:10,代码来源:chia.py
示例17: CHIAGENREMAIN
def CHIAGENREMAIN(url):
try:
link = net.http_GET(url).content
match=re.compile('overflow:hidden;"> <a href="(.+?)" title="(.+?)"><img width=".+?" height=".+?" src="(.+?)"></a>').findall(link)
for url,name,thumb in match:
name = name.replace('View all episode in','')
main.addDir(name,url,'chiaepisodes',thumb,'','')
main.AUTO_VIEW('movies')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:10,代码来源:chia.py
示例18: CHIALATEST
def CHIALATEST(url):
try:
link = net.http_GET(url).content
match=re.compile('<h3><a href="(.+?)" rel="bookmark" title="(.+?)">.+?</a></h3></div></center><div><span class="video-episode">.+?</span></div><div class="thumb" style="background: #000 url(.+?) no-repeat').findall(link)
for url,name,thumb in match:
thumb = thumb.replace('(','')
thumb = thumb.replace(')','')
main.addDir(name,url,'chiavidpage',thumb,'','')
main.AUTO_VIEW('movies')
except Exception:
buggalo.onExceptionRaised()
开发者ID:nek0316,项目名称:Repo,代码行数:11,代码来源:chia.py
注:本文中的resources.utils.buggalo.onExceptionRaised函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论