Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
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-1
Commits
26865623
Commit
26865623
authored
Aug 24, 2015
by
jalim
Committed by
Dustyn Gibson
Aug 25, 2015
Browse files
Options
Downloads
Patches
Plain Diff
Modified deluged_client.py to allow move to folder to be set.
parent
c08ffaae
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/clients/deluged_client.py
+18
-1
18 additions, 1 deletion
sickbeard/clients/deluged_client.py
with
18 additions
and
1 deletion
sickbeard/clients/deluged_client.py
+
18
−
1
View file @
26865623
...
...
@@ -94,7 +94,11 @@ class DelugeDAPI(GenericClient):
def
_set_torrent_path
(
self
,
result
):
path
=
sickbeard
.
TORRENT_PATH
if
path
:
if
self
.
drpc
.
set_torrent_path
(
result
.
hash
,
path
):
return
True
return
False
def
_set_torrent_pause
(
self
,
result
):
...
...
@@ -179,6 +183,19 @@ class DelugeRPC(object):
self
.
disconnect
()
return
True
def
set_torrent_path
(
self
,
torrent_id
,
path
):
try
:
self
.
connect
()
self
.
client
.
core
.
set_torrent_move_completed_path
(
torrent_id
,
path
).
get
()
self
.
client
.
core
.
set_torrent_move_completed
(
torrent_id
,
1
).
get
()
except
Exception
as
err
:
logger
.
log
(
'
DelugeD: Failed to set path for torrent:
'
+
err
+
'
'
+
traceback
.
format_exc
(),
logger
.
ERROR
)
return
False
finally
:
if
self
.
client
:
self
.
disconnect
()
return
True
def
pause_torrent
(
self
,
torrent_ids
):
try
:
self
.
connect
()
...
...
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