Google is asking to solve a Captcha. As we don't want you to do it, we'll do it for you.
+Try again in a few seconds.
+ Click here to reload +diff --git a/app/routes.py b/app/routes.py index 034fa4a..a1f802a 100644 --- a/app/routes.py +++ b/app/routes.py @@ -464,7 +464,8 @@ def get_live_urls(urls): def watch(): id = request.args.get('v', None) info = ytwatch.extract_info(id, False, playlist_id=None, index=None) - + if info == 'Captcha': + return render_template('captcha.html', origin=request.referrer) retry = 3 while retry != 0 and info['playability_error'] == 'Could not find player': info=ytwatch.extract_info(id, False, playlist_id=None, index=None) diff --git a/app/templates/captcha.html b/app/templates/captcha.html new file mode 100644 index 0000000..9466bbb --- /dev/null +++ b/app/templates/captcha.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% block content %} + +