[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:
Mike Fährmann
2025-10-08 23:17:16 +02:00
parent c723eefcf5
commit 5545a0e8e6
2 changed files with 37 additions and 1 deletions

View File

@@ -62,6 +62,42 @@ __tests__ = (
),
},
{
"#url" : "https://fansly.com/post/831751284628414464",
"#comment" : "video - best format is non-manifest",
"#class" : fansly.FanslyPostExtractor,
"#pattern" : r"https://cdn\d+.fansly.com/788576864472932352/831751193247105025.mp4\?.+",
"content" : "off duty miyabi (⸝⸝> ω <⸝⸝)",
"date" : "dt:2025-10-07 01:08:38",
"expiresAt" : None,
"extension" : "mp4",
"filename" : "831751193247105025",
"id" : "831751284628414464",
"file" : {
"accountId" : "788576864472932352",
"createdAt" : 1759799297,
"date" : "dt:2025-10-07 01:08:17",
"date_updated" : "dt:2025-10-07 01:08:26",
"duration" : 12.376667,
"flags" : 6,
"format" : 2,
"frameRate" : 30.05,
"height" : 590,
"id" : "831751193247105025",
"location" : "/788576864472932352/831751193247105025.mp4",
"mimetype" : "video/mp4",
"originalHeight": 590,
"originalWidth" : 786,
"resolutionMode": 1,
"status" : 1,
"type" : "video",
"updatedAt" : 1759799306,
"variantHash" : {},
"width" : 786,
},
},
{
"#url" : "https://fansly.com/Oliviaus/posts",
"#class" : fansly.FanslyCreatorPostsExtractor,