summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/XHamsterCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-25 01:11:29 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-25 01:17:03 +0200
commit4da90891eb2544ac15a7d512aba8cb357f68ee5f (patch)
tree84eec3f9f27a880df052da43fb3a6a8112b39c24 /module/plugins/hoster/XHamsterCom.py
parentFix and improve plugins logging (diff)
downloadpyload-4da90891eb2544ac15a7d512aba8cb357f68ee5f.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hoster/XHamsterCom.py')
-rw-r--r--module/plugins/hoster/XHamsterCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/XHamsterCom.py b/module/plugins/hoster/XHamsterCom.py
index 7257b2988..9b97b5e94 100644
--- a/module/plugins/hoster/XHamsterCom.py
+++ b/module/plugins/hoster/XHamsterCom.py
@@ -53,7 +53,7 @@ class XHamsterCom(Hoster):
if not self.html:
self.download_html()
- flashvar_pattern = re.compile('flashvars = ({.*?});', re.DOTALL)
+ flashvar_pattern = re.compile('flashvars = ({.*?});', re.S)
json_flashvar = flashvar_pattern.search(self.html)
if not json_flashvar:
@@ -80,7 +80,7 @@ class XHamsterCom(Hoster):
self.fail("Parse error (file_url)")
file_url = file_url.group(1)
long_url = srv_url + file_url
- self.logDebug("long_url: %s" % long_url)
+ self.logDebug("long_url = " + long_url)
else:
if flashvars['file']:
file_url = unquote(flashvars['file'])
@@ -89,10 +89,10 @@ class XHamsterCom(Hoster):
if url_mode == '3':
long_url = file_url
- self.logDebug("long_url: %s" % long_url)
+ self.logDebug("long_url = " + long_url)
else:
long_url = srv_url + "key=" + file_url
- self.logDebug("long_url: %s" % long_url)
+ self.logDebug("long_url = " + long_url)
return long_url