Skip to content

Filter disabled libraries from settings and add episode/season/series ID context for sharing migration#23

Merged
AbandonedCart merged 7 commits intomainfrom
copilot/remove-skipme-db-libraries
Apr 22, 2026
Merged

Filter disabled libraries from settings and add episode/season/series ID context for sharing migration#23
AbandonedCart merged 7 commits intomainfrom
copilot/remove-skipme-db-libraries

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 22, 2026

The settings page currently lists libraries even when SkipMe.db is disabled at the Jellyfin library level. This update aligns the UI with Jellyfin’s media-segment provider configuration and starts moving sharing-related identifier plumbing from Segment Editor into the plugin backend.

  • Settings page: library visibility now honors provider enablement

    • Added virtual-folder lookup (GET /Library/VirtualFolders) and library option typing.
    • Resolved SkipMe.db provider disablement from LibraryOptions.DisabledMediaSegmentProviders.
    • Filtered dashboard library sections to only include libraries where SkipMe is enabled (checks both provider hash ID and skipme.db name fallback).
  • Backend: episode-level provider context groundwork

    • Added provider extraction across episode/season/series scopes in SyncSegmentsTask.
    • Added explicit episode lookup context carrying:
      • tvdb_season_id
      • tvdb_series_id
      • imdb_series_id
      • tmdb_id
      • season / episode numbers
    • Wired this context into episode lookup request construction paths.
  • Backend: season/series access to all episode IDs

    • Extended show work-item aggregation to retain:
      • all episode IDs for a series
      • episode ID lists grouped by season ID
    • This provides the data shape needed for sharing behavior previously hosted in Segment Editor.
var lookupContext = GetEpisodeLookupContext(episodeItem, providerIds);
// exposes: TvdbSeasonId, TvdbSeriesId, ImdbSeriesId, TmdbId, SeasonNumber, EpisodeNumber
tvdbId = providerIds.Episode.TvdbId ?? lookupContext.TvdbSeasonId ?? lookupContext.TvdbSeriesId;
imdbId = lookupContext.ImdbSeriesId ?? providerIds.Season.ImdbId ?? providerIds.Episode.ImdbId;

Copilot AI and others added 7 commits April 22, 2026 19:54
Agent-Logs-Url: https://github.com/intro-skipper/skipme.db-plugin/sessions/8b19e85b-4f4e-4d1d-bd72-6720a148eedb

Co-authored-by: AbandonedCart <1173913+AbandonedCart@users.noreply.github.com>
Agent-Logs-Url: https://github.com/intro-skipper/skipme.db-plugin/sessions/8b19e85b-4f4e-4d1d-bd72-6720a148eedb

Co-authored-by: AbandonedCart <1173913+AbandonedCart@users.noreply.github.com>
Agent-Logs-Url: https://github.com/intro-skipper/skipme.db-plugin/sessions/8b19e85b-4f4e-4d1d-bd72-6720a148eedb

Co-authored-by: AbandonedCart <1173913+AbandonedCart@users.noreply.github.com>
… ID context for sharing migration

Agent-Logs-Url: https://github.com/intro-skipper/skipme.db-plugin/sessions/8b19e85b-4f4e-4d1d-bd72-6720a148eedb

Co-authored-by: AbandonedCart <1173913+AbandonedCart@users.noreply.github.com>
@AbandonedCart AbandonedCart marked this pull request as ready for review April 22, 2026 20:03
@AbandonedCart AbandonedCart merged commit 84308a9 into main Apr 22, 2026
3 checks passed
@AbandonedCart AbandonedCart deleted the copilot/remove-skipme-db-libraries branch April 22, 2026 20:44
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