diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-07-15 16:27:44 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-15 16:27:44 +0200 |
commit | 8e47b0de30a25d0fd5dfb518bfe4e1e7beff93fd (patch) | |
tree | 518c204aa8edbc8b0d33fe1aaa614e539438fae9 /module/plugins/crypter/DailymotionBatch.py | |
parent | Prefer single quote for dict key name (diff) | |
download | pyload-8e47b0de30a25d0fd5dfb518bfe4e1e7beff93fd.tar.xz |
Key attributes cleanup for account, container and crypter plugins
Diffstat (limited to 'module/plugins/crypter/DailymotionBatch.py')
-rw-r--r-- | module/plugins/crypter/DailymotionBatch.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/crypter/DailymotionBatch.py b/module/plugins/crypter/DailymotionBatch.py index d9309af90..c86c966d8 100644 --- a/module/plugins/crypter/DailymotionBatch.py +++ b/module/plugins/crypter/DailymotionBatch.py @@ -25,13 +25,16 @@ from module.utils import save_join class DailymotionBatch(Crypter): __name__ = "DailymotionBatch" + __version__ = "0.01" __type__ = "crypter" + __pattern__ = r'https?://(?:www\.)?dailymotion\.com/((playlists/)?(?P<TYPE>playlist|user)/)?(?P<ID>[\w^_]+)(?(TYPE)|#)' - __version__ = "0.01" + __description__ = """Dailymotion.com channel & playlist decrypter""" __author_name__ = "Walter Purcaro" __author_mail__ = "vuolter@gmail.com" + def api_response(self, ref, req=None): url = urljoin("https://api.dailymotion.com/", ref) page = self.load(url, get=req) |