Compare commits

...

2 Commits

Author SHA1 Message Date
afkarxyz 63211c726b v2.5 2025-04-25 06:30:14 +07:00
afkarxyz 055cb6991a Update v2.4 2025-04-08 13:10:12 +07:00
3 changed files with 19 additions and 8 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 with the help of Lucida. <b>SpotiFLAC</b> allows you to download Spotify tracks in true FLAC format through services like Tidal, Amazon Music and Deezer with the help of Lucida.
</div> </div>
### [Download](https://github.com/afkarxyz/SpotiFLAC/releases/download/v2.3/SpotiFLAC.exe) ### [Download](https://github.com/afkarxyz/SpotiFLAC/releases/download/v2.4/SpotiFLAC.exe)
# #
+17 -6
View File
@@ -330,7 +330,7 @@ class ServiceComboBox(QComboBox):
class SpotiFLACGUI(QWidget): class SpotiFLACGUI(QWidget):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self.current_version = "2.4" self.current_version = "2.5"
self.tracks = [] self.tracks = []
self.reset_state() self.reset_state()
@@ -749,7 +749,7 @@ class SpotiFLACGUI(QWidget):
spacer = QSpacerItem(20, 6, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed) spacer = QSpacerItem(20, 6, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed)
about_layout.addItem(spacer) about_layout.addItem(spacer)
footer_label = QLabel("v2.4 | April 2025") footer_label = QLabel("v2.5 | April 2025")
footer_label.setStyleSheet("font-size: 12px; color: palette(text); margin-top: 10px;") footer_label.setStyleSheet("font-size: 12px; color: palette(text); margin-top: 10px;")
about_layout.addWidget(footer_label, alignment=Qt.AlignmentFlag.AlignCenter) about_layout.addWidget(footer_label, alignment=Qt.AlignmentFlag.AlignCenter)
@@ -950,10 +950,21 @@ class SpotiFLACGUI(QWidget):
self.followers_label.hide() self.followers_label.hide()
if metadata.get('releaseDate'): if metadata.get('releaseDate'):
release_date = datetime.strptime(metadata['releaseDate'], "%Y-%m-%d") try:
formatted_date = release_date.strftime("%d-%m-%Y") release_date = metadata['releaseDate']
self.release_date_label.setText(f"<b>Released</b> {formatted_date}") if len(release_date) == 4:
self.release_date_label.show() date_obj = datetime.strptime(release_date, "%Y")
elif len(release_date) == 7:
date_obj = datetime.strptime(release_date, "%Y-%m")
else:
date_obj = datetime.strptime(release_date, "%Y-%m-%d")
formatted_date = date_obj.strftime("%d-%m-%Y")
self.release_date_label.setText(f"<b>Released</b> {formatted_date}")
self.release_date_label.show()
except ValueError:
self.release_date_label.setText(f"<b>Released</b> {metadata['releaseDate']}")
self.release_date_label.show()
else: else:
self.release_date_label.hide() self.release_date_label.hide()
+1 -1
View File
@@ -1,3 +1,3 @@
{ {
"version": "2.3" "version": "2.4"
} }