···2222 duration: number
2323) {
2424 try {
2525+ // wait 15 seconds to ensure the track is actually being played
2626+ await new Promise((resolve) => setTimeout(resolve, 15000));
2527 const recentPlays = await getRecentPlays(agent, 5);
2628 // Check if the track was played in the last 5 plays (verify by MBID and timestamp to avoid duplicates)
2729 const alreadyPlayed = recentPlays.some((play) => {