diff options
author | spoob <spoob@gmx.de> | 2009-09-02 13:40:45 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-09-02 13:40:45 +0200 |
commit | 99dedcf1a2363a283093ab75d37ad11e95a48077 (patch) | |
tree | 2d36a63abc273ec8ebcc85d28a3fbf0f56ae4231 /module/file_list.py | |
parent | cleaning (diff) | |
download | pyload-99dedcf1a2363a283093ab75d37ad11e95a48077.tar.xz |
cleanded up again
Diffstat (limited to 'module/file_list.py')
-rw-r--r-- | module/file_list.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/module/file_list.py b/module/file_list.py index b7455410c..fadab0425 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -21,8 +21,9 @@ LIST_VERSION = 2 from threading import RLock - +from download_thread import Status import cPickle +import re from module.remote.RequestObject import RequestObject class File_List(object): @@ -45,6 +46,7 @@ class File_List(object): if not url: return False #@TODO: filter non existence and invalid links + #re.compile("https?://[-a-z0-9\.]{4,}(?::\d+)?/[^#?]+(?:#\S+)?",re.IGNORECASE) new_file = self.new_pyfile(url) self.files.append(new_file) self.data[new_file.id] = Data(url) @@ -138,10 +140,6 @@ class File_List(object): class Data(): def __init__(self, url): self.url = url - -import re - -from download_thread import Status class PyLoadFile: """ represents the url or file |