Skip to content

Detect and identify videos restricted to channel members and add settings to exclude them#5222

Open
syeopite wants to merge 5 commits intoiv-org:masterfrom
syeopite:members-only
Open

Detect and identify videos restricted to channel members and add settings to exclude them#5222
syeopite wants to merge 5 commits intoiv-org:masterfrom
syeopite:members-only

Conversation

@syeopite
Copy link
Copy Markdown
Member

@syeopite syeopite commented Mar 26, 2025

Closes #5213

@syeopite syeopite requested review from a team and SamantazFox as code owners March 26, 2025 22:18
@efb4f5ff-1298-471a-8973-3d47447115dc
Copy link
Copy Markdown
Contributor

@syeopite syeopite changed the title Add badge for channel-only videos and settings to exclude them Detect and identify videos restricted to channel members and add settings to exclude them Apr 21, 2025
@syeopite
Copy link
Copy Markdown
Member Author

Thanks!

property vr_mode : Bool = true
property show_nick : Bool = true
property save_player_pos : Bool = false
property exclude_members_only_videos : Bool = false
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Should we exclude the channel only videos by default?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Honnestly, I don't see a reason to show member-only videos, as Invidious users can't watch them anyway. We always create a dedicated channel page/place for the various "special" playlists (UUMO and co).

property vr_mode : Bool = true
property show_nick : Bool = true
property save_player_pos : Bool = false
property exclude_members_only_videos : Bool = false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Honnestly, I don't see a reason to show member-only videos, as Invidious users can't watch them anyway. We always create a dedicated channel page/place for the various "special" playlists (UUMO and co).


<div class="pure-g">
<% trending.each do |item| %>
<% next %>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I suppose this is a leftover from something else?

Comment on lines +208 to +213
<% if item.badges.members_only? %>
<span><i class="icon ion ion-md-lock"></i><%=translate(locale, "video_badges_members_only")%></span>
<% end %>
<% if item.badges.members_first? %>
<span><i class="icon ion ion-md-lock"></i><%=translate(locale, "video_badges_members_first")%></span>
<% end %>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What do you think about putting the lock icon before the title?

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.

[Feature request] Members-only content always shown on channel pages

4 participants