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

feat: display full video sponsorblock categories #6725

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

FineFindus
Copy link
Contributor

Displays the full SponsorBlock categories as a chip below the video, similar to how the web version works

Fully sponsored video
Exclusive access video

@FineFindus
Copy link
Contributor Author

Maybe it would be better to move the badge into the same line as the title? Having it above leaves a lot of empty space.

Badge inline with video title

@Bnyro
Copy link
Member

Bnyro commented Nov 17, 2024

Maybe it would be better to move the badge into the same line as the title? Having it above leaves a lot of empty space.

None of it is a perfect solution, but I'd personally prefer having the badge on a different line than the title.

We can decrease the padding between the video and the title though if the badge is visible, so that it's at least taking a little bit less total space.

@FineFindus FineFindus force-pushed the feat/sponsorblock-full branch from 5052c5c to e87b0ab Compare November 17, 2024 18:32
@Bnyro
Copy link
Member

Bnyro commented Nov 17, 2024

Last but not least, please add a preference at https://github.com/libre-tube/LibreTube/blob/master/app/src/main/res/xml/sponsorblock_settings.xml to allow users to toggle displaying the sponsor categories (can be enabled by default).

Apart from the other comment above, lgtm.

@FineFindus
Copy link
Contributor Author

FineFindus commented Nov 17, 2024

I'm not a fan of adding new preferences, could we use the existing sponsor category (or even SponsorBlock being enabled all together) for it? I think it already covers use case of not wishing to see the sponsor hints.

@Bnyro
Copy link
Member

Bnyro commented Nov 17, 2024

I'm not a fan of adding new preferences

I agree with this generally, I'm not too sure about it because it's quite a big chip there above the title that not everybody might be comfortable with.

If we find a better way to display it (e.g. collapsed by default in the description layout), we definitely won't need a new preference.

@FineFindus FineFindus force-pushed the feat/sponsorblock-full branch from e87b0ab to 0c5c020 Compare November 17, 2024 20:19
@FineFindus
Copy link
Contributor Author

If we find a better way to display it (e.g. collapsed by default in the description layout), we definitely won't need a new preference.

I was thinking about doing that, but I feel like it would defeat the purpose, since a user is unlikely to look in the description, and atleast the sponsor badge is something that should be very visible

@Bnyro
Copy link
Member

Bnyro commented Nov 18, 2024

Sorry for the conflicts, I refactored the app to use the MediaLibraryService to unify a lot of logic and improve the stability of the background playback.

@FineFindus FineFindus force-pushed the feat/sponsorblock-full branch 2 times, most recently from 85def86 to b1e9ccc Compare November 18, 2024 18:03
@Bnyro
Copy link
Member

Bnyro commented Nov 18, 2024

@FineFindus FineFindus force-pushed the feat/sponsorblock-full branch from b1e9ccc to 1e4958b Compare November 18, 2024 18:14
Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

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

Thanks!

@Bnyro Bnyro merged commit 56d01f8 into libre-tube:master Nov 18, 2024
3 checks passed
@FineFindus FineFindus deleted the feat/sponsorblock-full branch November 18, 2024 21:01
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