diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-04-11 12:26:05 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-04-11 12:26:05 +0200 |
commit | 4d978dedd16418a4e7d8c81bd819a6a5fa432057 (patch) | |
tree | a347dae567c7e254b41df58e029f7bccfd5603a8 /module/plugins/hoster/BitshareCom.py | |
parent | Fix __pattern__ www (diff) | |
download | pyload-4d978dedd16418a4e7d8c81bd819a6a5fa432057.tar.xz |
Use pyfile instead self.pyfile
Merges vuolter/pyload@b7f6e2e
Diffstat (limited to 'module/plugins/hoster/BitshareCom.py')
-rw-r--r-- | module/plugins/hoster/BitshareCom.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/BitshareCom.py b/module/plugins/hoster/BitshareCom.py index 82a1dcfab..6c9d3a6ef 100644 --- a/module/plugins/hoster/BitshareCom.py +++ b/module/plugins/hoster/BitshareCom.py @@ -36,12 +36,12 @@ class BitshareCom(SimpleHoster): self.pyfile = pyfile # File id - m = re.match(self.__pattern__, self.pyfile.url) + m = re.match(self.__pattern__, pyfile.url) self.file_id = max(m.group('id1'), m.group('id2')) self.logDebug("File id is [%s]" % self.file_id) # Load main page - self.html = self.load(self.pyfile.url, ref=False, decode=True) + self.html = self.load(pyfile.url, ref=False, decode=True) # Check offline if re.search(self.FILE_OFFLINE_PATTERN, self.html): @@ -55,11 +55,11 @@ class BitshareCom(SimpleHoster): self.retry() # File name - m = re.match(self.__pattern__, self.pyfile.url) + m = re.match(self.__pattern__, pyfile.url) name1 = m.group('name') if m else None m = re.search(self.FILE_INFO_PATTERN, self.html) name2 = m.group('N') if m else None - self.pyfile.name = max(name1, name2) + pyfile.name = max(name1, name2) # Ajax file id self.ajaxid = re.search(self.FILE_AJAXID_PATTERN, self.html).group(1) |