mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-02-02 18:46:46 +01:00
AlbumCoverLoader: Use char for QString::remove()
This commit is contained in:
parent
ff3db03696
commit
98d3eba8e8
@ -106,8 +106,8 @@ void AlbumCoverLoader::ReloadSettings() {
|
||||
|
||||
QString AlbumCoverLoader::AlbumCoverFilename(QString artist, QString album, const QString &extension) {
|
||||
|
||||
artist.remove('/').remove("\\");
|
||||
album.remove('/').remove("\\");
|
||||
artist.remove('/').remove('\\');
|
||||
album.remove('/').remove('\\');
|
||||
|
||||
QString filename = artist + "-" + album;
|
||||
filename = Utilities::UnicodeToAscii(filename.toLower());
|
||||
@ -157,7 +157,7 @@ QString AlbumCoverLoader::CoverFilePath(const Song::Source source, const QString
|
||||
save_cover_filename_ == CollectionSettingsPage::SaveCoverFilename_Pattern &&
|
||||
!cover_pattern_.isEmpty()) {
|
||||
filename = CoverFilenameFromVariable(artist, album);
|
||||
filename.remove(OrganizeFormat::kInvalidFatCharacters).remove('/').remove("\\");
|
||||
filename.remove(OrganizeFormat::kInvalidFatCharacters).remove('/').remove('\\');
|
||||
if (cover_lowercase_) filename = filename.toLower();
|
||||
if (cover_replace_spaces_) filename.replace(QRegularExpression("\\s"), "-");
|
||||
if (!extension.isEmpty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user