diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-22 00:19:04 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-22 00:19:04 +0200 |
commit | 3d34e6052db68ff482aa1aca65d512ddf40c310e (patch) | |
tree | 3b96511d5f10a9620f0f565eafe51eb398365365 /module/Py_Load_File.py | |
parent | was wir nicht brauchen auskommentiert, host überprüfung verlagert (diff) | |
download | pyload-3d34e6052db68ff482aa1aca65d512ddf40c310e.tar.xz |
remove queue from thread list and implemented own method to get suited
job for a thread
Diffstat (limited to 'module/Py_Load_File.py')
-rw-r--r-- | module/Py_Load_File.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/module/Py_Load_File.py b/module/Py_Load_File.py index 96936e4af..8fb45c079 100644 --- a/module/Py_Load_File.py +++ b/module/Py_Load_File.py @@ -1,4 +1,3 @@ -# -*- coding: cp1252 -*- from download_thread import Status import re @@ -11,7 +10,7 @@ class PyLoadFile: self.url = url self.filename = "filename" self.download_folder = "" - self.modul = __import__(self._get_my_plugin()) + self.modul = __import__(self._get_my_plugin()) #maybe replace to prepare download pluginClass = getattr(self.modul, self.modul.__name__) self.plugin = pluginClass(self) self.download_folder = "" @@ -22,7 +21,7 @@ class PyLoadFile: """ searches the right plugin for an url """ for plugin, plugin_pattern in self.parent.plugins_avaible.items(): - if re.match(plugin_pattern, self.url) != None: #guckt ob übergebende url auf muster des plugins passt + if re.match(plugin_pattern, self.url) != None: return plugin #logger: kein plugin gefunden # was soll passieren wenn nichts gefunden wird?!? return None |