1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 11:32:20 -05:00

Minor change to subtitle code

This commit is contained in:
echel0n 2014-05-14 15:02:25 -07:00
parent f6a264bf5c
commit 70c5a02580

View File

@ -1284,9 +1284,9 @@ class TVEpisode(object):
lang = babel.alpha3 lang = babel.alpha3
languages.add(babelfish.Language(lang)) languages.add(babelfish.Language(lang))
video = subliminal.scan_video(self.location) videos = subliminal.scan_videos([self.location])
providers = sickbeard.subtitles.getEnabledServiceList() providers = sickbeard.subtitles.getEnabledServiceList()
downloadedSubs = subliminal.download_best_subtitles([video], languages, providers) downloadedSubs = subliminal.download_best_subtitles(videos, languages, providers)
if not len(downloadedSubs): if not len(downloadedSubs):
logger.log( logger.log(
str(self.show.indexerid) + ": No subtitles found for episode " + str(self.season) + "x" + str( str(self.show.indexerid) + ": No subtitles found for episode " + str(self.season) + "x" + str(