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

Carry over audio-only mode in playlist links #4784

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

krystof1119
Copy link

Currently, when a video is viewed in audio-only mode (/watch?listen=1...), the 'related video' links shown on the video include listen=true in the URL parameters, but if the video was opened as part of the playlist, the links to other videos in that playlist don't include it. This PR changes it such that the links have '&listen=1' appended to them when the user is watching a video in audio-only mode.

I made the same change for mixes, and from a cursory look, it seems to me as though it's working (but I personally don't use mixes, so I can't say for sure).

@krystof1119 krystof1119 requested a review from a team as a code owner July 9, 2024 16:41
@krystof1119 krystof1119 requested review from syeopite and removed request for a team July 9, 2024 16:41
@syeopite syeopite added the need-testing This feature needs to be deployed and tested to see if it's working, and doesn't break something label Jul 9, 2024
@krystof1119 krystof1119 requested a review from syeopite July 9, 2024 18:43
@krystof1119
Copy link
Author

Sorry, misclicked and rerequested the review, didn't mean to do that.

src/invidious/routes/api/v1/misc.cr Outdated Show resolved Hide resolved
src/invidious/routes/api/v1/misc.cr Outdated Show resolved Hide resolved
@krystof1119
Copy link
Author

Sorry for the late response, time got away from me. I've incorporated the suggestion and rebased the patch onto the current version of the code.

Copy link
Member

@SamantazFox SamantazFox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two small changes to conform to the naming rules required by our linter (variable names should be written in snake_case)

src/invidious/routes/api/v1/misc.cr Outdated Show resolved Hide resolved
src/invidious/routes/api/v1/misc.cr Outdated Show resolved Hide resolved
Copy link
Member

@SamantazFox SamantazFox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made these changes for you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-testing This feature needs to be deployed and tested to see if it's working, and doesn't break something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants