summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-22 02:48:21 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-22 02:48:21 +0200
commit794ae063250c10a77b460f07e39c9c95c44f59bd (patch)
treee7cbaeadced9538f8bc1d8a011a5be7b99cdc1ec
parentNew account: OpenloadCo (diff)
downloadpyload-794ae063250c10a77b460f07e39c9c95c44f59bd.tar.xz
[SimpleHoster] Fix http://forum.pyload.org/viewtopic.php?f=12&t=4637
-rw-r--r--module/plugins/internal/SimpleHoster.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index bb43779b0..75a496f65 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -17,8 +17,8 @@ from module.plugins.internal.utils import (encode, fixup, parse_name, parse_size
class SimpleHoster(Hoster):
__name__ = "SimpleHoster"
__type__ = "hoster"
- __version__ = "2.03"
- __status__ = "testing"
+ __version__ = "2.04"
+ __status__ = "stable"
__pattern__ = r'^unmatchable$'
__config__ = [("activated" , "bool", "Activated" , True),
@@ -96,7 +96,7 @@ class SimpleHoster(Hoster):
CHECK_FILE = True #: Set to False to not check the last downloaded file with declared error patterns
CHECK_TRAFFIC = False #: Set to True to reload checking traffic left for premium account
COOKIES = True #: or False or list of tuples [(domain, name, value)]
- DIRECT_LINK = None #: Set to True to looking for direct link (as defined in handle_direct method), set to None to do it if self.account is True else False
+ DIRECT_LINK = True #: Set to True to looking for direct link (as defined in handle_direct method), set to None to do it if self.account is True else False
DISPOSITION = True #: Set to True to use any content-disposition value in http header as file name
LOGIN_ACCOUNT = False #: Set to True to require account login
LOGIN_PREMIUM = False #: Set to True to require premium account login
@@ -229,6 +229,7 @@ class SimpleHoster(Hoster):
elif self.DIRECT_LINK is None:
self.direct_dl = bool(self.account)
+
else:
self.direct_dl = self.DIRECT_LINK