Compare commits

..

10 Commits

Author SHA1 Message Date
afkarxyz 2306b1f8d2 v3.3 2025-06-21 05:03:32 +07:00
afkarxyz 1b0d67702d v3.2 2025-06-11 05:11:58 +07:00
afkarxyz 00e369677f v3.2 2025-06-11 05:07:20 +07:00
afkarxyz c3e1607ca6 v3.1 2025-06-02 13:13:10 +07:00
afkarxyz 59428e7679 v3.1 2025-06-02 13:09:18 +07:00
afkarxyz 33c4698286 v3.0 2025-05-31 19:37:36 +07:00
afkarxyz 3ac4c34d73 v3.0 2025-05-31 19:33:16 +07:00
afkarxyz 88e303cbe4 v2.9 2025-05-30 22:28:24 +07:00
afkarxyz c13855fadd v2.9 2025-05-30 22:22:14 +07:00
afkarxyz 2b12684960 v2.8 2025-05-23 16:47:38 +07:00
5 changed files with 29 additions and 15 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<b>SpotiFLAC</b> allows you to download Spotify tracks in true FLAC format through services like Tidal, Amazon Music, and Deezer <code>(via Lucida)</code>, as well as Qobuz <code>(via SquidWTF)</code>.
</div>
### [Download](https://github.com/afkarxyz/SpotiFLAC/releases/download/v2.7/SpotiFLAC.exe)
### [Download](https://github.com/afkarxyz/SpotiFLAC/releases/download/v3.2/SpotiFLAC.exe)
#
+8 -6
View File
@@ -324,7 +324,7 @@ class TidalStatusChecker(QThread):
def run(self):
try:
response = requests.get("https://tidal.401658.xyz", timeout=5)
response = requests.get("https://hifi.401658.xyz", timeout=5)
is_online = response.status_code == 200
self.status_updated.emit(is_online)
except Exception as e:
@@ -550,7 +550,7 @@ class QobuzRegionComboBox(QComboBox):
class SpotiFLACGUI(QWidget):
def __init__(self):
super().__init__()
self.current_version = "2.8"
self.current_version = "3.3"
self.tracks = []
self.reset_state()
@@ -954,7 +954,7 @@ class SpotiFLACGUI(QWidget):
sections = [
("Check for Updates", "https://github.com/afkarxyz/SpotiFLAC/releases"),
("Report an Issue", "https://github.com/afkarxyz/SpotiFLAC/issues"),
("Lucida Site", "https://lucida.to/stats")
("Lucida Status", "https://status.lucida.to")
]
for title, url in sections:
@@ -995,7 +995,7 @@ class SpotiFLACGUI(QWidget):
spacer = QSpacerItem(20, 6, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed)
about_layout.addItem(spacer)
footer_label = QLabel("v2.8 | May 2025")
footer_label = QLabel("v3.3 | June 2025")
footer_label.setStyleSheet("font-size: 12px; margin-top: 10px;")
about_layout.addWidget(footer_label, alignment=Qt.AlignmentFlag.AlignCenter)
@@ -1355,7 +1355,8 @@ class SpotiFLACGUI(QWidget):
def download_tracks(self, indices):
self.log_output.clear()
outpath = self.output_dir.text()
raw_outpath = self.output_dir.text().strip()
outpath = os.path.normpath(raw_outpath)
if not os.path.exists(outpath):
self.log_output.append('Warning: Invalid output directory.')
return
@@ -1363,7 +1364,8 @@ class SpotiFLACGUI(QWidget):
tracks_to_download = self.tracks if self.is_single_track else [self.tracks[i] for i in indices]
if self.is_album or self.is_playlist:
folder_name = re.sub(r'[<>:"/\\|?*]', '_', self.album_or_playlist_name)
name = self.album_or_playlist_name.strip()
folder_name = re.sub(r'[<>:"/\\|?*]', '_', name)
outpath = os.path.join(outpath, folder_name)
os.makedirs(outpath, exist_ok=True)
+1 -1
View File
@@ -32,7 +32,7 @@ def generate_totp(
counter * 30_000,
)
token_url = 'https://open.spotify.com/get_access_token'
token_url = 'https://open.spotify.com/api/token'
playlist_base_url = 'https://api.spotify.com/v1/playlists/{}'
album_base_url = 'https://api.spotify.com/v1/albums/{}'
track_base_url = 'https://api.spotify.com/v1/tracks/{}'
+18 -6
View File
@@ -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 = []
@@ -672,7 +674,7 @@ class TidalDownloader:
async def get_track_download_info(self, track_id, quality="LOSSLESS"):
try:
download_api_url = f"https://tidal.401658.xyz/track/?id={track_id}&quality={quality}"
download_api_url = f"https://hifi.401658.xyz/track/?id={track_id}&quality={quality}"
async with httpx.AsyncClient(http2=True, timeout=self.timeout) as client:
response = await client.get(download_api_url)
@@ -764,8 +766,18 @@ class TidalDownloader:
if copyright_info:
audio["COPYRIGHT"] = copyright_info
if album_info.get("releaseDate"):
audio["DATE"] = album_info["releaseDate"][:4]
release_date = None
if search_info and search_info.get("streamStartDate"):
release_date = search_info["streamStartDate"]
elif track_info.get("streamStartDate"):
release_date = track_info["streamStartDate"]
if release_date:
if "T" in release_date:
date_part = release_date.split("T")[0]
audio["DATE"] = date_part
else:
audio["DATE"] = release_date
if track_info.get("genre"):
audio["GENRE"] = track_info["genre"]
@@ -1014,7 +1026,7 @@ async def main():
print("\n\n=== SquidWTFDownloader ===")
squid = SquidWTFDownloader(region="us")
isrc = "USUM72409273"
isrc = "USAT22409172"
output_dir = "."
try:
+1 -1
View File
@@ -1,3 +1,3 @@
{
"version": "2.7"
"version": "3.2"
}