From bb938a82b500e1c9a46888783ba267a2799d9f36 Mon Sep 17 00:00:00 2001 From: Nitzo Date: Thu, 25 Feb 2016 23:50:48 +0200 Subject: fix #2359 --- module/plugins/internal/Base.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'module/plugins/internal/Base.py') diff --git a/module/plugins/internal/Base.py b/module/plugins/internal/Base.py index 34ccde08b..6194ebfd9 100644 --- a/module/plugins/internal/Base.py +++ b/module/plugins/internal/Base.py @@ -27,7 +27,7 @@ def parse_fileInfo(klass, url="", html=""): class Base(Plugin): __name__ = "Base" __type__ = "base" - __version__ = "0.24" + __version__ = "0.25" __status__ = "stable" __pattern__ = r'^unmatchable$' @@ -49,7 +49,7 @@ class Base(Plugin): 'hash' : {}, 'pattern': {}, 'size' : 0, - 'status' : 3 if url else 8, + 'status' : 7 if url else 8, 'url' : replace_patterns(url, cls.URL_REPLACEMENTS)} try: @@ -286,10 +286,11 @@ class Base(Plugin): #: Deprecated method, use `_process` instead (Remove in 0.4.10) def preprocessing(self, *args, **kwargs): - self.pyfile.setStatus("starting") #@NOTE: Set pyfile status from `queued` to `starting` as soon as possible to avoid race condition in ThreadManager's assignJob function + #@NOTE: Set pyfile status from `queued` to `starting` as soon as possible to avoid race condition in ThreadManager's assignJob function + #@NOTE: Move to ThreadManager in 0.4.10 + self.pyfile.setStatus("starting") #@NOTE: Recheck info thread synchronization in 0.4.10 - # time.sleep(1) return self._process(*args, **kwargs) -- cgit v1.2.3