summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/UnrestrictLi.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-16 14:57:35 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-16 14:57:35 +0100
commitd4b3941f2a494eb42a7d80ef825a57ad083ce29e (patch)
tree501efd1824484f031a8a48175d753a813e13029c /module/plugins/hoster/UnrestrictLi.py
parent[UnrestrictLi] Fix secondsToMidnight on python 2.5 & 2.6 (diff)
downloadpyload-d4b3941f2a494eb42a7d80ef825a57ad083ce29e.tar.xz
[UnrestrictLi] Fix secondsToMidnight on python 2.5 & 2.6 (2)
Diffstat (limited to 'module/plugins/hoster/UnrestrictLi.py')
-rw-r--r--module/plugins/hoster/UnrestrictLi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/UnrestrictLi.py b/module/plugins/hoster/UnrestrictLi.py
index 615409dab..d5c3ddc15 100644
--- a/module/plugins/hoster/UnrestrictLi.py
+++ b/module/plugins/hoster/UnrestrictLi.py
@@ -16,10 +16,10 @@ def secondsToMidnight(gmt=0):
else:
midnight = now + timedelta(days=1)
- dt = midnight.replace(hour=0, minute=10, second=0, microsecond=0) - now
+ td = midnight.replace(hour=0, minute=10, second=0, microsecond=0) - now
- if hasattr(dt, 'total_seconds'):
- res = dt.total_seconds()
+ if hasattr(td, 'total_seconds'):
+ res = td.total_seconds()
else:
res = (td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) / 10**6
@@ -29,7 +29,7 @@ def secondsToMidnight(gmt=0):
class UnrestrictLi(Hoster):
__name__ = "UnrestrictLi"
__type__ = "hoster"
- __version__ = "0.13"
+ __version__ = "0.14"
__pattern__ = r'https?://(?:[^/]*\.)?(unrestrict|unr)\.li'