summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormdway <romangraef@gmail.com>2017-10-01 19:19:55 +0200
committermdway <romangraef@gmail.com>2017-10-01 19:19:55 +0200
commit062e36744ae27b4cae5254518a0ef2e285735742 (patch)
treef124b7fdb696c15fd63a9df978f9d3fe8d68bf27 /src
parentc40b942b0545ec20f6bf4921e4a460c405732ab5 (diff)
downloadPostfix-Bot-master.tar.gz
Postfix-Bot-master.tar.bz2
Postfix-Bot-master.zip
Diffstat (limited to 'src')
-rw-r--r--src/modules/youtube.py1
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']