summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Hoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-01 23:21:14 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-01 23:21:14 +0200
commitab3c90a7b0d18f47d3efc8259906895c1f50765d (patch)
treeec3cde40c03e1c771d026ba2d4917f4229a31dcc /module/plugins/internal/Hoster.py
parentMerge pull request #1902 from GammaC0de/patch-3 (diff)
downloadpyload-ab3c90a7b0d18f47d3efc8259906895c1f50765d.tar.xz
Fixpack (1)
Diffstat (limited to 'module/plugins/internal/Hoster.py')
-rw-r--r--module/plugins/internal/Hoster.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py
index d1b894c6f..cb7b215ba 100644
--- a/module/plugins/internal/Hoster.py
+++ b/module/plugins/internal/Hoster.py
@@ -4,22 +4,15 @@ from __future__ import with_statement
import os
-from module.plugins.internal.Base import Base, check_abort, create_getInfo, getInfo
+from module.plugins.internal.Base import Base, check_abort, create_getInfo, getInfo, parse_fileInfo
from module.plugins.internal.Plugin import Fail, Retry, encode, exists, fixurl, parse_name
from module.utils import fs_decode, fs_encode, save_join as fs_join, save_path as safe_filename
-#@TODO: Remove in 0.4.10
-def parse_fileInfo(klass, url="", html=""):
- info = klass.get_info(url, html)
- return encode(info['name']), info['size'], info['status'], info['url']
-
-
-
class Hoster(Base):
__name__ = "Hoster"
__type__ = "hoster"
- __version__ = "0.32"
+ __version__ = "0.33"
__status__ = "testing"
__pattern__ = r'^unmatchable$'
@@ -33,7 +26,7 @@ class Hoster(Base):
def __init__(self, pyfile):
- super(Base, self).__init__(pyfile)
+ super(Hoster, self).__init__(pyfile)
#: Enable simultaneous processing of multiple downloads
self.limitDL = 0 #@TODO: Change to `limit_dl` in 0.4.10
@@ -52,7 +45,7 @@ class Hoster(Base):
def _setup(self):
- super(Base, self)._setup()
+ super(Hoster, self)._setup()
self.last_download = None
self.last_check = None
@@ -64,7 +57,7 @@ class Hoster(Base):
self.account = False
self.user = None #@TODO: Remove in 0.4.10
else:
- super(Base, self).load_account()
+ super(Hoster, self).load_account()
# self.rst_free = False