mirror of
https://github.com/anxdpanic/plugin.video.youtube.git
synced 2025-12-06 02:30:50 -08:00
Fix stream quality comparison to quality selections
Iterating over dict in insertion order only available in Python 3.7+
This commit is contained in:
parent
995a4ee068
commit
0d8e1abfb5
1 changed files with 4 additions and 1 deletions
|
|
@ -242,7 +242,10 @@ class AbstractSettings(object):
|
|||
if not self.use_mpd_videos():
|
||||
return []
|
||||
selected = self.get_int(SETTINGS.MPD_QUALITY_SELECTION, 4)
|
||||
return [quality for key, quality in self._QUALITY_SELECTIONS.items()
|
||||
return [quality
|
||||
for key, quality in sorted(
|
||||
self._QUALITY_SELECTIONS.items(), reverse=True
|
||||
)
|
||||
if selected >= key]
|
||||
|
||||
def stream_features(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue