Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it faster #106

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Make it faster #106

wants to merge 9 commits into from

Conversation

ebb-earl-co
Copy link
Owner

This pull request attempts to change the fundamental library of the project, requests, to something faster, addressing #97

* Refactor to use httpx instead of Requests/Niquests

* Fix video.py and hls.py handling of M3U8 manifests

* Fix bug in hls.variant_streams()
@ebb-earl-co ebb-earl-co added enhancement New feature or request python Pull requests that update Python code labels Mar 13, 2024
@ebb-earl-co ebb-earl-co self-assigned this Mar 13, 2024
@ebb-earl-co ebb-earl-co changed the base branch from trunk to develop March 13, 2024 20:59
self.M3U8 = m3u8.load(playlist.uri)
if self.M3U8 is None or len(self.M3U8.files) == 0:
m3u8_files: List[str] = variant_streams(self.m3u8, client, return_urls=True)
if not all(file.startswith("http://vmz-ad-cf.video.tidal.com") for file in m3u8_files):

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

The string
http://vmz-ad-cf.video.tidal.com
may be at an arbitrary position in the sanitized URL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant