Skip to content

[BUG] - Lidarr - downloads upgrades when it is not necessary #363

@hmc786

Description

@hmc786

Application
Lidarr

Host platform
Docker

Script
Audio

Script Version
2.48

Describe the bug
I'm using the Lidarr arr-script with dlClientSource="tidal", audioFormat="native" , and audioBitrate="lossless". All is good, but sometimes Lidarr upgrades files which it previously downloaded and that are already lossless.
It does it with several items (albums and singles). I managed to isolate this behavior for a single.

To Reproduce
Steps to reproduce the behavior:
Monitor an album and wait

Expected behavior
Do not upgrade when quality is the same

Logs/Screenshots
Here is an example: https://imgur.com/a/tg6TnJc

from Audio-....txt
...
2025-04-03 07:47:56 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Artist Search :: Tidal :: Clean :: Overdrive :: Downloading 1 Tracks :: Overdrive (2023)
2025-04-03 07:47:56 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: ERROR :: Previously Downloaded (304342063)...
2025-04-03 07:47:56 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Artist Search :: Tidal :: Clean :: Overdrive :: Overdrive vs Overdrive :: Checking for Match...
2025-04-03 07:47:56 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Artist Search :: Tidal :: Clean :: Overdrive :: Overdrive vs Overdrive :: Calculating Damerau-Levenshtein distance...
2025-04-03 07:47:56 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Artist Search :: Tidal :: Clean :: Overdrive :: Overdrive vs Overdrive :: Tidal MATCH Found :: Calculated Difference = 0
2025-04-03 07:47:56 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Artist Search :: Tidal :: Clean :: Overdrive :: Downloading 1 Tracks :: Overdrive (2023)
2025-04-03 07:47:57 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Download Attempt number 1
[INFO] AccessToken good for 4 days, 5 hours.
[INFO] Download path:/config/extended/downloads/audio/incomplete
+----------------+------------+
| ALBUM-PROPERTY | VALUE |
+----------------+------------+
| Title | Overdrive |
| ID | 304791863 |
| Track Number | 1 |
| Video Number | 0 |
| Release Date | 2023-07-14 |
| Version | None |
| Explicit | False |
+----------------+------------+
Sleeping for 0.678 seconds, to mimic human behaviour and prevent too many requests error
+----------------+-----------+
| TRACK-PROPERTY | VALUE |
+----------------+-----------+
| Title | Overdrive |
| ID | 304791864 |
| Album | Overdrive |
| Version | None |
| Explicit | False |
| Max-Q | LOW |
| Get-Q | LOSSLESS |
| Get-Codec | flac |
+----------------+-----------+
6%| | 1.0/15.69 MB
12%|▓ | 2.0/15.69 MB
19%|▓▓ | 3.0/15.69 MB
25%|▓▓▓ | 4.0/15.69 MB
31%|▓▓▓▓ | 5.0/15.69 MB
38%|▓▓▓▓▓ | 6.0/15.69 MB
44%|▓▓▓▓▓▓ | 7.0/15.69 MB
50%|▓▓▓▓▓▓▓ | 8.0/15.69 MB
57%|▓▓▓▓▓▓▓▓ | 9.0/15.69 MB
63%|▓▓▓▓▓▓▓▓▓ | 10.0/15.69 MB
70%|▓▓▓▓▓▓▓▓▓▓ | 11.0/15.69 MB
76%|▓▓▓▓▓▓▓▓▓▓▓ | 12.0/15.69 MB
82%|▓▓▓▓▓▓▓▓▓▓▓▓ | 13.0/15.69 MB
89%|▓▓▓▓▓▓▓▓▓▓▓▓▓ | 14.0/15.69 MB
95%|▓▓▓▓▓▓▓▓▓▓▓▓▓▓ | 15.0/15.69 MB
100%|▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓| 15.69/15.69 MB
[SUCCESS] Overdrive
2025-04-03 07:48:01 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Flac Verification :: /config/extended/downloads/audio/incomplete/atd/01 - Overdrive.flac :: Verified
2025-04-03 07:48:01 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Success
2025-04-03 07:48:01 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Consolidating files to single folder
2025-04-03 07:48:01 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Checking for unwanted files
2025-04-03 07:48:01 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: No unwanted files found!
2025-04-03 07:48:01 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Logging 304791863 as successfully downloaded...
2025-04-03 07:48:01 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Processing files with beets...
2025-04-03 07:48:09 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: SUCCESS: Matched with beets!
2025-04-03 07:48:09 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: fixing track tags
2025-04-03 07:48:09 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: FIXED : /config/extended/downloads/audio/incomplete/01 - Overdrive.flac
2025-04-03 07:48:09 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Adding Replaygain Tags using r128gain
2025-04-03 07:48:10 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: LIDARR IMPORT NOTIFICATION SENT! :: /config/extended/import/Post Malone-Overdrive (2023)
2025-04-03 07:48:11 :: Audio :: 2.48 :: STATUS :: LIDARR BUSY :: Pausing/waiting for all active Lidarr tasks to end...
2025-04-03 07:48:21 :: Audio :: 2.48 :: 1 :: missing :: 203 of 416 :: Post Malone :: Overdrive :: Single :: Search Complete...

from lidarr.txt

2025-04-03 07:48:10.9|Info|ImportDecisionMaker|Reading file 1/1
2025-04-03 07:48:11.0|Info|TrackGroupingService|Grouping 1 tracks
2025-04-03 07:48:11.0|Info|IdentificationService|Identifying album 1/1
2025-04-03 07:48:11.0|Info|ImportApprovedTracks|Importing album 1/1
2025-04-03 07:48:11.0|Info|RecycleBinProvider|Recycling Bin has not been configured, deleting permanently. /data/music/Post Malone/2023 - Overdrive/01 - Overdrive.flac
2025-04-03 07:48:12.7|Info|ImportApprovedTracks|Importing 1 tracks

from lidarr.debug.txt
2025-04-03 09:36:35.4|Debug|Parser|Parsing string '01 - Overdrive'
2025-04-03 09:36:35.4|Debug|Parser|Unable to parse 01 - Overdrive
2025-04-03 09:36:35.4|Debug|Parser|Parsing string '/data/music/Post Malone/2023 - Overdrive/01 - Overdrive.flac'
2025-04-03 09:36:35.4|Debug|Parser|Unable to parse /data/music/Post Malone/2023 - Overdrive/01 - Overdrive.flac

Additional context
The downloaded upgrade looks identical to the previous file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageNeeds to be validated/confirmed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions