diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-12 00:10:19 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-12 00:10:19 +0200 |
commit | 83a822f35e72885e33b3606bd92eecdf284b25c0 (patch) | |
tree | 86ac3c0c5fc633728b8df35cbdefd9ed0423493d /module | |
parent | [MegaNz] Fix decryptAttr (diff) | |
download | pyload-83a822f35e72885e33b3606bd92eecdf284b25c0.tar.xz |
[YoutubeBatch] Fix API_KEY
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/crypter/YoutubeBatch.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/crypter/YoutubeBatch.py b/module/plugins/crypter/YoutubeBatch.py index 6ffb6b48e..e5fd83c4f 100644 --- a/module/plugins/crypter/YoutubeBatch.py +++ b/module/plugins/crypter/YoutubeBatch.py @@ -8,13 +8,11 @@ from module.common.json_layer import json_loads from module.plugins.Crypter import Crypter from module.utils import save_join -API_URL = "AIzaSyCKnWLNlkX-L4oD1aEzqqhRw1zczeD6_k0" - class YoutubeBatch(Crypter): __name__ = "YoutubeBatch" __type__ = "crypter" - __version__ = "1.00" + __version__ = "1.01" __pattern__ = r'https?://(?:www\.|m\.)?youtube\.com/(?P<TYPE>user|playlist|view_play_list)(/|.*?[?&](?:list|p)=)(?P<ID>[\w-]+)' __config__ = [("likes", "bool", "Grab user (channel) liked videos", False), @@ -26,8 +24,11 @@ class YoutubeBatch(Crypter): __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] + API_KEY = "AIzaSyCKnWLNlkX-L4oD1aEzqqhRw1zczeD6_k0" + + def api_response(self, ref, req): - req.update({"key": API_KEY}) + req.update({"key": self.API_KEY}) url = urljoin("https://www.googleapis.com/youtube/v3/", ref) page = self.load(url, get=req) return json_loads(page) |