From 59428e7679df544996d0596e474c71e1baf30333 Mon Sep 17 00:00:00 2001 From: afkarxyz Date: Mon, 2 Jun 2025 13:09:18 +0700 Subject: [PATCH] v3.1 --- SpotiFLAC.py | 4 ++-- getTracks.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SpotiFLAC.py b/SpotiFLAC.py index 7a70a70..48a6859 100644 --- a/SpotiFLAC.py +++ b/SpotiFLAC.py @@ -550,7 +550,7 @@ class QobuzRegionComboBox(QComboBox): class SpotiFLACGUI(QWidget): def __init__(self): super().__init__() - self.current_version = "3.0" + self.current_version = "3.1" self.tracks = [] self.reset_state() @@ -995,7 +995,7 @@ class SpotiFLACGUI(QWidget): spacer = QSpacerItem(20, 6, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed) about_layout.addItem(spacer) - footer_label = QLabel("v3.0 | May 2025") + footer_label = QLabel("v3.1 | June 2025") footer_label.setStyleSheet("font-size: 12px; margin-top: 10px;") about_layout.addWidget(footer_label, alignment=Qt.AlignmentFlag.AlignCenter) diff --git a/getTracks.py b/getTracks.py index 23b5533..ae83a12 100644 --- a/getTracks.py +++ b/getTracks.py @@ -352,7 +352,9 @@ class SquidWTFDownloader: items = data.get("data", {}).get("tracks", {}).get("items", []) priority = {24: 1, 16: 2} for track in items: - if track.get("isrc") == isrc: + track_isrc = track.get("isrc", "").upper() + search_isrc = isrc.upper() + if track_isrc == search_isrc: current_prio = priority.get(track.get("maximum_bit_depth"), 3) if selected_track is None or current_prio < priority.get(selected_track.get("maximum_bit_depth"), 3): selected_track = track @@ -646,7 +648,7 @@ class TidalDownloader: return result if isrc: - isrc_items = [item for item in result["items"] if item.get("isrc") == isrc] + isrc_items = [item for item in result["items"] if item.get("isrc", "").upper() == isrc.upper()] if len(isrc_items) > 1: hires_items = []