diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-12-29 21:07:28 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-12-29 21:07:28 +0100 |
commit | 8318540e162cccbb049bebebc5aca03384a1e4e9 (patch) | |
tree | 5b4dc38520a82b5c8044a026ab996be1d71a782e /pyload/plugins/hoster | |
parent | added auth to request class (diff) | |
download | pyload-8318540e162cccbb049bebebc5aca03384a1e4e9.tar.xz |
added progress type enum, new DebugCrypter + Hoster, little improvements for crypter api
Diffstat (limited to 'pyload/plugins/hoster')
-rw-r--r-- | pyload/plugins/hoster/DebugHoster.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pyload/plugins/hoster/DebugHoster.py b/pyload/plugins/hoster/DebugHoster.py new file mode 100644 index 000000000..d168ad1c2 --- /dev/null +++ b/pyload/plugins/hoster/DebugHoster.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- + +from time import sleep +from random import randint + +from pyload.Api import LinkStatus, DownloadStatus as DS +from pyload.plugins.Hoster import Hoster + + +class DebugHoster(Hoster): + """ Generates link used by debug hoster to test the decrypt mechanism """ + + __version__ = 0.1 + __pattern__ = r"^debug_hoster=\d*$" + + @classmethod + def getInfo(cls, urls): + for url in urls: + yield LinkStatus(url, url + " - checked", randint(1024, 2048), DS.Online) + sleep(1) + + def process(self, pyfile): + pass + + + + + + + |