mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Attempt to get quality from snatched episode status
Backport from midgetspy
This commit is contained in:
parent
ab89084688
commit
d906bcc049
@ -681,7 +681,14 @@ class PostProcessor(object):
|
||||
ep_quality] + ", using that", logger.DEBUG)
|
||||
return ep_quality
|
||||
|
||||
# if we didn't get a quality from one of the names above, try assuming from each of the names
|
||||
# Try getting quality from the episode (snatched) status
|
||||
if ep_obj.status in common.Quality.SNATCHED + common.Quality.SNATCHED_PROPER:
|
||||
oldStatus, ep_quality = common.Quality.splitCompositeStatus(ep_obj.status) # @UnusedVariable
|
||||
if ep_quality != common.Quality.UNKNOWN:
|
||||
self._log(u"The old status had a quality in it, using that: " + common.Quality.qualityStrings[ep_quality], logger.DEBUG)
|
||||
return ep_quality
|
||||
|
||||
# Try guessing quality from the file name
|
||||
ep_quality = common.Quality.assumeQuality(self.file_name)
|
||||
self._log(
|
||||
u"Guessing quality for name " + self.file_name + u", got " + common.Quality.qualityStrings[ep_quality],
|
||||
|
Loading…
Reference in New Issue
Block a user