Compare commits
No commits in common. "bc7989556f5e500074ae1ef95f3f9799dcaa1c27" and "fab61b49ed2afea55533f56a41491605b4de4145" have entirely different histories.
bc7989556f
...
fab61b49ed
|
@ -43,9 +43,6 @@ def bot():
|
||||||
f'https://www.youtube.com/results?search_query={search_term}')
|
f'https://www.youtube.com/results?search_query={search_term}')
|
||||||
video_ids = re.findall(r'watch\?v=([^"]{11})"', query.text)
|
video_ids = re.findall(r'watch\?v=([^"]{11})"', query.text)
|
||||||
|
|
||||||
LOGGER.info("%s: got %d videos (%d new)", search_term,
|
|
||||||
len(video_ids), len(set(video_ids) - seen_vids))
|
|
||||||
|
|
||||||
if query.status_code != 200 or not video_ids:
|
if query.status_code != 200 or not video_ids:
|
||||||
LOGGER.warning("YouTube search %s returned %d",
|
LOGGER.warning("YouTube search %s returned %d",
|
||||||
query.url, query.status_code)
|
query.url, query.status_code)
|
||||||
|
|
Loading…
Reference in New Issue