feat: add option to group upcoming episodes by series - #244
Conversation
There was a problem hiding this comment.
good idea! i have a couple small changes to suggest, but LGTM once those are addressed
edit: actually, thinking about this a little more, it would be nice if the grouped series showed how many episodes are upcoming, then we could drop the name of the first episode too.
it can be as simple as S##E##-##, so for your example it would be S03E01-10
…d localize countdown/frequencies
|
Hi! I have updated the code addressing all your suggestions:
Please note: I do not speak English fluently and I am using a translation tool to communicate. I apologize for any awkward phrasing or grammatical errors! |
IAmParadox27
left a comment
There was a problem hiding this comment.
General comments, particularly relating to the translation manager, how its grabbed and how its being used.
|
well, I've never had conflicts in a GitHub repository before. thank you for your patience! |
This PR introduces an option in the Sonarr configuration section to group upcoming episodes by series.
Why is this needed?
Currently, if a series has multiple upcoming episodes listed in the calendar, the "Upcoming Shows" section on the home screen displays each episode individually, causing duplicate entries for the same series. This change allows users to group upcoming episodes so only the next immediate episode for each series is shown, reducing clutter on the home screen.
Changes:
PluginConfiguration.cs: Added boolean flagGroupUpcomingto the Sonarr service configuration (default:falsefor backwards compatibility).config.html: Added a checkboxGroup upcoming episodes by seriesin the Sonarr configuration panel with a description.UpcomingShowsSection.cs: ModifiedFilterAndSortItemsto group sonarr calendar items bySeriesIdand select the first chronological episode per series whenGroupUpcomingis enabled.Visual Comparison:
Disclaimer:
I am not a professional developer. I solved this issue for my personal setup to fix home screen clutter and decided to share it back to help others who might have the same preference. An AI assistant (Gemini/Antigravity) was used to help structure the code edits and prepare this Pull Request.