mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
315430d373
9 changed files with 70 additions and 7 deletions
|
@ -37,6 +37,11 @@
|
||||||
* Change suppress output warnings from media process scripts
|
* Change suppress output warnings from media process scripts
|
||||||
|
|
||||||
|
|
||||||
|
### 0.15.8 (2018-04-07 00:14:00 UTC)
|
||||||
|
|
||||||
|
* Change improve tvinfo source meta handling for cases where server is either down, or no results are returned
|
||||||
|
|
||||||
|
|
||||||
### 0.15.7 (2018-04-06 13:30:00 UTC)
|
### 0.15.7 (2018-04-06 13:30:00 UTC)
|
||||||
|
|
||||||
* Change improve metadata handler during postprocessing when tvinfo source is down
|
* Change improve metadata handler during postprocessing when tvinfo source is down
|
||||||
|
|
|
@ -644,8 +644,6 @@ class Tvdb:
|
||||||
try:
|
try:
|
||||||
src = self._load_url(url, params=params, language=language)
|
src = self._load_url(url, params=params, language=language)
|
||||||
return src
|
return src
|
||||||
except tvdb_error:
|
|
||||||
raise sickbeard.indexer_error
|
|
||||||
except (StandardError, Exception):
|
except (StandardError, Exception):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
|
@ -789,6 +789,11 @@ class GenericMetadata():
|
||||||
show_obj.indexer).name + ", not downloading images: " + ex(e), logger.ERROR)
|
show_obj.indexer).name + ", not downloading images: " + ex(e), logger.ERROR)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
if not indexer_show_obj:
|
||||||
|
logger.log(u'Show %s not found on %s ' %
|
||||||
|
(show_obj.name, sickbeard.indexerApi(show_obj.indexer).name), logger.WARNING)
|
||||||
|
return None
|
||||||
|
|
||||||
return_links = False
|
return_links = False
|
||||||
if 'fanart_all' == image_type:
|
if 'fanart_all' == image_type:
|
||||||
return_links = True
|
return_links = True
|
||||||
|
@ -876,6 +881,11 @@ class GenericMetadata():
|
||||||
show_obj.indexer).name + ', not downloading images: ' + ex(e), logger.ERROR)
|
show_obj.indexer).name + ', not downloading images: ' + ex(e), logger.ERROR)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
if not indexer_show_obj:
|
||||||
|
logger.log(u'Show %s not found on %s ' %
|
||||||
|
(show_obj.name, sickbeard.indexerApi(show_obj.indexer).name), logger.WARNING)
|
||||||
|
return result
|
||||||
|
|
||||||
season_images = getattr(indexer_show_obj, '_banners', {}).get(
|
season_images = getattr(indexer_show_obj, '_banners', {}).get(
|
||||||
('season', 'seasonwide')['seasonwides' == image_type], {}).get(season, {})
|
('season', 'seasonwide')['seasonwides' == image_type], {}).get(season, {})
|
||||||
for image_id in season_images.keys():
|
for image_id in season_images.keys():
|
||||||
|
|
|
@ -124,6 +124,11 @@ class KODIMetadata(generic.GenericMetadata):
|
||||||
logger.ERROR)
|
logger.ERROR)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
if not myShow:
|
||||||
|
logger.log(u'Show %s not found on %s ' % (show_obj.name, sickbeard.indexerApi(show_obj.indexer).name),
|
||||||
|
logger.WARNING)
|
||||||
|
return
|
||||||
|
|
||||||
# check for title and id
|
# check for title and id
|
||||||
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
||||||
logger.log(u'Incomplete info for show with id ' + str(show_ID) + ' on ' + sickbeard.indexerApi(
|
logger.log(u'Incomplete info for show with id ' + str(show_ID) + ' on ' + sickbeard.indexerApi(
|
||||||
|
@ -241,6 +246,11 @@ class KODIMetadata(generic.GenericMetadata):
|
||||||
ep_obj.show.indexer).name + ' while creating meta files - skipping - ' + ex(e), logger.ERROR)
|
ep_obj.show.indexer).name + ' while creating meta files - skipping - ' + ex(e), logger.ERROR)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not myShow:
|
||||||
|
logger.log(u'Show %s not found on %s ' %
|
||||||
|
(ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name), logger.WARNING)
|
||||||
|
return
|
||||||
|
|
||||||
if len(eps_to_write) > 1:
|
if len(eps_to_write) > 1:
|
||||||
rootNode = etree.Element('xbmcmultiepisode')
|
rootNode = etree.Element('xbmcmultiepisode')
|
||||||
else:
|
else:
|
||||||
|
@ -251,7 +261,7 @@ class KODIMetadata(generic.GenericMetadata):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
myEp = myShow[curEpToWrite.season][curEpToWrite.episode]
|
myEp = myShow[curEpToWrite.season][curEpToWrite.episode]
|
||||||
except (sickbeard.indexer_episodenotfound, sickbeard.indexer_seasonnotfound):
|
except (StandardError, Exception):
|
||||||
logger.log(u'Unable to find episode ' + str(curEpToWrite.season) + 'x' + str(
|
logger.log(u'Unable to find episode ' + str(curEpToWrite.season) + 'x' + str(
|
||||||
curEpToWrite.episode) + ' on ' + sickbeard.indexerApi(
|
curEpToWrite.episode) + ' on ' + sickbeard.indexerApi(
|
||||||
ep_obj.show.indexer).name + '.. has it been removed? Should I delete from db?')
|
ep_obj.show.indexer).name + '.. has it been removed? Should I delete from db?')
|
||||||
|
|
|
@ -129,6 +129,11 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata):
|
||||||
logger.log(u"TVDB is down, can't use its data to make the NFO", logger.ERROR)
|
logger.log(u"TVDB is down, can't use its data to make the NFO", logger.ERROR)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
if not myShow:
|
||||||
|
logger.log(u'Show %s not found on %s ' % (show_obj.name, sickbeard.indexerApi(show_obj.indexer).name),
|
||||||
|
logger.WARNING)
|
||||||
|
return
|
||||||
|
|
||||||
# check for title and id
|
# check for title and id
|
||||||
try:
|
try:
|
||||||
if myShow['seriesname'] == None or myShow['seriesname'] == "" or myShow['id'] == None or myShow['id'] == "":
|
if myShow['seriesname'] == None or myShow['seriesname'] == "" or myShow['id'] == None or myShow['id'] == "":
|
||||||
|
@ -242,6 +247,11 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata):
|
||||||
logger.log(u"Unable to connect to TVDB while creating meta files - skipping - " + ex(e), logger.ERROR)
|
logger.log(u"Unable to connect to TVDB while creating meta files - skipping - " + ex(e), logger.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if not myShow:
|
||||||
|
logger.log(u'Show %s not found on %s ' % (ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name),
|
||||||
|
logger.WARNING)
|
||||||
|
return
|
||||||
|
|
||||||
rootNode = etree.Element("details")
|
rootNode = etree.Element("details")
|
||||||
movie = etree.SubElement(rootNode, "movie")
|
movie = etree.SubElement(rootNode, "movie")
|
||||||
|
|
||||||
|
@ -254,7 +264,7 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
myEp = myShow[curEpToWrite.season][curEpToWrite.episode]
|
myEp = myShow[curEpToWrite.season][curEpToWrite.episode]
|
||||||
except (sickbeard.indexer_episodenotfound, sickbeard.indexer_seasonnotfound):
|
except (StandardError, Exception):
|
||||||
logger.log(u"Unable to find episode " + str(curEpToWrite.season) + "x" + str(curEpToWrite.episode) + " on tvdb... has it been removed? Should I delete from db?")
|
logger.log(u"Unable to find episode " + str(curEpToWrite.season) + "x" + str(curEpToWrite.episode) + " on tvdb... has it been removed? Should I delete from db?")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
|
@ -256,6 +256,11 @@ class MediaBrowserMetadata(generic.GenericMetadata):
|
||||||
logger.ERROR)
|
logger.ERROR)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
if not myShow:
|
||||||
|
logger.log(u'Show %s not found on %s ' % (show_obj.name, sickbeard.indexerApi(show_obj.indexer).name),
|
||||||
|
logger.WARNING)
|
||||||
|
return
|
||||||
|
|
||||||
# check for title and id
|
# check for title and id
|
||||||
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
||||||
logger.log(u"Incomplete info for show with id " + str(show_obj.indexerid) + " on " + sickbeard.indexerApi(
|
logger.log(u"Incomplete info for show with id " + str(show_obj.indexerid) + " on " + sickbeard.indexerApi(
|
||||||
|
@ -416,6 +421,11 @@ class MediaBrowserMetadata(generic.GenericMetadata):
|
||||||
ep_obj.show.indexer).name + " while creating meta files - skipping - " + ex(e), logger.ERROR)
|
ep_obj.show.indexer).name + " while creating meta files - skipping - " + ex(e), logger.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if not myShow:
|
||||||
|
logger.log(u'Show %s not found on %s ' % (ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name),
|
||||||
|
logger.WARNING)
|
||||||
|
return
|
||||||
|
|
||||||
rootNode = etree.Element("Item")
|
rootNode = etree.Element("Item")
|
||||||
|
|
||||||
# write an MediaBrowser XML containing info for all matching episodes
|
# write an MediaBrowser XML containing info for all matching episodes
|
||||||
|
@ -423,7 +433,7 @@ class MediaBrowserMetadata(generic.GenericMetadata):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
myEp = myShow[curEpToWrite.season][curEpToWrite.episode]
|
myEp = myShow[curEpToWrite.season][curEpToWrite.episode]
|
||||||
except (sickbeard.indexer_episodenotfound, sickbeard.indexer_seasonnotfound):
|
except (StandardError, Exception):
|
||||||
logger.log(u"Unable to find episode " + str(curEpToWrite.season) + "x" + str(
|
logger.log(u"Unable to find episode " + str(curEpToWrite.season) + "x" + str(
|
||||||
curEpToWrite.episode) + " on " + sickbeard.indexerApi(
|
curEpToWrite.episode) + " on " + sickbeard.indexerApi(
|
||||||
ep_obj.show.indexer).name + ".. has it been removed? Should I delete from db?")
|
ep_obj.show.indexer).name + ".. has it been removed? Should I delete from db?")
|
||||||
|
|
|
@ -188,11 +188,16 @@ class TIVOMetadata(generic.GenericMetadata):
|
||||||
ep_obj.show.indexer).name + " while creating meta files - skipping - " + str(e), logger.ERROR)
|
ep_obj.show.indexer).name + " while creating meta files - skipping - " + str(e), logger.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if not myShow:
|
||||||
|
logger.log(u'Show %s not found on %s ' % (ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name),
|
||||||
|
logger.WARNING)
|
||||||
|
return
|
||||||
|
|
||||||
for curEpToWrite in eps_to_write:
|
for curEpToWrite in eps_to_write:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
myEp = myShow[curEpToWrite.season][curEpToWrite.episode]
|
myEp = myShow[curEpToWrite.season][curEpToWrite.episode]
|
||||||
except (sickbeard.indexer_episodenotfound, sickbeard.indexer_seasonnotfound):
|
except (StandardError, Exception):
|
||||||
logger.log(u"Unable to find episode " + str(curEpToWrite.season) + "x" + str(
|
logger.log(u"Unable to find episode " + str(curEpToWrite.season) + "x" + str(
|
||||||
curEpToWrite.episode) + " on " + sickbeard.indexerApi(
|
curEpToWrite.episode) + " on " + sickbeard.indexerApi(
|
||||||
ep_obj.show.indexer).name + "... has it been removed? Should I delete from db?")
|
ep_obj.show.indexer).name + "... has it been removed? Should I delete from db?")
|
||||||
|
|
|
@ -199,6 +199,11 @@ class WDTVMetadata(generic.GenericMetadata):
|
||||||
ep_obj.show.indexer).name + " while creating meta files - skipping - " + ex(e), logger.ERROR)
|
ep_obj.show.indexer).name + " while creating meta files - skipping - " + ex(e), logger.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if not myShow:
|
||||||
|
logger.log(u'Show %s not found on %s ' % (ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name),
|
||||||
|
logger.WARNING)
|
||||||
|
return
|
||||||
|
|
||||||
rootNode = etree.Element("details")
|
rootNode = etree.Element("details")
|
||||||
|
|
||||||
# write an WDTV XML containing info for all matching episodes
|
# write an WDTV XML containing info for all matching episodes
|
||||||
|
@ -206,7 +211,7 @@ class WDTVMetadata(generic.GenericMetadata):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
myEp = myShow[curEpToWrite.season][curEpToWrite.episode]
|
myEp = myShow[curEpToWrite.season][curEpToWrite.episode]
|
||||||
except (sickbeard.indexer_episodenotfound, sickbeard.indexer_seasonnotfound):
|
except (StandardError, Exception):
|
||||||
logger.log(u"Unable to find episode " + str(curEpToWrite.season) + "x" + str(
|
logger.log(u"Unable to find episode " + str(curEpToWrite.season) + "x" + str(
|
||||||
curEpToWrite.episode) + " on " + sickbeard.indexerApi(
|
curEpToWrite.episode) + " on " + sickbeard.indexerApi(
|
||||||
ep_obj.show.indexer).name + "... has it been removed? Should I delete from db?")
|
ep_obj.show.indexer).name + "... has it been removed? Should I delete from db?")
|
||||||
|
|
|
@ -124,6 +124,11 @@ class XBMC_12PlusMetadata(generic.GenericMetadata):
|
||||||
logger.ERROR)
|
logger.ERROR)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
if not myShow:
|
||||||
|
logger.log(u'Show %s not found on %s ' % (show_obj.name, sickbeard.indexerApi(show_obj.indexer).name),
|
||||||
|
logger.WARNING)
|
||||||
|
return
|
||||||
|
|
||||||
# check for title and id
|
# check for title and id
|
||||||
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
||||||
logger.log(u"Incomplete info for show with id " + str(show_ID) + " on " + sickbeard.indexerApi(
|
logger.log(u"Incomplete info for show with id " + str(show_ID) + " on " + sickbeard.indexerApi(
|
||||||
|
@ -241,6 +246,11 @@ class XBMC_12PlusMetadata(generic.GenericMetadata):
|
||||||
ep_obj.show.indexer).name + " while creating meta files - skipping - " + ex(e), logger.ERROR)
|
ep_obj.show.indexer).name + " while creating meta files - skipping - " + ex(e), logger.ERROR)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not myShow:
|
||||||
|
logger.log(u'Show %s not found on %s ' % (ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name),
|
||||||
|
logger.WARNING)
|
||||||
|
return
|
||||||
|
|
||||||
if len(eps_to_write) > 1:
|
if len(eps_to_write) > 1:
|
||||||
rootNode = etree.Element("xbmcmultiepisode")
|
rootNode = etree.Element("xbmcmultiepisode")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue