From c9e7d64ef066f865712e2f47866b8e8d9a670158 Mon Sep 17 00:00:00 2001 From: pluja Date: Mon, 17 Aug 2020 11:18:00 +0200 Subject: [PATCH] Fix issue with video playing --- app/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index 6a256cf..f831d44 100644 --- a/app/routes.py +++ b/app/routes.py @@ -290,7 +290,7 @@ def ytunfollow(channelId): def watch(): id = request.args.get('v', None) ydl = YoutubeDL() - data = ydl.extract_info("{id}".format(id=id), download=False, quiet=True) + data = ydl.extract_info("{id}".format(id=id), download=False) if data['formats'][-1]['url'].find("manifest.googlevideo") > 0: flash("Livestreams are not yet supported!") return redirect(url_for('youtube')) @@ -313,7 +313,7 @@ def stream(): id = request.args.get('v', None) if(id): ydl = YoutubeDL() - data = ydl.extract_info("{id}".format(id=id), download=False, quiet=True) + data = ydl.extract_info("{id}".format(id=id), download=False) req = requests.get(data['formats'][-1]['url'], stream = True) return Response(stream_with_context(req.iter_content(chunk_size=1024)), content_type = req.headers['content-type']) else: