Explorar o código

refactor: improved some errors messages in EditSong

Kristian Vos %!s(int64=2) %!d(string=hai) anos
pai
achega
ade2ec682f
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      frontend/src/components/modals/EditSong/index.vue

+ 6 - 2
frontend/src/components/modals/EditSong/index.vue

@@ -1712,7 +1712,9 @@ export default {
 						});
 					else throw new Error("No title found");
 				} catch (e) {
-					new Toast("Unable to fetch YouTube video title");
+					new Toast(
+						"Unable to fetch YouTube video title. Try starting the video."
+					);
 				}
 			}
 			if (type === "thumbnail")
@@ -1727,7 +1729,9 @@ export default {
 					if (author) this.artistInputValue = author;
 					else throw new Error("No video author found");
 				} catch (e) {
-					new Toast("Unable to fetch YouTube video author");
+					new Toast(
+						"Unable to fetch YouTube video author. Try starting the video."
+					);
 				}
 			}
 		},