https://bugs.kde.org/show_bug.cgi?id=397736

--- Comment #6 from Marius P <nmariu...@gmail.com> ---
Continue by extracting as a class the part "    auto newTracks =
DataTypes::EntryDataList{};
    for (const auto &l : data.split('\n')) {
        const auto &line = QString::fromUtf8(l);
        const auto &url = line.startsWith(QStringLiteral("file:/")) ?
QUrl(line) : QUrl::fromLocalFile(line);
        newTracks.push_back({{{{DataTypes::ElementTypeRole,
ElisaUtils::FileName},
            {DataTypes::ResourceRole, url}}}, {}, {}});
    }".

Name the class something like FromFileToTracksComputer. Entry point method
signature in pseudocode: "list of DataTypes::EntryDataList
FromFileToTracks(const QString &filePath, const QString &fileBody);".
Fix support for *.m3u in this class, e.g.
"https://raw.githubusercontent.com/iptv-org/iptv/master/streams/af.m3u does not
show entry title correctly".
Add support for *.pls in this class.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to