Skip to content

Commit

Permalink
[datareader.cpp] Break two more long lines in two
Browse files Browse the repository at this point in the history
  • Loading branch information
Olf0 authored Mar 12, 2024
1 parent 7d251e0 commit 5665c32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/datareader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,15 @@ void DataReader::readFile(QString file)
// throughout all C++ source files), and basename cover or folder
if (iterator.fileInfo().isFile()) {
if ( iterator.fileInfo().suffix() == "jpeg" &&
// See ToDo above: (… || iterator.fileInfo().suffix() == "jpg" || iterator.fileInfo().suffix() == "png") &&
// See ToDo above: (… || iterator.fileInfo().suffix() == "jpg" || \
// iterator.fileInfo().suffix() == "png") &&
(iterator.fileInfo().baseName() == "cover" ||
iterator.fileInfo().baseName() == "folder")
)
{
QString th2 = QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + \
"/media-art/album-" + doubleHash(m_artist, m_album) + iterator.fileInfo().suffix();
"/media-art/album-" + doubleHash(m_artist, m_album) + \
iterator.fileInfo().suffix();
qDebug() << "PROCESSING FILE: " << iterator.filePath() ;
QFile::copy(iterator.filePath(), th2);
}
Expand Down

0 comments on commit 5665c32

Please sign in to comment.