From 583f139f4411b06edf3b68fc63679a4d9e618346 Mon Sep 17 00:00:00 2001 From: spoob Date: Wed, 2 Sep 2009 13:19:43 +0200 Subject: cleaning --- module/Py_Load_File.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 module/Py_Load_File.py (limited to 'module/Py_Load_File.py') diff --git a/module/Py_Load_File.py b/module/Py_Load_File.py deleted file mode 100644 index 278b8f6c7..000000000 --- a/module/Py_Load_File.py +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- - -import re - -from download_thread import Status - -class PyLoadFile: - """ represents the url or file - """ - def __init__(self, parent, url): - self.parent = parent - self.id = None - self.url = url - self.filename = "filename" - self.download_folder = "" - self.modul = __import__(self._get_my_plugin()) - pluginClass = getattr(self.modul, self.modul.__name__) - self.plugin = pluginClass(self) - self.status = Status(self) - - def _get_my_plugin(self): - """ 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: - return plugin - - return "Plugin" - - def init_download(self): - - if self.parent.config['proxy']['activated']: - self.plugin.req.add_proxy(self.parent.config['proxy']['protocol'], self.parent.config['proxy']['adress']) - - #@todo: check dependicies, ocr etc - -- cgit v1.2.3