From da827778f8c5d2f0cfc56b297099ba58454c38ed Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 26 Mar 2021 16:45:41 +0100 Subject: Add soundcloud --- plugins/Pornhub.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/Pornhub.hpp') 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 create_search_page(Program *program, int &search_delay) override; @@ -29,5 +29,8 @@ namespace QuickMedia { std::unique_ptr 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 -- cgit v1.2.3