Browse Source

fix: songs.getSongsFromYoutubeIds job no longer exists

Owen Diffey 1 year ago
parent
commit
85c3ed7f46
1 changed files with 3 additions and 3 deletions
  1. 3 3
      frontend/src/pages/Admin/Songs/index.vue

+ 3 - 3
frontend/src/pages/Admin/Songs/index.vue

@@ -415,14 +415,14 @@ const unverifyMany = selectedRows => {
 };
 
 const importAlbum = selectedRows => {
-	const youtubeIds = selectedRows.map(({ mediaSource }) => mediaSource);
-	socket.dispatch("songs.getSongsFromYoutubeIds", youtubeIds, res => {
+	const mediaSources = selectedRows.map(({ mediaSource }) => mediaSource);
+	socket.dispatch("songs.getSongsFromMediaSources", mediaSources, res => {
 		if (res.status === "success") {
 			openModal({
 				modal: "importAlbum",
 				props: { songs: res.data.songs }
 			});
-		}
+		} else new Toast("Could not get media.");
 	});
 };