diff options
Diffstat (limited to 'src/modules')
-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'] |