From 4ef7e7ce750867a6c8ae31b66c2dd52c878c162e Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Thu, 30 Nov 2023 19:32:58 +0100 Subject: [PATCH] add startSeconds,endseconds to songs --- pages/api/songs.js | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/pages/api/songs.js b/pages/api/songs.js index df3bfc2..dfbdcd6 100644 --- a/pages/api/songs.js +++ b/pages/api/songs.js @@ -3,11 +3,13 @@ const { DateTime } = require("luxon"); const SONGS = [ { "id": "I1Ns-nVULzA", - "title": "Lichterkinder - Guck mal diese Biene da (Offizielles Tanzvideo) | Kinderlied zum Tanzen und Bewegen" + "title": "Lichterkinder - Guck mal diese Biene da (Offizielles Tanzvideo) | Kinderlied zum Tanzen und Bewegen", + startSeconds: 5, }, { "id": "P_37Ht4sph0", - "title": "Ballad of Jesse James Woody Guthrie with Lyrics" + "title": "Ballad of Jesse James Woody Guthrie with Lyrics", + startSeconds: 30, }, { "id": "VQbQgdLopd4", @@ -27,7 +29,8 @@ const SONGS = [ }, { "id": "aFD5ZiCdxPw", - "title": "Stu Larsen - We Got Struck By Lightning (Official Video)" + "title": "Stu Larsen - We Got Struck By Lightning (Official Video)", + startSeconds: 3 }, { "id": "40hQeVlkpRI", @@ -55,15 +58,19 @@ const SONGS = [ }, { "id": "5u7rdTFGNIk", - "title": "Anna am Klavier" + "title": "Anna am Klavier", + startSeconds: 12.5, + endSeconds: 72.4, }, { "id": "CVyJkKKfRFs", - "title": "Melbourne Ska Orchestra - Get Smart (Official FULL Version)" + "title": "Melbourne Ska Orchestra - Get Smart (Official FULL Version)", + startSeconds: 47 }, { "id": "rylbj33b8qA", - "title": "Amy Winehouse - Monkey Man" + "title": "Amy Winehouse - Monkey Man", + startSeconds: 4 }, { "id": "a3O-PLopk5g", @@ -75,7 +82,9 @@ const SONGS = [ }, { "id": "5Fqhr01L7wE", - "title": "Jacob on the trumpet" + "title": "Jacob on the trumpet", + startSeconds: 1.4, + endSeconds: 35, }, { "id": "vKUDSgUFWMA", @@ -91,11 +100,13 @@ const SONGS = [ }, { "id": "T-r8wV_29KE", - "title": "Max Raabe - J'Attendrai" + "title": "Max Raabe - J'Attendrai", + startSeconds: 20, }, { "id": "Mp7zZNhS8Oo", - "title": "Lali on the trumpet" + "title": "Lali on the trumpet", + startSeconds: 3, } ];