diff options
author | mdway <romangraef@gmail.com> | 2017-10-01 19:19:55 +0200 |
---|---|---|
committer | mdway <romangraef@gmail.com> | 2017-10-01 19:19:55 +0200 |
commit | 062e36744ae27b4cae5254518a0ef2e285735742 (patch) | |
tree | f124b7fdb696c15fd63a9df978f9d3fe8d68bf27 /src/modules/youtube.py | |
parent | c40b942b0545ec20f6bf4921e4a460c405732ab5 (diff) | |
download | Postfix-Bot-062e36744ae27b4cae5254518a0ef2e285735742.tar.gz Postfix-Bot-062e36744ae27b4cae5254518a0ef2e285735742.tar.bz2 Postfix-Bot-062e36744ae27b4cae5254518a0ef2e285735742.zip |
Diffstat (limited to 'src/modules/youtube.py')
-rw-r--r-- | src/modules/youtube.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/modules/youtube.py b/src/modules/youtube.py index 916ef79..fd92059 100644 --- a/src/modules/youtube.py +++ b/src/modules/youtube.py @@ -32,7 +32,6 @@ def get_youtube_info(args, author, channel, message): regex = re.compile(r"^https?://(www\.)?(youtube\.com/watch/?\?v=|youtu\.be/)(?P<id>[a-z\-_0-9]+)$", re.IGNORECASE) id = regex.search(args[0]).group("id") json_data = requests.get(YOUTUBE_VIDEOS_LIST.format(id)).json() - print(json_data) entry = json_data['items'][0] content_details = entry['contentDetails'] statistics = entry['statistics'] |