本文整理汇总了Python中resources.lib.indexers.tvshows.tvshows函数的典型用法代码示例。如果您正苦于以下问题:Python tvshows函数的具体用法?Python tvshows怎么用?Python tvshows使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tvshows函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: range
def range(self, url, query):
if query == 'tool':
return xbmc.executebuiltin('RunPlugin(%s?action=tvshowsToLibrary&url=%s)' % (sys.argv[0], urllib.quote_plus(url)))
yes = control.yesnoDialog(control.lang(30425).encode('utf-8'), '', '')
if not yes: return
if not control.condVisibility('Window.IsVisible(infodialog)') and not control.condVisibility('Player.HasVideo'):
control.infoDialog(control.lang(30421).encode('utf-8'), time=10000000)
self.infoDialog = True
from resources.lib.indexers import tvshows
items = tvshows.tvshows().get(url, idx=False)
if items == None: items = []
for i in items:
try:
if xbmc.abortRequested == True: return sys.exit()
self.add(i['title'], i['year'], i['imdb'], i['tmdb'], i['tvdb'], i['tvrage'], range=True)
except:
pass
if self.infoDialog == True:
control.infoDialog(control.lang(30423).encode('utf-8'), time=1)
if self.library_setting == 'true' and not control.condVisibility('Library.IsScanningVideo'):
control.execute('UpdateLibrary(video)')
示例2: range
def range(self, url):
control.idle()
yes = control.yesnoDialog(control.lang(30425).encode("utf-8"), "", "")
if not yes:
return
if not control.condVisibility("Window.IsVisible(infodialog)") and not control.condVisibility("Player.HasVideo"):
control.infoDialog(control.lang(30421).encode("utf-8"), time=10000000)
self.infoDialog = True
from resources.lib.indexers import tvshows
items = tvshows.tvshows().get(url, idx=False)
if items == None:
items = []
for i in items:
try:
if xbmc.abortRequested == True:
return sys.exit()
self.add(i["title"], i["year"], i["imdb"], i["tmdb"], i["tvdb"], i["tvrage"], range=True)
except:
pass
if self.infoDialog == True:
control.infoDialog(control.lang(30423).encode("utf-8"), time=1)
if self.library_setting == "true" and not control.condVisibility("Library.IsScanningVideo"):
control.execute("UpdateLibrary(video)")
示例3: range
def range(self, url):
control.idle()
yes = control.yesnoDialog(control.lang(32555).encode('utf-8'), '', '')
if not yes: return
if not control.condVisibility('Window.IsVisible(infodialog)') and not control.condVisibility('Player.HasVideo'):
control.infoDialog(control.lang(32552).encode('utf-8'), time=10000000)
self.infoDialog = True
from resources.lib.indexers import tvshows
items = tvshows.tvshows().get(url, idx=False)
if items == None: items = []
for i in items:
try:
if xbmc.abortRequested == True: return sys.exit()
self.add(i['title'], i['year'], i['imdb'], i['tvdb'], range=True)
except:
pass
if self.infoDialog == True:
control.infoDialog(control.lang(32554).encode('utf-8'), time=1)
if self.library_setting == 'true' and not control.condVisibility('Library.IsScanningVideo'):
control.execute('UpdateLibrary(video)')
示例4: arrivals
def arrivals(self):
if trakt.getTraktIndicatorsInfo() == True:
setting = tools.Settings.getInteger('interface.arrivals.shows')
else:
setting = 0
if setting == 0:
self.calendar(self.added_link)
elif setting == 1:
self.home()
elif setting == 2:
from resources.lib.indexers import tvshows
tvshows.tvshows(type = self.type, kids = self.kids).get('airing')
elif setting == 3:
self.calendar(self.progress_link)
elif setting == 4:
self.calendar(self.mycalendar_link)
else:
self.home()
示例5: silent
def silent(self, url):
control.idle()
if not control.condVisibility('Window.IsVisible(infodialog)') and not control.condVisibility('Player.HasVideo'):
control.infoDialog(control.lang(32608).encode('utf-8'), time=10000000)
self.infoDialog = True
self.silentDialog = True
from resources.lib.indexers import tvshows
items = tvshows.tvshows().get(url, idx=False)
if items == None: items = []
for i in items:
try:
if xbmc.abortRequested == True: return sys.exit()
self.add(i['title'], i['year'], i['imdb'], i['tvdb'], range=True)
except:
pass
if self.infoDialog is True:
self.silentDialog = False
control.infoDialog("Trakt TV Show Sync Complete", time=1)
示例6:
elif action == 'moviePersons':
from resources.lib.indexers import movies
movies.movies().persons()
elif action == 'movieUserlists':
from resources.lib.indexers import movies
movies.movies().userlists()
elif action == 'channels':
from resources.lib.indexers import channels
channels.channels().get()
elif action == 'tvshows':
from resources.lib.indexers import tvshows
tvshows.tvshows().get(url)
elif action == 'tvshowPage':
from resources.lib.indexers import tvshows
tvshows.tvshows().get(url)
elif action == 'tvSearch':
from resources.lib.indexers import tvshows
tvshows.tvshows().search(query)
elif action == 'tvPerson':
from resources.lib.indexers import tvshows
tvshows.tvshows().person(query)
elif action == 'tvGenres':
from resources.lib.indexers import tvshows
示例7:
elif action == 'movieSearch':
from resources.lib.indexers import movies
movies.movies().search(query)
elif action == 'movieGenres':
from resources.lib.indexers import movies
movies.movies().genres()
elif action == 'movieUserlists':
from resources.lib.indexers import movies
movies.movies().userlists()
elif action == 'tvFavourites':
from resources.lib.indexers import tvshows
tvshows.tvshows().favourites()
elif action == 'tvSearch':
from resources.lib.indexers import tvshows
tvshows.tvshows().search(query)
elif action == 'tvPerson':
from resources.lib.indexers import tvshows
tvshows.tvshows().person(query)
elif action == 'tvGenres':
from resources.lib.indexers import tvshows
tvshows.tvshows().genres()
elif action == 'tvNetworks':
from resources.lib.indexers import tvshows
示例8:
elif action == 'moviePersons':
from resources.lib.indexers import movies
movies.movies().persons(url)
elif action == 'movieUserlists':
from resources.lib.indexers import movies
movies.movies().userlists()
elif action == 'channels':
from resources.lib.indexers import channels
channels.channels().get()
elif action == 'tvshows':
from resources.lib.indexers import tvshows
tvshows.tvshows().get(url)
elif action == 'tvshowPage':
from resources.lib.indexers import tvshows
tvshows.tvshows().get(url)
elif action == 'tvSearch':
from resources.lib.indexers import tvshows
tvshows.tvshows().search()
elif action == 'tvPerson':
from resources.lib.indexers import tvshows
tvshows.tvshows().person()
elif action == 'tvGenres':
from resources.lib.indexers import tvshows
示例9: sources
elif action == 'movieYears':
from resources.lib.indexers import movies
movies.movies().years(lang)
elif action == 'movies':
from resources.lib.indexers import movies
movies.movies().get(url, provider=provider, lang=lang)
elif action == 'movieSearch':
from resources.lib.indexers import movies
movies.movies().search(query, lang)
elif action == 'tvshows':
from resources.lib.indexers import tvshows
tvshows.tvshows().get(url, provider=provider, network=name)
elif action == 'seasons':
from resources.lib.indexers import episodes
episodes.seasons().get(tvshowtitle, year, imdb, tmdb, tvdb, tvrage)
elif action == 'episodes':
from resources.lib.indexers import episodes
episodes.episodes().get(tvshowtitle, year, imdb, tmdb, tvdb, tvrage, season, episode, provider=provider, url=url)
elif action == 'sources':
from resources.lib.sources import sources
sources().addItem(name, title, year, imdb, tmdb, tvdb, tvrage, season, episode, tvshowtitle, alter, date, meta)
elif action == 'download':
import json
示例10:
elif action == 'moviePersons':
from resources.lib.indexers import movies
movies.movies().persons()
elif action == 'movieUserlists':
from resources.lib.indexers import movies
movies.movies().userlists()
elif action == 'channels':
from resources.lib.indexers import channels
channels.channels().get()
elif action == 'tvshows':
from resources.lib.indexers import tvshows
tvshows.tvshows().get(url)
elif action == 'similar_shows':
from resources.lib.indexers import tvshows
tvshows.tvshows().similar_shows(imdb)
elif action == 'get_similar_shows':
from resources.lib.indexers import tvshows
tvshows.tvshows().get_similar_shows(imdb)
elif action == 'tvshowPage':
from resources.lib.indexers import tvshows
tvshows.tvshows().get(url)
elif action == 'tvSearch':
from resources.lib.indexers import tvshows
示例11:
elif action == 'moviePersons':
from resources.lib.indexers import movies
movies.movies(type = type, kids = kids).persons(url)
elif action == 'movieUserlists':
from resources.lib.indexers import movies
movies.movies(type = type, kids = kids).userlists(mode = params.get('mode'))
elif action == 'channels':
from resources.lib.indexers import channels
channels.channels(type = type, kids = kids).get()
elif action == 'tvshows':
from resources.lib.indexers import tvshows
tvshows.tvshows(type = type, kids = kids).get(url)
elif action == 'tvshowPage':
from resources.lib.indexers import tvshows
tvshows.tvshows(type = type, kids = kids).get(url)
elif action == 'tvSearch':
from resources.lib.indexers import tvshows
tvshows.tvshows(type = type, kids = kids).search(params.get('terms'))
elif action == 'tvPerson':
from resources.lib.indexers import tvshows
tvshows.tvshows(type = type, kids = kids).person(params.get('terms'))
elif action == 'tvGenres':
from resources.lib.indexers import tvshows
示例12:
elif action == 'moviePersons':
from resources.lib.indexers import movies
movies.movies().persons()
elif action == 'movieUserlists':
from resources.lib.indexers import movies
movies.movies().userlists()
elif action == 'channels':
from resources.lib.indexers import channels
channels.channels().get()
elif action == 'tvshows':
from resources.lib.indexers import tvshows
tvshows.tvshows().get(url)
elif action == 'tvSearch':
from resources.lib.indexers import tvshows
tvshows.tvshows().search(query)
elif action == 'tvPerson':
from resources.lib.indexers import tvshows
tvshows.tvshows().person(query)
elif action == 'tvGenres':
from resources.lib.indexers import tvshows
tvshows.tvshows().genres()
elif action == 'tvNetworks':
from resources.lib.indexers import tvshows
示例13:
elif action == 'moviePersons':
from resources.lib.indexers import movies
movies.movies().persons()
elif action == 'movieUserlists':
from resources.lib.indexers import movies
movies.movies().userlists()
elif action == 'channels':
from resources.lib.indexers import channels
channels.channels().get()
elif action == 'tvshows':
from resources.lib.indexers import tvshows
tvshows.tvshows().get(url)
elif action == 'tvFavourites':
from resources.lib.indexers import tvshows
tvshows.tvshows().favourites()
elif action == 'tvSearch':
from resources.lib.indexers import tvshows
tvshows.tvshows().search(query)
elif action == 'tvSearchHistory':
from resources.lib.indexers import tvshows
tvshows.tvshows().search_from_history()
elif action == 'tvPerson':
from resources.lib.indexers import tvshows