mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-21 18:22:30 +01:00
[boosty] update default video format list (#2387)
This commit is contained in:
parent
b321696182
commit
b92edb4614
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user