summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Pedro Algarvio <pedro@algarvio.me> 2012-02-19 19:03:16 +0100
committerGravatar Pedro Algarvio <pedro@algarvio.me> 2012-02-19 19:03:16 +0100
commit5ec0bdf997242875927d708f18bfa9c3264922cf (patch)
tree89afa86a069cfabc8fdd7fa2b9c527d96edb8d2f /module
parentFix truncated file handling on RealDebrid. (diff)
downloadpyload-5ec0bdf997242875927d708f18bfa9c3264922cf.tar.xz
Single "if" check instead of two.
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/RealdebridCom.py2
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