aboutsummaryrefslogtreecommitdiff
path: root/common/src/helpers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/helpers.rs')
-rw-r--r--common/src/helpers.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/src/helpers.rs b/common/src/helpers.rs
index 44e9468..db75ba9 100644
--- a/common/src/helpers.rs
+++ b/common/src/helpers.rs
@@ -97,6 +97,12 @@ impl Display for IdentifierType {
IdentifierType::Tmdb => "tmdb",
IdentifierType::Tvdb => "tvdb",
IdentifierType::Omdb => "omdb",
+ IdentifierType::YoutubeVideo => "youtube_video",
+ IdentifierType::YoutubeChannel => "youtube_channel",
+ IdentifierType::YoutubeChannelHandle => "youtube_channel_handle",
+ IdentifierType::Barcode => "barcode",
+ IdentifierType::AcoustIdTrack => "acoustid_track",
+ IdentifierType::Bandcamp => "bandcamp",
})
}
}
@@ -114,6 +120,11 @@ impl FromStr for IdentifierType {
"tmdb" => IdentifierType::Tmdb,
"tvdb" => IdentifierType::Tvdb,
"omdb" => IdentifierType::Omdb,
+ "youtube_video" => IdentifierType::YoutubeVideo,
+ "youtube_channel" => IdentifierType::YoutubeChannel,
+ "youtube_channel_handle" => IdentifierType::YoutubeChannelHandle,
+ "barcode" => IdentifierType::Barcode,
+ "acoustid_track" => IdentifierType::AcoustIdTrack,
_ => return Err(()),
})
}