aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Soundcloud.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Soundcloud.hpp b/plugins/Soundcloud.hpp
index eeb1f46..6f96481 100644
--- a/plugins/Soundcloud.hpp
+++ b/plugins/Soundcloud.hpp
@@ -58,10 +58,14 @@ namespace QuickMedia {
class SoundcloudAudioPage : public VideoPage {
public:
- SoundcloudAudioPage(Program *program, const std::string &url) : VideoPage(program, url) {}
+ SoundcloudAudioPage(Program *program, const std::string &url, std::string permalink_url) : VideoPage(program, url), permalink_url(std::move(permalink_url)) {}
const char* get_title() const override { return ""; }
bool autoplay_next_item() override { return true; }
std::string url_get_playable_url(const std::string &url) override;
+ std::string get_download_url(int max_height) override;
bool video_should_be_skipped(const std::string &url) override { return url == "track" || url.find("/stream/users/") != std::string::npos; }
+ private:
+ // TODO: Remove when youtube-dl is no longer required to download music
+ std::string permalink_url;
};
} \ No newline at end of file