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

skip to the next video when the first one is not playable. #981

Merged
merged 1 commit into from
Feb 26, 2022

Conversation

baskwo
Copy link
Contributor

@baskwo baskwo commented Jan 28, 2022

It relates to #889.
When disableTrackSelection is true, it gets the first video.
But some times the first video in a research is age restricted or private.

So the code tries the next index when there is an exception from "client.getVideo" until it finds one OR tries the last video in the research list (It assures a "final point" to the chain).

@Hazmi35
Copy link
Owner

Hazmi35 commented Feb 26, 2022

Thank you for your contribution!

@Hazmi35 Hazmi35 merged commit 53adcc0 into Hazmi35:main Feb 26, 2022
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