From 062e36744ae27b4cae5254518a0ef2e285735742 Mon Sep 17 00:00:00 2001 From: mdway Date: Sun, 1 Oct 2017 19:19:55 +0200 Subject: mini --- src/modules/youtube.py | 1 - 1 file changed, 1 deletion(-) (limited to 'src/modules') 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[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'] -- cgit