aboutsummaryrefslogtreecommitdiff
path: root/import
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-04-23 12:34:06 +0200
committermetamuffin <metamuffin@disroot.org>2025-04-23 12:34:06 +0200
commitac31201ba788dbaae1606fc0ee8a1021681d2776 (patch)
treef7c8efbeb3e335d70115d65bc81ca6da1978540b /import
parent81b7026e10cb4aa131e61920449cd52a54897952 (diff)
downloadjellything-ac31201ba788dbaae1606fc0ee8a1021681d2776.tar
jellything-ac31201ba788dbaae1606fc0ee8a1021681d2776.tar.bz2
jellything-ac31201ba788dbaae1606fc0ee8a1021681d2776.tar.zst
show external ids in node page
Diffstat (limited to 'import')
-rw-r--r--import/src/lib.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs
index 4ee4a6e..452d9b9 100644
--- a/import/src/lib.rs
+++ b/import/src/lib.rs
@@ -249,11 +249,11 @@ fn import_file(
node.kind = NodeKind::Channel;
node.title = Some(clean_uploader_name(&data.title).to_owned());
if let Some(cid) = data.channel_id {
- node.external_ids.insert("youtube:channel".to_string(), cid);
+ node.external_ids.insert("youtube.channel".to_string(), cid);
}
if let Some(uid) = data.uploader_id {
node.external_ids
- .insert("youtube:channel-name".to_string(), uid);
+ .insert("youtube.channelname".to_string(), uid);
}
if let Some(desc) = data.description {
node.description = Some(desc);
@@ -373,19 +373,19 @@ fn import_media_file(
match key.as_str() {
"MUSICBRAINZ_TRACKID" => node
.external_ids
- .insert("musicbrainz:track".to_string(), value.to_owned()),
+ .insert("musicbrainz.track".to_string(), value.to_owned()),
"MUSICBRAINZ_ARTISTID" => node
.external_ids
- .insert("musicbrainz:artist".to_string(), value.to_owned()),
+ .insert("musicbrainz.artist".to_string(), value.to_owned()),
"MUSICBRAINZ_ALBUMID" => node
.external_ids
- .insert("musicbrainz:album".to_string(), value.to_owned()),
+ .insert("musicbrainz.album".to_string(), value.to_owned()),
"MUSICBRAINZ_ALBUMARTISTID" => node
.external_ids
- .insert("musicbrainz:albumarists".to_string(), value.to_owned()),
+ .insert("musicbrainz.albumartist".to_string(), value.to_owned()),
"MUSICBRAINZ_RELEASEGROUPID" => node
.external_ids
- .insert("musicbrainz:releasegroup".to_string(), value.to_owned()),
+ .insert("musicbrainz.releasegroup".to_string(), value.to_owned()),
"ISRC" => node
.external_ids
.insert("isrc".to_string(), value.to_owned()),
@@ -474,7 +474,7 @@ fn import_media_file(
match infojson.extractor.as_str() {
"youtube" => {
node.external_ids
- .insert("youtube:video".to_string(), infojson.id);
+ .insert("youtube.video".to_string(), infojson.id);
node.ratings.insert(
Rating::YoutubeViews,
infojson.view_count.unwrap_or_default() as f64,