diff --git a/setup.py b/setup.py index 4fdfa83..fad4890 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="xnxx_api", - version="1.4", + version="1.4.1", packages=find_packages(), install_requires=[ "requests", "bs4", "lxml", "ffmpeg-progress-yield", "eaf_base_api" diff --git a/xnxx_api/xnxx_api.py b/xnxx_api/xnxx_api.py index a7e49cc..0e82acf 100644 --- a/xnxx_api/xnxx_api.py +++ b/xnxx_api/xnxx_api.py @@ -17,6 +17,8 @@ from base_api.base import Core, Quality from base_api.modules.progress_bars import Callback +base_qualities = ["250p", "360p", "480p", "720p", "1080p", "1440p", "2160p"] + class Video: def __init__(self, url): @@ -85,7 +87,8 @@ def m3u8_base_url(self): def get_segments(self, quality): quality = Core().fix_quality(quality) - segments = Core().get_segments(quality=quality, m3u8_base_url=self.m3u8_base_url) + segments = Core().get_segments(quality=quality, m3u8_base_url=self.m3u8_base_url, base_qualities=base_qualities, + seperator="-") return segments def download(self, quality, path, downloader, callback=Callback.text_progress_bar):