diff --git a/data/years.json b/data/years.json index b436d8c..c1ff079 100644 --- a/data/years.json +++ b/data/years.json @@ -101,22 +101,22 @@ "mbid": "e8bdfb1b-3de6-43f7-b917-bd76238af931" }, "Avicii - Without You.mp3": { - "year": null, - "date": null, + "year": 2017, + "date": "2017", "title": "Without You", "artist": "Avicii, Sandro Cavazza", "mbid": null }, "Betty Everett - It's In The Kiss (The Shoop Shoop Song).mp3": { - "year": null, - "date": null, + "year": 1963, + "date": "1963", "title": "It's In The Kiss (The Shoop Shoop Song)", "artist": "Betty Everett", "mbid": null }, "Beyoncé - Crazy In Love (feat. JAY-Z).mp3": { - "year": null, - "date": null, + "year": 2003, + "date": "2003", "title": "Crazy In Love (feat. JAY-Z)", "artist": "Beyoncé, JAY Z", "mbid": null @@ -199,8 +199,8 @@ "mbid": "5f92f7de-f6b4-4c52-9f87-e774a268e194" }, "Bob Sinclar - World Hold on (Children of the Sky) [Radio Edit].mp3": { - "year": 2018, - "date": "2018-05-04", + "year": 2006, + "date": "2006-04-17", "title": "World Hold on (Children of the Sky) [Radio Edit]", "artist": "Bob Sinclar, Steve Edwards", "mbid": "9cb36936-6524-4852-ac2d-dd1afac884fa" @@ -227,8 +227,8 @@ "mbid": "a15a76ab-ee46-4212-8b15-86424020f579" }, "Brandy - The Boy Is Mine.mp3": { - "year": null, - "date": null, + "year": 1998, + "date": "1998", "title": "The Boy Is Mine", "artist": "Brandy, Monica", "mbid": null @@ -262,15 +262,15 @@ "mbid": "d5050809-f33a-44bb-8ec1-dc996375e272" }, "Bryan Ferry - Let's Stick Together (1999 Remastered Version).mp3": { - "year": null, - "date": null, + "year": 1976, + "date": "1976", "title": "Let's Stick Together (1999 Remastered Version)", "artist": "Bryan Ferry", "mbid": null }, "Buddy Poke - Ab in den Süden.mp3": { - "year": null, - "date": null, + "year": 2001, + "date": "2001", "title": "Ab in den Süden", "artist": "Buddy Poke", "mbid": null @@ -297,8 +297,8 @@ "mbid": "300ec8d8-5053-46ed-92ed-77748648a450" }, "Caterina Valente - Itsy Bitsy Teenie Weenie Honolulu Strand Bikini.mp3": { - "year": null, - "date": null, + "year": 1986, + "date": "1986", "title": "Itsy Bitsy Teenie Weenie Honolulu Strand Bikini", "artist": "Caterina Valente, Silvio Francesco", "mbid": null @@ -318,15 +318,15 @@ "mbid": "c454ddd8-8d0c-419d-b4e9-65620785851e" }, "Chic - Le Freak (2018 Remaster).mp3": { - "year": 2019, - "date": "2019-03-29", + "year": 1978, + "date": "1978", "title": "Le Freak (2018 Remaster)", "artist": "Chic", "mbid": "b33a9130-63d8-4bf0-a4a2-4bb421ac68e1" }, "Chicago - If You Leave Me Now (Remastered LP Version).mp3": { - "year": 2004, - "date": "2004-09-15", + "year": 1976, + "date": "1976", "title": "If You Leave Me Now (Remastered LP Version)", "artist": "Chicago", "mbid": "ef91cc0f-3ebe-4ead-834e-cb34243c3e29" @@ -353,8 +353,8 @@ "mbid": "0a506cdb-0101-4268-9b43-3c64b8498e99" }, "Cliff Richard - Congratulations (1998 Remaster).mp3": { - "year": null, - "date": null, + "year": 1972, + "date": "1972", "title": "Congratulations (1998 Remaster)", "artist": "Cliff Richard", "mbid": null @@ -374,8 +374,8 @@ "mbid": "e765f8d5-1647-4ead-9547-3d445e06ac5c" }, "Coolio - Gangsta's Paradise.mp3": { - "year": null, - "date": null, + "year": 1995, + "date": "1995", "title": "Gangsta's Paradise", "artist": "Coolio, L.V.", "mbid": null @@ -388,8 +388,8 @@ "mbid": "a2ca096d-b51b-4bd5-bda0-a0875c5f9657" }, "Cornelia Froboess - Pack Die Badehose Ein.mp3": { - "year": null, - "date": null, + "year": 1951, + "date": "1951", "title": "Pack Die Badehose Ein", "artist": "Cornelia Froboess", "mbid": null @@ -458,22 +458,22 @@ "mbid": "83e2444b-5445-400c-8215-f12f81d6f615" }, "David Bowie - Space Oddity (1999 Remaster).mp3": { - "year": null, - "date": null, + "year": 1969, + "date": "1969", "title": "Space Oddity (1999 Remaster)", "artist": "David Bowie", "mbid": null }, "Dean Martin - That's Amore (2001 Remastered Version).mp3": { - "year": null, - "date": null, + "year": 1953, + "date": "1953", "title": "That's Amore (2001 Remastered Version)", "artist": "Dean Martin", "mbid": null }, "Diana Ross - Upside Down (Single Version).mp3": { - "year": null, - "date": null, + "year": 1980, + "date": "1980", "title": "Upside Down (Single Version)", "artist": "Diana Ross", "mbid": null @@ -493,8 +493,8 @@ "mbid": "8e0d5bf4-0cc0-4ee9-a18c-e6f90f03d737" }, "Die Doofen - MIEF! (Nimm mich jetzt, auch wenn ich stinke) Video Version.mp3": { - "year": null, - "date": null, + "year": 1995, + "date": "1995", "title": "MIEF! (Nimm mich jetzt, auch wenn ich stinke) Video Version", "artist": "Die Doofen", "mbid": null @@ -563,8 +563,8 @@ "mbid": "de4c54c9-6171-4cec-8866-d5f41b24d51d" }, "Dschinghis Khan - Moskau (2007 Version).mp3": { - "year": null, - "date": null, + "year": 1979, + "date": "1979", "title": "Moskau (2007 Version)", "artist": "Dschinghis Khan", "mbid": null @@ -633,15 +633,15 @@ "mbid": "137b53e7-57e3-4a07-85e3-fcf733ae0a0d" }, "Enrico Caruso - Rigoletto La Donna E' Mobile.mp3": { - "year": null, - "date": null, + "year": 1851, + "date": "1851", "title": "Rigoletto: \"La Donna E' Mobile\"", "artist": "Enrico Caruso", "mbid": null }, "Enrique Iglesias - Could I Have This Kiss Forever.mp3": { - "year": null, - "date": null, + "year": 1999, + "date": "1999", "title": "Could I Have This Kiss Forever", "artist": "Enrique Iglesias, Whitney Houston", "mbid": null @@ -731,15 +731,15 @@ "mbid": "c47d9ac3-b2e3-4305-994d-03211998d650" }, "Fleetwood Mac - Everywhere (2017 Remaster).mp3": { - "year": null, - "date": null, + "year": 1987, + "date": "1987", "title": "Everywhere (2017 Remaster)", "artist": "Fleetwood Mac", "mbid": null }, "Freddy Quinn - Die Gitarre und das Meer (Single Version).mp3": { - "year": null, - "date": null, + "year": 1959, + "date": "1959", "title": "Die Gitarre und das Meer (Single Version)", "artist": "Freddy Quinn", "mbid": null @@ -766,15 +766,15 @@ "mbid": "b4d6e127-5406-42b1-933b-e01a5f7df105" }, "George Harrison - Got My Mind Set On You (Remastered 2004).mp3": { - "year": null, - "date": null, + "year": 1962, + "date": "1962", "title": "Got My Mind Set On You (Remastered 2004)", "artist": "George Harrison", "mbid": null }, "George Michael - I Knew You Were Waiting (For Me).mp3": { - "year": null, - "date": null, + "year": 1987, + "date": "1987", "title": "I Knew You Were Waiting (For Me)", "artist": "George Michael, Aretha Franklin", "mbid": null @@ -815,8 +815,8 @@ "mbid": "95443f12-458b-4977-a01b-c8065bda1dd0" }, "Haddaway - What Is Love (7 Mix).mp3": { - "year": 1992, - "date": "1992", + "year": 1993, + "date": "1993-01-18", "title": "What Is Love (7\" Mix)", "artist": "Haddaway", "mbid": "2970d12e-5eb9-45c9-8eac-38ce11efc18f" @@ -1018,8 +1018,8 @@ "mbid": "cd52b2b1-28d4-4885-9f1d-b44b8caf07f7" }, "Kenny Rogers & Dolly Parton - All I Have To Do Is Dream.mp3": { - "year": null, - "date": null, + "year": 1958, + "date": "1958", "title": "All I Have To Do Is Dream", "artist": "Kenny Rogers & Dolly Parton", "mbid": null @@ -1662,29 +1662,29 @@ "mbid": "ab532d7e-1ff0-44cf-a229-301c3506aad6" }, "SDP - Die Nacht von Freitag auf Montag.mp3": { - "year": null, - "date": null, + "year": 2012, + "date": "2012", "title": "Die Nacht von Freitag auf Montag", "artist": "SDP, Sido", "mbid": null }, "Shaggy - It Wasn't Me.mp3": { - "year": null, - "date": null, + "year": 2000, + "date": "2000", "title": "It Wasn't Me", "artist": "Shaggy, Ricardo Ducent", "mbid": null }, "Shakira - Waka Waka (This Time for Africa) [The Official 2010 FIFA World Cup (TM) Song] (feat. Freshlyground) (Single).mp3": { - "year": null, - "date": null, + "year": 2010, + "date": "2010", "title": "Waka Waka (This Time for Africa) [The Official 2010 FIFA World Cup (TM) Song] (feat. Freshlyground) (Single)", "artist": "Shakira, Freshlyground", "mbid": null }, "Shawn Mendes - Señorita.mp3": { - "year": null, - "date": null, + "year": 2019, + "date": "2019-06-21", "title": "Señorita", "artist": "Shawn Mendes, Camila Cabello", "mbid": null @@ -1704,8 +1704,8 @@ "mbid": "1fb661ee-5789-4ec3-a372-55417788a089" }, "Simply Red - Holding Back the Years (2008 Remaster).mp3": { - "year": null, - "date": null, + "year": 1985, + "date": "1985", "title": "Holding Back the Years (2008 Remaster)", "artist": "Simply Red", "mbid": null @@ -1718,8 +1718,8 @@ "mbid": "cfa03e25-2700-490c-b087-9bc8feec5cb5" }, "Sister Sledge - We Are Family (1995 Remaster).mp3": { - "year": 2018, - "date": "2018-10-12", + "year": 1979, + "date": "1979-01-22", "title": "We Are Family (1995 Remaster)", "artist": "Sister Sledge", "mbid": "94f14692-3dc9-458f-a9ae-4bac3acff1b4" @@ -1795,8 +1795,8 @@ "mbid": "7134eba5-f912-426c-a44d-7c19d9d4706c" }, "Taio Cruz - Hangover.mp3": { - "year": null, - "date": null, + "year": 2011, + "date": "2011", "title": "Hangover", "artist": "Taio Cruz, Flo Rida", "mbid": null @@ -1823,8 +1823,8 @@ "mbid": "fa52f01e-6c8c-46ff-860d-daa4930f93a4" }, "The Beatles - Get Back (Remastered 2009).mp3": { - "year": null, - "date": null, + "year": 2021, + "date": "2021", "title": "Get Back (Remastered 2009)", "artist": "The Beatles", "mbid": null @@ -1893,8 +1893,8 @@ "mbid": "1bb8b072-d300-4940-be9c-28800f15a29a" }, "The Police - Every Breath You Take (Remastered 2003).mp3": { - "year": 2023, - "date": "2023-08-11", + "year": 1983, + "date": "1983", "title": "Every Breath You Take (Remastered 2003)", "artist": "The Police", "mbid": "e60981c2-c79a-4687-ac26-7ad730fe34e6" @@ -1928,8 +1928,8 @@ "mbid": "fe1bbf77-90a5-4d5d-9a7e-b002966510c8" }, "The Verve - Bitter Sweet Symphony (Remastered 2016).mp3": { - "year": null, - "date": null, + "year": 1997, + "date": "1997", "title": "Bitter Sweet Symphony (Remastered 2016)", "artist": "The Verve", "mbid": null @@ -1970,8 +1970,8 @@ "mbid": "c8ac6945-bd95-4ddc-b7f7-bc2237db0ef7" }, "Tokio Hotel - Durch den Monsun (Radio Mix).mp3": { - "year": null, - "date": null, + "year": 2005, + "date": "2005", "title": "Durch den Monsun (Radio Mix)", "artist": "Tokio Hotel", "mbid": null @@ -2593,8 +2593,8 @@ "title": "It's My Life", "artist": "Bon Jovi", "mbid": "511096e6-7737-4514-8f23-bfa0dac765ec", - "earliestDate": "1993", - "year": 1993, + "earliestDate": "2000", + "year": 2000, "confidence": { "mbScore": 100, "titleSim": 1, @@ -3109,8 +3109,8 @@ "title": "Upside Down (Single Version)", "artist": "Diana Ross", "mbid": null, - "earliestDate": null, - "year": null, + "earliestDate": 1980, + "year": 1980, "error": "No recordings found" }, { @@ -3484,8 +3484,8 @@ "title": "Hungry Eyes (From \"Dirty Dancing\" Soundtrack)", "artist": "Eric Carmen", "mbid": "848ecccf-4fc4-4478-b70a-8e31286bfd84", - "earliestDate": "2005", - "year": 2005, + "earliestDate": "1987", + "year": 1987, "confidence": { "mbScore": 100, "titleSim": 1, @@ -3652,8 +3652,8 @@ "title": "Heimweh (Dort wo die Blumen blüh'n)", "artist": "Freddy Quinn", "mbid": "2e4c3d92-9103-48ee-9399-43d83a61872f", - "earliestDate": "2006-10-26", - "year": 2006, + "earliestDate": "1987-10-26", + "year": 1987, "confidence": { "mbScore": 100, "titleSim": 0.875, @@ -3697,8 +3697,8 @@ "title": "Got My Mind Set On You (Remastered 2004)", "artist": "George Harrison", "mbid": null, - "earliestDate": null, - "year": null, + "earliestDate": "1987", + "year": 1987, "error": "No recordings found" }, { @@ -3730,8 +3730,8 @@ "title": "Ich will 'nen Cowboy als Mann", "artist": "Gitte Hænning", "mbid": "37e33915-b7e5-4310-bc53-94d17310b26c", - "earliestDate": "2003", - "year": 2003, + "earliestDate": "1963", + "year": 1963, "confidence": { "mbScore": 100, "titleSim": 1, diff --git a/public/client.js b/public/client.js index f65418c..4a2a367 100644 --- a/public/client.js +++ b/public/client.js @@ -46,7 +46,8 @@ let state = { const el = (id) => document.getElementById(id); const $lobby = el('lobby'); const $room = el('room'); -const $players = el('players'); +// Removed old players chip list; using dashboard only +const $dashboardList = el('dashboardList'); const $roomId = el('roomId'); const $status = el('status'); const $guesser = el('guesser'); @@ -129,22 +130,38 @@ function showToast(msg) { // Show my current name (from server if available) or fallback to stored value const me = room.players.find(p=>p.id===state.playerId); if ($nameDisplay) $nameDisplay.textContent = (me?.name || localStorage.getItem('playerName') || '-'); - $players.innerHTML = room.players.map(p => { - const badges = [ - p.id===room.hostId ? '⭐' : '', - p.ready ? '✓' : '', - !p.connected ? '(off)' : '', - ].join(''); - return `${escapeHtml(p.name)}${badges}`; - }).join(' '); + // Old players chip list removed + // Dashboard rows + if ($dashboardList) { + $dashboardList.innerHTML = room.players.map(p => { + const connected = p.connected ? 'online' : 'offline'; + const ready = p.ready ? 'bereit' : '-'; + const score = (room.state.timeline?.[p.id]?.length) ?? 0; + const isMe = p.id === state.playerId; + return ` +
| Spieler | +Verbindung | +Ready | +Score | +
|---|