Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to work with magnets/sonarr/radarr #35

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added LabelPlus-0.3.2.2-py2.7.egg
Binary file not shown.
7 changes: 4 additions & 3 deletions labelplus/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import datetime
import logging
import os
from time import sleep

import twisted.internet

Expand Down Expand Up @@ -733,7 +734,7 @@ def set_torrent_labels(self, torrent_ids, label_id):

@check_init
def on_torrent_added(self, torrent_id):

sleep(3.0)
label_id = self._do_autolabel_torrent(torrent_id)

if label_id != labelplus.common.label.ID_NONE:
Expand Down Expand Up @@ -1616,7 +1617,7 @@ def _find_autolabel_match(self, torrent_id):


def _do_autolabel_torrent(self, torrent_id):

assert(torrent_id in self._torrents)

label_id = self._find_autolabel_match(torrent_id)
Expand All @@ -1630,7 +1631,7 @@ def _do_autolabel_torrent(self, torrent_id):


def _do_autolabel_torrents(self, label_id, apply_to_all=False):

assert(label_id in self._labels)

changed = False
Expand Down