aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Manga.cpp
blob: 70a1664948f1f639a8d1ebe86a9a144c75b29e6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "../../plugins/Manga.hpp"
#include "../../include/Program.h"

namespace QuickMedia {
    TrackResult MangaChaptersPage::track(const std::string &str) {
        const char *args[] = { "automedia", "add", "html", content_url.data(), "--start-after", str.data(), "--name", content_title.data(), nullptr };
        if(exec_program(args, nullptr, nullptr) == 0)
            return TrackResult::OK;
        else
            return TrackResult::ERR;
    }
}