Skip to content

Conversation

Fijxu
Copy link
Member

@Fijxu Fijxu commented Jun 12, 2025

@unixfox
Copy link
Member

unixfox commented Jun 12, 2025

IMO it's better to create just one PR instead of two.

@syeopite syeopite added ready and removed ready labels Jun 12, 2025
Copy link
Member

@syeopite syeopite left a 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

if player_fallback_response.dig?("streamingData", "adaptiveFormats", 0, "url")

@Fijxu
Copy link
Member Author

Fijxu commented Jun 12, 2025

You're right. I'll fix it and test it later.

@Fijxu Fijxu force-pushed the fallback-to-tvsimply branch from 08f9169 to 0c96e09 Compare June 12, 2025 20:08
@Fijxu
Copy link
Member Author

Fijxu commented Jun 12, 2025

I wasn't able to test it since Innertube didn't return signatureCipher to me. I added https://github.com/iv-org/invidious-companion/blob/d0c4bb79ae4688d019fb281257859e334adb7d8b/src/lib/helpers/youtubePlayerReq.ts#L92 to companion because when I was working on it, I got signatureCipher but not url.

Maybe we should really add some mocks, test data and crystal tests :/

@syeopite
Copy link
Member

syeopite commented Jun 12, 2025

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 iv-org/mocks with the mock json for this, pull the latest version of the submodule in the invidious repo, and then finally add a test for it here.

@Fijxu Fijxu force-pushed the fallback-to-tvsimply branch from 018b666 to cf0a68b Compare June 15, 2025 21:43
@Fijxu
Copy link
Member Author

Fijxu commented Jun 15, 2025

I have taken the opportunity to remove the TV fallback here because of iv-org/invidious-companion#157
TvSimply works fine enough on my instance (https://inv.nadeko.net)

@syeopite syeopite added the ready label Aug 23, 2025
@syeopite syeopite changed the title Add fallback to TvSimply client Videos: Add fallback to TvSimply client Aug 23, 2025
@syeopite
Copy link
Member

Merged with 0308acb

I'm not sure why Github's UI isn't marking this as merged.

@syeopite syeopite closed this Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants