mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-18 08:03:36 +02:00
Support for handling Single Episode Torrents (#331)
**Description** As explained on #322, MediaManager currently only matches torrents that represent full seasons or season packs. As a result, valid episode-based releases — commonly returned by indexers such as EZTV — are filtered out during scoring and never considered for download. Initial changes to the season parsing logic allow these torrents to be discovered. However, additional changes are required beyond season parsing to properly support single-episode imports. This PR is intended as a work-in-progress / RFC to discuss the required changes and align on the correct approach before completing the implementation. **Things planned to do** [X] Update Web UI to better display episode-level details [ ] Update TV show import logic to handle single episode files, instead of assuming full season files (to avoid integrity errors when episodes are missing) [ ] Create episode file tables to store episode-level data, similar to season files [ ] Implement fetching and downloading logic for single-episode torrents **Notes / current limitations** At the moment, the database and import logic assume one file per season per quality, which works for season packs but not for episode-based releases. These changes are intentionally not completed yet and are part of the discussion this PR aims to start. **Request for feedback** This represents a significant change in how TV content is handled in MediaManager. Before proceeding further, feedback from @maxdorninger on the overall direction and next steps would be greatly appreciated. Once aligned, the remaining tasks can be implemented incrementally. --------- Co-authored-by: Maximilian Dorninger <97409287+maxdorninger@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
75
web/src/lib/api/api.d.ts
vendored
75
web/src/lib/api/api.d.ts
vendored
@@ -626,10 +626,10 @@ export interface paths {
|
||||
cookie?: never;
|
||||
};
|
||||
/**
|
||||
* Get Season Files
|
||||
* @description Get files associated with a specific season.
|
||||
* Get Episode Files
|
||||
* @description Get episode files associated with a specific season.
|
||||
*/
|
||||
get: operations['get_season_files_api_v1_tv_seasons__season_id__files_get'];
|
||||
get: operations['get_episode_files_api_v1_tv_seasons__season_id__files_get'];
|
||||
put?: never;
|
||||
post?: never;
|
||||
delete?: never;
|
||||
@@ -1316,6 +1316,8 @@ export interface components {
|
||||
external_id: number;
|
||||
/** Title */
|
||||
title: string;
|
||||
/** Overview */
|
||||
overview?: string | null;
|
||||
};
|
||||
/** ErrorModel */
|
||||
ErrorModel: {
|
||||
@@ -1360,6 +1362,8 @@ export interface components {
|
||||
readonly quality: components['schemas']['Quality'];
|
||||
/** Season */
|
||||
readonly season: number[];
|
||||
/** Episode */
|
||||
readonly episode: number[];
|
||||
};
|
||||
/** LibraryItem */
|
||||
LibraryItem: {
|
||||
@@ -1504,6 +1508,45 @@ export interface components {
|
||||
/** Authorization Url */
|
||||
authorization_url: string;
|
||||
};
|
||||
/** PublicEpisode */
|
||||
PublicEpisode: {
|
||||
/**
|
||||
* Id
|
||||
* Format: uuid
|
||||
*/
|
||||
id: string;
|
||||
/** Number */
|
||||
number: number;
|
||||
/**
|
||||
* Downloaded
|
||||
* @default false
|
||||
*/
|
||||
downloaded: boolean;
|
||||
/** Title */
|
||||
title: string;
|
||||
/** Overview */
|
||||
overview?: string | null;
|
||||
/** External Id */
|
||||
external_id: number;
|
||||
};
|
||||
/** PublicEpisodeFile */
|
||||
PublicEpisodeFile: {
|
||||
/**
|
||||
* Episode Id
|
||||
* Format: uuid
|
||||
*/
|
||||
episode_id: string;
|
||||
quality: components['schemas']['Quality'];
|
||||
/** Torrent Id */
|
||||
torrent_id: string | null;
|
||||
/** File Path Suffix */
|
||||
file_path_suffix: string;
|
||||
/**
|
||||
* Downloaded
|
||||
* @default false
|
||||
*/
|
||||
downloaded: boolean;
|
||||
};
|
||||
/** PublicMovie */
|
||||
PublicMovie: {
|
||||
/**
|
||||
@@ -1580,25 +1623,7 @@ export interface components {
|
||||
/** External Id */
|
||||
external_id: number;
|
||||
/** Episodes */
|
||||
episodes: components['schemas']['Episode'][];
|
||||
};
|
||||
/** PublicSeasonFile */
|
||||
PublicSeasonFile: {
|
||||
/**
|
||||
* Season Id
|
||||
* Format: uuid
|
||||
*/
|
||||
season_id: string;
|
||||
quality: components['schemas']['Quality'];
|
||||
/** Torrent Id */
|
||||
torrent_id: string | null;
|
||||
/** File Path Suffix */
|
||||
file_path_suffix: string;
|
||||
/**
|
||||
* Downloaded
|
||||
* @default false
|
||||
*/
|
||||
downloaded: boolean;
|
||||
episodes: components['schemas']['PublicEpisode'][];
|
||||
};
|
||||
/** PublicShow */
|
||||
PublicShow: {
|
||||
@@ -1719,6 +1744,8 @@ export interface components {
|
||||
file_path_suffix: string;
|
||||
/** Seasons */
|
||||
seasons: number[];
|
||||
/** Episodes */
|
||||
episodes: number[];
|
||||
};
|
||||
/** RichShowTorrent */
|
||||
RichShowTorrent: {
|
||||
@@ -3232,7 +3259,7 @@ export interface operations {
|
||||
};
|
||||
};
|
||||
};
|
||||
get_season_files_api_v1_tv_seasons__season_id__files_get: {
|
||||
get_episode_files_api_v1_tv_seasons__season_id__files_get: {
|
||||
parameters: {
|
||||
query?: never;
|
||||
header?: never;
|
||||
@@ -3250,7 +3277,7 @@ export interface operations {
|
||||
[name: string]: unknown;
|
||||
};
|
||||
content: {
|
||||
'application/json': components['schemas']['PublicSeasonFile'][];
|
||||
'application/json': components['schemas']['PublicEpisodeFile'][];
|
||||
};
|
||||
};
|
||||
/** @description Validation Error */
|
||||
|
||||
Reference in New Issue
Block a user