summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-05-28 18:04:46 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-05-28 18:04:46 +0200
commit336d264e8445362cd41a5ecda375dad1400cd8df (patch)
treedc7eeaa37b2271332e6da0934f91fa8618cfa60b /module/plugins/hoster
parentfix freakshare with python < 2.7 (diff)
downloadpyload-336d264e8445362cd41a5ecda375dad1400cd8df.tar.xz
closed #587
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/RealdebridCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py
index 4fc3b4306..ff4843afd 100644
--- a/module/plugins/hoster/RealdebridCom.py
+++ b/module/plugins/hoster/RealdebridCom.py
@@ -12,7 +12,7 @@ from module.plugins.Hoster import Hoster
class RealdebridCom(Hoster):
__name__ = "RealdebridCom"
- __version__ = "0.48"
+ __version__ = "0.49"
__type__ = "hoster"
__pattern__ = r"https?://.*real-debrid\..*"
@@ -25,7 +25,7 @@ class RealdebridCom(Hoster):
name = unquote(url.rsplit("/", 1)[1])
except IndexError:
name = "Unknown_Filename..."
- if name.endswith(".."): #incomplete filename, append random stuff
+ if not name or name.endswith(".."): #incomplete filename, append random stuff
name += "%s.tmp" % randrange(100,999)
return name
@@ -61,7 +61,7 @@ class RealdebridCom(Hoster):
self.logWarning(data["message"])
self.tempOffline()
else:
- if self.pyfile.name and not self.pyfile.name.endswith('.tmp'):
+ if self.pyfile.name is not None and self.pyfile.name.endswith('.tmp') and data["file_name"]:
self.pyfile.name = data["file_name"]
self.pyfile.size = parseFileSize(data["file_size"])
new_url = data['generated_links'][0][-1]