Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CouchPotatoServer
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
CouchPotatoServer
Commits
a86522a8
Commit
a86522a8
authored
Oct 26, 2012
by
Ruud
Browse files
Options
Downloads
Patches
Plain Diff
Don't download next when the release isn't found in downloaded. fix #924
parent
d6363149
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
couchpotato/core/plugins/renamer/main.py
+4
-8
4 additions, 8 deletions
couchpotato/core/plugins/renamer/main.py
with
4 additions
and
8 deletions
couchpotato/core/plugins/renamer/main.py
+
4
−
8
View file @
a86522a8
...
...
@@ -3,7 +3,8 @@ from couchpotato.api import addApiView
from
couchpotato.core.event
import
addEvent
,
fireEvent
,
fireEventAsync
from
couchpotato.core.helpers.encoding
import
toUnicode
,
ss
from
couchpotato.core.helpers.request
import
jsonified
from
couchpotato.core.helpers.variable
import
getExt
,
mergeDicts
,
getTitle
from
couchpotato.core.helpers.variable
import
getExt
,
mergeDicts
,
getTitle
,
\
getImdb
from
couchpotato.core.logger
import
CPLog
from
couchpotato.core.plugins.base
import
Plugin
from
couchpotato.core.settings.model
import
Library
,
File
,
Profile
,
Release
...
...
@@ -521,7 +522,7 @@ class Renamer(Plugin):
if
rels
:
self
.
checking_snatched
=
True
log
.
debug
(
'
Checking status snatched releases...
'
)
# get queue and history (once) from SABnzbd
statuses
=
fireEvent
(
'
download.status
'
,
merge
=
True
)
if
not
statuses
:
log
.
debug
(
'
Download status functionality is not implemented for active downloaders.
'
)
...
...
@@ -548,7 +549,7 @@ class Renamer(Plugin):
found
=
False
for
item
in
statuses
:
if
item
[
'
name
'
]
==
nzbname
:
if
item
[
'
name
'
]
==
nzbname
or
getImdb
(
item
[
'
name
'
])
==
movie_dict
[
'
library
'
][
'
identifier
'
]
:
timeleft
=
'
N/A
'
if
item
[
'
timeleft
'
]
==
-
1
else
item
[
'
timeleft
'
]
log
.
debug
(
'
Found %s: %s, time to go: %s
'
,
(
item
[
'
name
'
],
item
[
'
status
'
].
upper
(),
timeleft
))
...
...
@@ -572,11 +573,6 @@ class Renamer(Plugin):
if
not
found
:
log
.
info
(
'
%s not found in downloaders
'
,
nzbname
)
rel
.
status_id
=
ignored_status
.
get
(
'
id
'
)
db
.
commit
()
if
self
.
conf
(
'
next_on_failed
'
):
fireEvent
(
'
searcher.try_next_release
'
,
movie_id
=
rel
.
movie_id
)
except
:
log
.
error
(
'
Failed checking for release in downloader: %s
'
,
traceback
.
format_exc
())
...
...
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