Private GIT

Skip to content
Snippets Groups Projects
Commit e1af3a8a authored by Sammy Spets's avatar Sammy Spets Committed by miigotu
Browse files

Support adding LabelPlus labels to Deluge client torrents. (#3713)

parent 25b44741
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,10 @@ class DelugeRPC(object):
try:
self.connect()
self.client.label.set_torrent(torrent_id, label).get() # pylint:disable=no-member
except Exception:
try:
self.connect()
self.client.labelplus.set_torrent_labels([torrent_id], label).get() # pylint:disable=no-member
except Exception:
return False
finally:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment