[fansly] update format selection (#4401)
https://github.com/mikf/gallery-dl/issues/4401#issuecomment-3383021221 sort by - width - HTTP (formats 0,1,2,3,4) - DASH (format 303) - HLS (format 302)
This commit is contained in:
@@ -77,7 +77,7 @@ class FanslyExtractor(Extractor):
|
||||
variants.append(media)
|
||||
|
||||
formats = [
|
||||
(type > 256, variant["width"], type, variant)
|
||||
(variant["width"], (type-500 if type > 256 else type), variant)
|
||||
for variant in variants
|
||||
if variant.get("locations") and
|
||||
(type := variant["type"]) in self.formats
|
||||
|
||||
Reference in New Issue
Block a user