aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/DramaCool.hpp15
-rw-r--r--plugins/LocalAnime.hpp2
-rw-r--r--plugins/utils/EpisodeNameParser.hpp (renamed from plugins/EpisodeNameParser.hpp)0
-rw-r--r--plugins/utils/WatchProgress.hpp (renamed from plugins/WatchProgress.hpp)0
4 files changed, 12 insertions, 5 deletions
diff --git a/plugins/DramaCool.hpp b/plugins/DramaCool.hpp
index 428e632..71fdf68 100644
--- a/plugins/DramaCool.hpp
+++ b/plugins/DramaCool.hpp
@@ -14,19 +14,26 @@ namespace QuickMedia {
class DramaCoolEpisodesPage : public Page {
public:
- DramaCoolEpisodesPage(Program *program) : Page(program) {}
+ DramaCoolEpisodesPage(Program *program, std::string series_name) : Page(program), series_name(std::move(series_name)) {}
const char* get_title() const override { return "Search"; }
bool search_is_filter() override { return true; }
PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override;
+ private:
+ std::string series_name;
};
class DramaCoolVideoPage : public VideoPage {
public:
- DramaCoolVideoPage(Program *program, std::string url, std::string title, std::string referer) : VideoPage(program, std::move(url), false), title(std::move(title)), referer(std::move(referer)) {}
- const char* get_title() const override { return title.c_str(); }
+ DramaCoolVideoPage(Program *program, std::string url, std::string series_name, std::string episode_name, std::string referer) : VideoPage(program, std::move(url), false), series_name(std::move(series_name)), episode_name(std::move(episode_name)), referer(std::move(referer)) {}
+ const char* get_title() const override { return episode_name.c_str(); }
PluginResult load(const SubmitArgs &args, VideoInfo &video_info, std::string &err_str) override;
+ std::string get_url_timestamp() override;
+ void set_watch_progress(int64_t time_pos_sec, int64_t duration_sec) override;
+ private:
+ std::string get_video_id() const;
private:
- std::string title;
+ std::string series_name;
+ std::string episode_name;
std::string referer;
};
}
diff --git a/plugins/LocalAnime.hpp b/plugins/LocalAnime.hpp
index 4925767..4d51e24 100644
--- a/plugins/LocalAnime.hpp
+++ b/plugins/LocalAnime.hpp
@@ -1,7 +1,7 @@
#pragma once
#include "Page.hpp"
-#include "WatchProgress.hpp"
+#include "utils/WatchProgress.hpp"
#include <vector>
#include <variant>
diff --git a/plugins/EpisodeNameParser.hpp b/plugins/utils/EpisodeNameParser.hpp
index 1ec847a..1ec847a 100644
--- a/plugins/EpisodeNameParser.hpp
+++ b/plugins/utils/EpisodeNameParser.hpp
diff --git a/plugins/WatchProgress.hpp b/plugins/utils/WatchProgress.hpp
index 48f549c..48f549c 100644
--- a/plugins/WatchProgress.hpp
+++ b/plugins/utils/WatchProgress.hpp