summaryrefslogtreecommitdiffstats
path: root/module/Plugin.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-04 20:01:17 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-04 20:01:17 +0100
commit78f061eed59e084f001f8a0cd9c5b585f6fc0ce0 (patch)
tree1c5cc3cbfa4eb993a5af0f2b6556e1ff5f0021c7 /module/Plugin.py
parentConvert read_url_list to new Plugin (diff)
downloadpyload-78f061eed59e084f001f8a0cd9c5b585f6fc0ce0.tar.xz
fixes, minimal gui changes
Diffstat (limited to 'module/Plugin.py')
-rw-r--r--module/Plugin.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/Plugin.py b/module/Plugin.py
index 7b726c3ac..f343dc62f 100644
--- a/module/Plugin.py
+++ b/module/Plugin.py
@@ -89,7 +89,10 @@ class Plugin():
return self.parent.url
def get_file_name(self):
- return re.findall("([^\/=]+)", self.parent.url)[-1]
+ try:
+ return re.findall("([^\/=]+)", self.parent.url)[-1]
+ except:
+ return "no_name"
def wait_until(self):
if self.html != None: