60 lines
2.6 KiB
Python
60 lines
2.6 KiB
Python
__author__ = 'Wendell Jones'
|
|
global urls
|
|
|
|
|
|
class Tvmazeurls(object):
|
|
|
|
def __init__(self):
|
|
self.urls = {}
|
|
self.set_data()
|
|
|
|
|
|
def set_data(self):
|
|
self.urls['showurl'] = 'http://api.tvmaze.com/shows/<seriesid>'
|
|
self.urls['serieslisturl'] = 'http://api.tvmaze.com/shows?page=<pagenum>'
|
|
self.urls['casturl'] = 'http://api.tvmaze.com/shows/<seriesid>/cast'
|
|
self.urls['crewurl'] = 'https://api.thetvdb.com/series/<seriesid>/crew'
|
|
self.urls['creditsurl'] = 'https://api.thetvdb.com/series/<seriesid>/castcredits'
|
|
self.urls['episodesurl'] = 'http://api.tvmaze.com/shows/<seriesid>/episodes'
|
|
self.urls['aliasurl'] = 'http://api.tvmaze.com/shows/<seriesid>/akas'
|
|
self.urls['creditsurl'] = 'http://api.tvmaze.com/people/<seriesid>/castcredits'
|
|
self.urls['updatesurl'] = 'http://api.tvmaze.com/updates/shows'
|
|
self.urls['crewurl'] = 'http://api.tvmaze.com/shows/<seriesid>/crew'
|
|
|
|
|
|
def get_data(self):
|
|
return self.urls
|
|
|
|
def __del__(self):
|
|
pass
|
|
|
|
class TVDBurls(object):
|
|
|
|
def __init__(self):
|
|
self.urls = {}
|
|
self.set_data()
|
|
|
|
def set_data(self):
|
|
self.urls['loginurl'] = 'https://api.thetvdb.com/login'
|
|
self.urls['refreshurl'] = 'https://api.thetvdb.com/refresh_token'
|
|
self.urls['showurl'] = 'https://api.thetvdb.com/series/{id}'
|
|
self.urls['episodeurl'] = 'https://api.thetvdb.com/episodes/{id}'
|
|
self.urls['casturl'] = 'https://api.thetvdb.com/series/{id}/actors'
|
|
self.urls['crewurl'] = 'https://api.thetvdb.com/series/{id}/crew'
|
|
self.urls['creditsurl'] = 'https://api.thetvdb.com/series/{id}/castcredits'
|
|
self.urls['episodesurl'] = 'https://api.thetvdb.com/series/{id}/episodes'
|
|
self.urls['episodequeryurl'] = 'https://api.thetvdb.com/series/{id}/episodes/query'
|
|
self.urls['episodeparamurl'] = 'https://api.thetvdb.com/series/{id}/episodes/query/params'
|
|
self.urls['episodesummaryurl'] = 'https://api.thetvdb.com/series/{id}/episodes/summary'
|
|
self.urls['filterurl'] = 'https://api.thetvdb.com/series/{id}/filter'
|
|
self.urls['filterparamurl'] = 'https://api.thetvdb.com/series/{id}/filter/params'
|
|
self.urls['imageurl'] = 'https://api.thetvdb.com/series/{id}/images'
|
|
self.urls['imagequeryurl'] = 'https://api.thetvdb.com/series/{id}/images/query'
|
|
self.urls['imageparamurl'] = 'https://api.thetvdb.com/series/{id}/images/query/params'
|
|
self.urls['username'] = 'wpjonesnhcjc'
|
|
self.urls['apikey'] = 'NACCS2LUWCFEFABX'
|
|
self.urls['userkey'] = 'UUSZHUQ8CY7N31CF'
|
|
|
|
|
|
def get_data(self):
|
|
return self.urls |