diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-12-11 22:11:36 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-12-11 22:11:36 +0100 |
| commit | 95a7accaaf2e7cfcc7a5e23eeba41f615cfd497d (patch) | |
| tree | baba1976d379504185530524600564fdfa29fb87 /common/src | |
| parent | 7c716587f65db79a59886d9696627765f965b18b (diff) | |
| download | jellything-95a7accaaf2e7cfcc7a5e23eeba41f615cfd497d.tar jellything-95a7accaaf2e7cfcc7a5e23eeba41f615cfd497d.tar.bz2 jellything-95a7accaaf2e7cfcc7a5e23eeba41f615cfd497d.tar.zst | |
migrate tmdb to plugin
Diffstat (limited to 'common/src')
| -rw-r--r-- | common/src/helpers.rs | 6 | ||||
| -rw-r--r-- | common/src/lib.rs | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/common/src/helpers.rs b/common/src/helpers.rs index 20042e9..13c69a1 100644 --- a/common/src/helpers.rs +++ b/common/src/helpers.rs @@ -97,7 +97,8 @@ impl Display for IdentifierType { IdentifierType::TraktSeason => "trakt_season", IdentifierType::TraktShow => "trakt_show", IdentifierType::Imdb => "imdb", - IdentifierType::Tmdb => "tmdb", + IdentifierType::TmdbMovie => "tmdb_movie", + IdentifierType::TmdbSeries => "tmdb_tv", IdentifierType::Tvdb => "tvdb", IdentifierType::Omdb => "omdb", IdentifierType::YoutubeVideo => "youtube_video", @@ -124,7 +125,8 @@ impl FromStr for IdentifierType { "trakt_season" => IdentifierType::TraktSeason, "trakt_show" => IdentifierType::TraktShow, "imdb" => IdentifierType::Imdb, - "tmdb" => IdentifierType::Tmdb, + "tmdb_movie" => IdentifierType::TmdbMovie, + "tmdb_tv" => IdentifierType::TmdbSeries, "tvdb" => IdentifierType::Tvdb, "omdb" => IdentifierType::Omdb, "youtube_video" => IdentifierType::YoutubeVideo, diff --git a/common/src/lib.rs b/common/src/lib.rs index 81d37fe..81d6d15 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -103,7 +103,8 @@ pub enum IdentifierType { TraktSeason, TraktEpisode, Imdb, - Tmdb, + TmdbSeries, + TmdbMovie, Tvdb, Omdb, VgmdbArtist, |