aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-08-03 17:18:39 -0500
committerJesús <heckyel@hyperbola.info>2021-08-03 17:18:39 -0500
commitc62293c5cbc2305c1969572661546e1c351558ce (patch)
tree5c7a8d8d40fc7529ee219a7b87fcd8df0155d6e2 /youtube/watch.py
parent7dd3c4304d2c89868bd10198777ca5c9ef44f78b (diff)
downloadyt-local-c62293c5cbc2305c1969572661546e1c351558ce.tar.lz
yt-local-c62293c5cbc2305c1969572661546e1c351558ce.tar.xz
yt-local-c62293c5cbc2305c1969572661546e1c351558ce.zip
pep 8
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index f710134..ce1637b 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -8,7 +8,6 @@ from flask import request
import flask
import json
-import html
import gevent
import os
import math
@@ -39,8 +38,7 @@ def get_video_sources(info):
'width': fmt['width'],
})
- #### order the videos sources so the preferred resolution is first ###
-
+ # order the videos sources so the preferred resolution is first #
video_sources.sort(key=lambda source: source['quality'], reverse=True)
return video_sources