From 4da90891eb2544ac15a7d512aba8cb357f68ee5f Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 25 Oct 2014 01:11:29 +0200 Subject: Spare code cosmetics --- module/plugins/accounts/FreakshareCom.py | 4 ++-- module/plugins/accounts/UploadedTo.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/accounts') diff --git a/module/plugins/accounts/FreakshareCom.py b/module/plugins/accounts/FreakshareCom.py index 2ee7a33ea..c03e2b047 100644 --- a/module/plugins/accounts/FreakshareCom.py +++ b/module/plugins/accounts/FreakshareCom.py @@ -20,12 +20,12 @@ class FreakshareCom(Account): page = req.load("http://freakshare.com/") validuntil = r'ltig bis:\s*([\d.:-]+)' - validuntil = re.search(validuntil, page, re.MULTILINE) + validuntil = re.search(validuntil, page, re.M) validuntil = validuntil.group(1).strip() validuntil = mktime(strptime(validuntil, "%d.%m.%Y - %H:%M")) traffic = r'Traffic verbleibend:\s*([^<]+)' - traffic = re.search(traffic, page, re.MULTILINE) + traffic = re.search(traffic, page, re.M) traffic = traffic.group(1).strip() traffic = self.parseTraffic(traffic) diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py index 147962838..55017eb30 100644 --- a/module/plugins/accounts/UploadedTo.py +++ b/module/plugins/accounts/UploadedTo.py @@ -24,7 +24,7 @@ class UploadedTo(Account): if premium: raw_traffic = re.search(r'([^<]+)', html).group(1).replace('.', '') - raw_valid = re.search(r"Duration:\s*([^<]+)", html, re.MULTILINE).group(1).strip() + raw_valid = re.search(r"Duration:\s*([^<]+)", html, re.M).group(1).strip() traffic = int(self.parseTraffic(raw_traffic)) -- cgit v1.2.3