feat(web): badge and title episode rows on the player page - #114
Merged
Merged
Conversation
The player page's episode list showed raw filenames end to end, which meant reading every torrent-uploader's naming quirks just to tell one row from the next. Each row now leads with a coloured S05E04-style badge and, where the filename names one, the episode's own title — falling back to the full filename when nothing extractable survives. The list also gets a heading for the show/film itself.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/play/page's episode list ("up next" / "all episodes") showed raw filenames end to end, which meant reading through every torrent uploader's naming conventions just to tell episodes apart.S05E04-style badge (orS03for a season-pack file with no episode number), and shows the episode's own title (e.g. "King of Hell") when the filename names one — falling back to the original full filename + size when nothing reliable can be extracted.parseReleasethe breadcrumb already uses.Test plan
npm test— all pass (3360 tests)npm run typecheck— cleannpm run lint— only the known pre-existingApp.tsxwarningnpm run build— web bundle builds cleanupNext.test.tscovering badge formatting, episode-title extraction, the fallback path, and the show-title heading