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

Check if width and height is digit if it's an str #100

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Check if width and height is digit if it's an str #100

merged 2 commits into from
Apr 16, 2024

Conversation

retouching
Copy link
Contributor

Sometimes, height or width can be get as string (tested on a DASH stream)

image

The idea is just to check if is digit to avoid this problem

retouching and others added 2 commits April 16, 2024 05:33
We simply check the type near the top of the constructor, and later in the code it casts to int and handles failures there too (e.g., if the str is not a number, it will be handled).
@rlaphoenix rlaphoenix merged commit 3abb869 into devine-dl:master Apr 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants