Skip to content

Commit

Permalink
- keeping up with eaf-base-api
Browse files Browse the repository at this point in the history
  • Loading branch information
EchterAlsFake committed Jul 5, 2024
1 parent 60d136e commit 9089183
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion xnxx_api/xnxx_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 9089183

Please sign in to comment.