From 0c6d0986e4ce570359f7970f1c8880f5804dbc21 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sun, 26 Mar 2023 20:21:31 +0100 Subject: [PATCH] Remove now unused and superseded with_resolution method --- devine/core/tracks/tracks.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/devine/core/tracks/tracks.py b/devine/core/tracks/tracks.py index f2cd64b..e31884a 100644 --- a/devine/core/tracks/tracks.py +++ b/devine/core/tracks/tracks.py @@ -259,15 +259,6 @@ class Tracks: def select_subtitles(self, x: Callable[[Subtitle], bool]) -> None: self.subtitles = list(filter(x, self.subtitles)) - def with_resolution(self, resolution: int) -> None: - if resolution: - # Note: Do not merge these list comprehensions. They must be done separately so the results - # from the 16:9 canvas check is only used if there's no exact height resolution match. - videos_quality = [x for x in self.videos if x.height == resolution] - if not videos_quality: - videos_quality = [x for x in self.videos if int(x.width * (9 / 16)) == resolution] - self.videos = videos_quality - def by_resolutions(self, resolutions: list[int], per_resolution: int = 0) -> None: # Note: Do not merge these list comprehensions. They must be done separately so the results # from the 16:9 canvas check is only used if there's no exact height resolution match.