Skip to content

Commit

Permalink
added artist name in downloaded filename to resolve issue #152
Browse files Browse the repository at this point in the history
  • Loading branch information
anandnet committed Feb 4, 2024
1 parent 6f88fda commit 91283bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/downloader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class Downloader extends GetxService {
final dirPath = settingsScreenController.downloadLocationPath.string;
final RegExp invalidChar =
RegExp(r'Container.|\/|\\|\"|\<|\>|\*|\?|\:|\!|\[|\]|\¡|\||\%');
final songTitle = song.title.replaceAll(invalidChar, "");
final songTitle = "${song.title} (${song.artist})".replaceAll(invalidChar, "");
String filePath = "$dirPath/$songTitle.$downloadingFormat";
printINFO("Downloading filePath: $filePath");
var file = File(filePath);
Expand Down

0 comments on commit 91283bd

Please sign in to comment.