aboutsummaryrefslogtreecommitdiff
path: root/plugins/Pornhub.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Pornhub.hpp')
-rw-r--r--plugins/Pornhub.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Pornhub.hpp b/plugins/Pornhub.hpp
index 5c3f835..87e33da 100644
--- a/plugins/Pornhub.hpp
+++ b/plugins/Pornhub.hpp
@@ -21,7 +21,7 @@ namespace QuickMedia {
class PornhubVideoPage : public VideoPage {
public:
- PornhubVideoPage(Program *program) : VideoPage(program) {}
+ PornhubVideoPage(Program *program, const std::string &url) : VideoPage(program), url(url) {}
const char* get_title() const override { return ""; }
BodyItems get_related_media(const std::string &url, std::string &channel_url) override;
std::unique_ptr<Page> create_search_page(Program *program, int &search_delay) override;
@@ -29,5 +29,8 @@ namespace QuickMedia {
std::unique_ptr<LazyFetchPage> create_channels_page(Program*, const std::string&) override {
return nullptr;
}
+ std::string get_url() override { return url; }
+ private:
+ std::string url;
};
} \ No newline at end of file