mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-03-02 22:57:11 -05:00
Smarter next recommended video to play #4506
Labels
No labels
Component: Accessibility
Component: Administration
Component: Auth
Component: CLI
Component: Channels
Component: Chapters
Component: Comments
Component: Custom Markdown
Component: Docker 🐳
Component: Documentation 📚
Component: Email
Component: Embed
Component: Federation 🎡
Component: Import/Export
Component: Live
Component: Metadata
Component: Mobile
Component: Moderation :godmode:
Component: Notifications
Component: Object storage
Component: Observability
Component: PeerTube Plugin 📦
Component: Player ⏯️
Component: Playlist
Component: Recommendation
Component: Redundancy
Component: Registration
Component: Runners
Component: SEO
Component: Search
Component: Security
Component: Stats
Component: Studio
Component: Studio
Component: Subscriptions
Component: Subtitles 💬
Component: Transcoding
Component: Upload
Component: Video Import
Component: i18n 🔡
Priority: High
Priority: Low
Priority: Roadmap
Status: Blocked ✋
Status: In Progress 🔜
Status: To Reproduce
Status: Waiting for answer
Template not filled
Type: Bug 🐛
Type: Discussion 💭
Type: Discussion 💭
Type: Duplicate ➿
Type: Feature Request ✨
Type: Maintenance 👷♀️
Type: Performance
Type: Question
UI
good first issue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PeerTube#4506
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @based-a-tron on GitHub (Sep 13, 2022).
Describe the problem to be solved
Autoplay is already a built in feature for peertube. However, the autoplay currently employed will very seldom recommend videos users are actually interested in watching next.
Describe the solution you would like
At the very least, the autoplay list should be sorted in a case-insensitive lexicographic manner, so that, for example,
"Peertube - Episode 2" is autoplayed after "Peertube - Episode 1," rather than playing "Peertube - Episode 3".
Videos selected at random are actually currently sorted in the reverse order, which is probably not the intended user experience.
To fill the autoplay list, we could perform an instance specific search for videos with a similar name to the video we are currently watching, possibly stripping trailing numerals (like Part 2). These videos are already sorted lexicographically.
However, a simple lexicographic sort is woefully poor at handling error. I believe that in such a sort, articles 'a', 'and' and 'the' should probably be stripped from the sorting algorithm, along with non alphanumeric character (or maybe even entire groups, excluding numerals, like [Episode 3] -> 3). Additionally, words that occur "near the end" (what does this mean?) like "Part," "Episode," or "End" or "Finale" should probably be stripped from the sort.
Further, if there are no videos that are greater in lexicographic order than the one we are currently watching, maybe we should just recommend random videos, as its likely the user has finished whatever series they were watching.
Maybe instead of any kind of lexicographic sort we should be Really Smart (r) and use a large parser to try to parse video titles for season numbers, episode numbers, parts, etc.
This is quite an extensive change. I'm left to wonder if maybe this would be better off relegated to a plugin. The issue with that, however, is that this really does feel like it should work Out of the Box (tm).
@GeorgeBroughton commented on GitHub (Jun 8, 2025):
I'd say this could be related to #7074 at least in terms of how it would be resolved.