diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-13 17:20:47 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-13 17:20:47 +0100 |
commit | 2079ac8649a160b53f9f4772290bf1171dd8ed6a (patch) | |
tree | c59c43163fcb2150475b554164dce8ccd0db2367 /plugins | |
parent | 3e55199544908a8026b4fe621b2b6af7770ce4a4 (diff) |
Temporary fix soundcloud download by using youtube-dl
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Soundcloud.hpp | 6 |
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 |