Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage
Commits
e4348a51
Commit
e4348a51
authored
Mar 27, 2015
by
Alexandre Beloin
Browse files
Options
Downloads
Patches
Plain Diff
PostProcess: Fix lower quality, bigger sized file overwriting current
episode.
parent
f4f4527d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/postProcessor.py
+1090
-1084
1090 additions, 1084 deletions
sickbeard/postProcessor.py
with
1090 additions
and
1084 deletions
sickbeard/postProcessor.py
+
1090
−
1084
View file @
e4348a51
...
...
@@ -838,6 +838,7 @@ class PostProcessor(object):
# retrieve/create the corresponding TVEpisode objects
ep_obj
=
self
.
_get_ep_obj
(
show
,
season
,
episodes
)
old_ep_status
,
old_ep_quality
=
common
.
Quality
.
splitCompositeStatus
(
ep_obj
.
status
)
# get the quality of the episode we're processing
if
quality
:
...
...
@@ -867,6 +868,11 @@ class PostProcessor(object):
# if it's not priority then we don't want to replace smaller files in case it was a mistake
if
not
priority_download
:
# Not a priority and the quality is lower than what we already have
if
(
new_ep_quality
<
old_ep_quality
and
new_ep_quality
!=
common
.
Quality
.
UNKNOWN
)
and
not
existing_file_status
==
PostProcessor
.
DOESNT_EXIST
:
self
.
_log
(
u
"
File exists and new file quality is lower than existing, marking it unsafe to replace
"
,
logger
.
DEBUG
)
return
False
# if there's an existing file that we don't want to replace stop here
if
existing_file_status
==
PostProcessor
.
EXISTS_LARGER
:
if
self
.
is_proper
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment