-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Videos: Add fallback to TvSimply client #5345
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
Conversation
IMO it's better to create just one PR instead of two. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the condition below also needs to check for the existence of signatureCipher
invidious/src/invidious/videos/parser.cr
Line 121 in df8839d
if player_fallback_response.dig?("streamingData", "adaptiveFormats", 0, "url") |
You're right. I'll fix it and test it later. |
08f9169
to
0c96e09
Compare
I wasn't able to test it since Innertube didn't return Maybe we should really add some mocks, test data and crystal tests :/ |
Technically there already are mocks and tests, there's just not enough of it and imo the current system is confusing to understand. I don't fully understand it myself if I'm being honest but I believe you'll need to update |
018b666
to
cf0a68b
Compare
I have taken the opportunity to remove the TV fallback here because of iv-org/invidious-companion#157 |
Merged with 0308acb I'm not sure why Github's UI isn't marking this as merged. |
Depends on: #5344
Uses the same order Invidious companion uses: https://github.com/iv-org/invidious-companion/blob/d0c4bb79ae4688d019fb281257859e334adb7d8b/src/lib/helpers/youtubePlayerReq.ts#L75