@@ -550,7 +550,7 @@ def currentData(self, role=Qt.ItemDataRole.UserRole + 1):
550550class SpotiFLACGUI (QWidget ):
551551 def __init__ (self ):
552552 super ().__init__ ()
553- self .current_version = "2.9 "
553+ self .current_version = "3.0 "
554554 self .tracks = []
555555 self .reset_state ()
556556
@@ -995,7 +995,7 @@ def setup_about_tab(self):
995995 spacer = QSpacerItem (20 , 6 , QSizePolicy .Policy .Minimum , QSizePolicy .Policy .Fixed )
996996 about_layout .addItem (spacer )
997997
998- footer_label = QLabel ("v2.9 | May 2025" )
998+ footer_label = QLabel ("v3.0 | May 2025" )
999999 footer_label .setStyleSheet ("font-size: 12px; margin-top: 10px;" )
10001000 about_layout .addWidget (footer_label , alignment = Qt .AlignmentFlag .AlignCenter )
10011001
@@ -1355,15 +1355,17 @@ def download_all(self):
13551355
13561356 def download_tracks (self , indices ):
13571357 self .log_output .clear ()
1358- outpath = self .output_dir .text ()
1358+ raw_outpath = self .output_dir .text ().strip ()
1359+ outpath = os .path .normpath (raw_outpath )
13591360 if not os .path .exists (outpath ):
13601361 self .log_output .append ('Warning: Invalid output directory.' )
13611362 return
13621363
13631364 tracks_to_download = self .tracks if self .is_single_track else [self .tracks [i ] for i in indices ]
13641365
13651366 if self .is_album or self .is_playlist :
1366- folder_name = re .sub (r'[<>:"/\\|?*]' , '_' , self .album_or_playlist_name )
1367+ name = self .album_or_playlist_name .strip ()
1368+ folder_name = re .sub (r'[<>:"/\\|?*]' , '_' , name )
13671369 outpath = os .path .join (outpath , folder_name )
13681370 os .makedirs (outpath , exist_ok = True )
13691371
0 commit comments