diff options
| author | 2013-09-09 15:23:17 +0200 | |
|---|---|---|
| committer | 2013-09-09 15:23:17 +0200 | |
| commit | 600ff894626c9664d7385aca9eb9326511dfb846 (patch) | |
| tree | 1a4324f519c9fd93bba01c197f4b2bd223a0fb65 /module | |
| parent | FastshareCz: Fixed #253 (diff) | |
| download | pyload-600ff894626c9664d7385aca9eb9326511dfb846.tar.xz | |
NetloadIn: Applied change proposed in #252
Diffstat (limited to 'module')
| -rw-r--r-- | module/plugins/hoster/NetloadIn.py | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/module/plugins/hoster/NetloadIn.py b/module/plugins/hoster/NetloadIn.py index d150443f0..6a9ecaccc 100644 --- a/module/plugins/hoster/NetloadIn.py +++ b/module/plugins/hoster/NetloadIn.py @@ -53,7 +53,7 @@ class NetloadIn(Hoster):      __name__ = "NetloadIn"      __type__ = "hoster"      __pattern__ = r"https?://.*netload\.in/(?:datei(.*?)(?:\.htm|/)|index.php?id=10&file_id=)" -    __version__ = "0.44" +    __version__ = "0.45"      __description__ = """Netload.in Download Hoster"""      __author_name__ = ("spoob", "RaNaN", "Gregy")      __author_mail__ = ("spoob@pyload.org", "ranan@pyload.org", "gregy@gregy.cz") @@ -79,7 +79,12 @@ class NetloadIn(Hoster):          if self.premium:              self.logDebug("Netload: Use Premium Account") -            return True +            settings = self.load("http://www.netload.in/index.php?id=2&lang=en") +            if '<option value="2" selected="selected">Direkter Download' in settings: +                self.logDebug("Using direct download") +                return True +            else: +                self.logDebug("Direct downloads not enabled. Parsing html for a download URL")          if self.download_html():              return True | 
