iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.46k stars 1.85k forks source link

Channels: Fix "Youtube API returned error 400" #5059

Closed SamantazFox closed 2 weeks ago

SamantazFox commented 2 weeks ago

Closes #4029 Closes #5021 Closes #5029

Requires #5027 to be merged first. Does NOT address #4477

This PR also adds sort option for shorts.

SamantazFox commented 2 weeks ago

Videos and livestreams work, but the rest is still broken. No error, though, that's progress!

Despernal commented 2 weeks ago

I can validate this does fix the issue with both subscriptions and livestreams showing now and applying the patch below in issue 4975

4975

which i know is a temp solution makes master branch work again for me.

I have a private instance on a residential ip.

I appreciate the hard work

iBicha commented 2 weeks ago

Videos and livestreams work, but the rest is still broken. No error, though, that's progress!

Looks to me like there's some parser work to do. E.g. on the response for channel shorts, I see the shorts are under onResponseReceivedActions[1].reloadContinuationItemsCommand.continuationItems[i].richItemRenderer.content.shortsLockupViewModel

Fijxu commented 2 weeks ago

For now, this works well: https://inv.nadeko.net/channel/UC6nSFpj9HTCZ5t-N3Rm3-HA https://git.nadeko.net/Fijxu/invidious/commits/branch/master

SamantazFox commented 2 weeks ago

Looks to me like there's some parser work to do.

@iBicha Yes, I realized that late yesterday, but I had to go to sleep x) I've added a commit for podcasts this morning, and I'm currently working on the shorts.

SamantazFox commented 2 weeks ago

Deployed on the test instance!

Working so far:

SamantazFox commented 2 weeks ago

Deployed on the test instance!

Working so far:

mtarnawa commented 2 weeks ago

@SamantazFox - I also tested your changes and everything seems to be working fine again, thanks so much, keeping fingers crossed this gets merged soon.

On a side note - what's the issue with playlists? I haven't noticed any problems.

SamantazFox commented 2 weeks ago

Here is my problem! image

SamantazFox commented 2 weeks ago

@syeopite It might be a good idea to add a verified field to that AuthorFallback structure, as these new lockupViewModel and shortLockupViewModel are very empty: I had to stub the author_verified field to false.

UltraBlackLinux commented 2 weeks ago

I just pulled this commit and it doesn't seem to be solving the issue unfortunately

cephi-sui commented 2 weeks ago

I just pulled this commit and it doesn't seem to be solving the issue unfortunately

I just pulled the master container and this does seem to work on my end.

UltraBlackLinux commented 2 weeks ago

oop forgot to update my comment here: I pulled the master changes and continued to use the pre-built container from quay... Don't ask me what went through my head there