Skip to content

Validate downloads #163

Open
Open

Description

@pointlessone

Explo has all the information for what tracks are in the playlist. And it already does track validation but only when creating a playlist in navidrome (in my case).

It would be great if Explo validated the downloaded files and if they don't match, try downloading a different file.

Right now I end up with files that are downloaded but are not a match. So my final playlist ends up like 40 of 50 songs and 10 random versions of songs that are too different to what was in the initial list.

Activity

  1. LumePart commented on Jun 2, 2026

    @LumePart
    Owner

    By validation do you mean checking for songs that are already in your library?
    Explo does that before downloading and after downloading, based on metadata from ListenBrainz. There are some changes in dev to also improve the matching.

  2. pointlessone commented on Jun 2, 2026

    @pointlessone
    Author

    No, I mean the newly downloaded files. My understanding is that there's no way to pick the right file for download so Explo picks whichever that looks promising. But relatively often the chosen file is not the right one. So after downloading it won't match but Explo doesn't try to download a different file.

    The suggestion here is to try downloading a different file if the download doesn't match. Treat it similar to download failure but try a different file, and give up after, say, 5 tries.

  3. LumePart commented on Jun 2, 2026

    @LumePart
    Owner

    After the download, Explo also matches by path. So if music system returns the song based on a search query (usually "title - mainArtist"), it doesn't even need to match the metadata 100%

    But searching from systems is also a pain point. Some systems don't return any results if a track has some special characters in it (one of the characters is : in navidrome for example)

    If the system doesn't return anything, then Explo can't add it to the playlist either.

    But as I mentioned there are some changes in dev that hopefully improve matching

  4. LumePart commented on Jun 2, 2026

    @LumePart
    Owner

    Also it would be nice if you can give some examples (the right track metadata, wrongly picked track metadata and paths).

  5. pointlessone commented on Jun 2, 2026

    @pointlessone
    Author

    Well… Here's an example (that might also be an illustration for #164). I added some more logging because I wasn't getting matches and I wanted to understand what's going on.

    22:54:13DEBUG[subsonic] Searching for "Delirium feat. Mark E. Smith" by "Gorillaz" (duration: 232 s, file name: Delirium-Gorillaz.mp3)
    22:54:13DEBUG[subsonic] Checking search result "Delirium (feat. Mark E. Smith)" by "Gorillaz" (duration: 225, path: Gorillaz/The Mountain (Deluxe)/01-10 - Delirium (feat. Mark E. Smith).flac)
    22:54:13DEBUG[subsonic] arrtist: "gorillaz" contains "gorillaz"
    22:54:13DEBUG[subsonic] title: "delirium" == "deliriumfeatmarkesmith"
    22:54:13DEBUG[subsonic] duration: 225 ~ 232 (10s)
    22:54:13DEBUG[subsonic] path: "gorillaz/the mountain (deluxe)/01-10 - delirium (feat. mark e. smith).flac" contains "delirium-gorillaz.mp3"
    22:54:13DEBUG[subsonic] Checking search result "Delirium" by "Gorillaz feat. Mark E. Smith" (duration: 232, path: Gorillaz/The Mountain (पर्वत)/01-10 - Delirium.mp3)
    22:54:13DEBUG[subsonic] arrtist: "gorillaz feat. mark e. smith" contains "gorillaz"
    22:54:13DEBUG[subsonic] title: "delirium" == "deliriumfeatmarkesmith"
    22:54:13DEBUG[subsonic] duration: 232 ~ 232 (10s)
    22:54:13DEBUG[subsonic] path: "gorillaz/the mountain (पर्वत)/01-10 - delirium.mp3" contains "delirium-gorillaz.mp3"
    22:54:13DEBUG[subsonic] Checking search result "Delirium" by "Gorillaz feat. Mark E. Smith" (duration: 232, path: Gorillaz/The Mountain/01-10 - Delirium.opus)
    22:54:13DEBUG[subsonic] arrtist: "gorillaz feat. mark e. smith" contains "gorillaz"
    22:54:13DEBUG[subsonic] title: "delirium" == "deliriumfeatmarkesmith"
    22:54:13DEBUG[subsonic] duration: 232 ~ 232 (10s)
    22:54:13DEBUG[subsonic] path: "gorillaz/the mountain/01-10 - delirium.opus" contains "delirium-gorillaz.mp3"
    22:54:13DEBUG[subsonic] Checking search result "Delirium" by "Gorillaz feat. Mark E. Smith" (duration: 232, path: Gorillaz/The Mountain/01-10 - Delirium.mp3)
    22:54:13DEBUG[subsonic] arrtist: "gorillaz feat. mark e. smith" contains "gorillaz"
    22:54:13DEBUG[subsonic] title: "delirium" == "deliriumfeatmarkesmith"
    22:54:13DEBUG[subsonic] duration: 232 ~ 232 (10s)
    22:54:13DEBUG[subsonic] path: "gorillaz/the mountain/01-10 - delirium.mp3" contains "delirium-gorillaz.mp3"
    22:54:13DEBUG[subsonic] multiple results for Delirium Gorillaz but none matched criteria
    

    The additional log lines come from within (client.Subsonic).SearchSongs.
    I'm not exactly sure where the values for path come from. None of those values seem to match anything in my navidrome.

  6. LumePart commented on Jun 12, 2026

    @LumePart
    Owner

    The values from path come from the files that Explo has downloaded, so they should be in your library or at least in your filesystem (under the folder you have Explo pointed to).

    Are you running the latest or the dev version?

  7. pointlessone commented on Jun 12, 2026

    @pointlessone
    Author

    The log's from d49505e with additional log lines. I didn't keep up with the main so don't know if anything has changed since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions