This commit is contained in:
Jesús
2021-08-03 17:18:39 -05:00
parent 7dd3c4304d
commit c62293c5cb

View File

@@ -8,7 +8,6 @@ from flask import request
import flask import flask
import json import json
import html
import gevent import gevent
import os import os
import math import math
@@ -39,8 +38,7 @@ def get_video_sources(info):
'width': fmt['width'], '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) video_sources.sort(key=lambda source: source['quality'], reverse=True)
return video_sources return video_sources