diff options
author | Pedro Algarvio <pedro@algarvio.me> | 2012-02-19 19:03:16 +0100 |
---|---|---|
committer | Pedro Algarvio <pedro@algarvio.me> | 2012-02-19 19:03:16 +0100 |
commit | 5ec0bdf997242875927d708f18bfa9c3264922cf (patch) | |
tree | 89afa86a069cfabc8fdd7fa2b9c527d96edb8d2f | |
parent | Fix truncated file handling on RealDebrid. (diff) | |
download | pyload-5ec0bdf997242875927d708f18bfa9c3264922cf.tar.xz |
Single "if" check instead of two.
-rw-r--r-- | module/plugins/hoster/RealdebridCom.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py index 9f0f04a2b..2bb709422 100644 --- a/module/plugins/hoster/RealdebridCom.py +++ b/module/plugins/hoster/RealdebridCom.py @@ -25,7 +25,7 @@ class RealdebridCom(Hoster): name = unquote(url.rsplit("/", 1)[1])
except IndexError:
name = "Unknown_Filename..."
- if name.endswith("...") or name.endswith('..'): #incomplete filename, append random stuff
+ if name.endswith(".."): #incomplete filename, append random stuff
name += "%s.tmp" % randrange(100,999)
return name
|