1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[boosty] update default video format list (#2387)

This commit is contained in:
Mike Fährmann 2024-10-31 20:55:32 +01:00
parent b321696182
commit b92edb4614
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 32 additions and 4 deletions

View File

@ -1563,8 +1563,15 @@ Description
| If this is a ``list``, it selects which format to try to download.
| Possibly available formats are
``"quad_hd"``, ``"ultra_hd"``, ``"full_hd"``,
``"high"``, ``"medium"``, ``"low"``
* ``ultra_hd`` (2160p)
* ``quad_hd`` (1440p)
* ``full_hd`` (1080p)
* ``high`` (720p)
* ``medium`` (480p)
* ``low`` (360p)
* ``lowest`` (240p)
* ``tiny`` (144p)
extractor.bunkr.tlds

View File

@ -35,8 +35,16 @@ class BoostyExtractor(Extractor):
if isinstance(videos, str):
videos = videos.split(",")
elif not isinstance(videos, (list, tuple)):
videos = ("quad_hd", "ultra_hd", "full_hd",
"high", "medium", "low")
# ultra_hd: 2160p
# quad_hd: 1440p
# full_hd: 1080p
# high: 720p
# medium: 480p
# low: 360p
# lowest: 240p
# tiny: 144p
videos = ("ultra_hd", "quad_hd", "full_hd",
"high", "medium", "low", "lowest", "tiny")
self.videos = videos
def items(self):
@ -325,6 +333,7 @@ class BoostyAPI():
def _pagination(self, endpoint, params, transform=None, key=None):
if "is_only_allowed" not in params and self.extractor.only_allowed:
params["only_allowed"] = "true"
params["is_only_allowed"] = "true"
while True:

View File

@ -104,6 +104,18 @@ __tests__ = (
},
},
{
"#url" : "https://boosty.to/geekmedia/posts/31bb8fb6-83f1-404f-a597-f84bbe611d1d",
"#comment" : "video",
"#class" : boosty.BoostyPostExtractor,
},
{
"#url" : "https://boosty.to/xcang/posts/5d4d6f90-5d48-4442-a7e5-2164a858681d",
"#comment" : "audio",
"#class" : boosty.BoostyPostExtractor,
},
{
"#url" : "https://boosty.to/",
"#class" : boosty.BoostyFeedExtractor,