diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-13 17:53:54 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-13 17:53:54 +0100 |
commit | 5996f45fbbca1fce882820984708a104d2b05d41 (patch) | |
tree | aee3aa6b391067d25760676a7a49b5eb211dec48 /plugins | |
parent | 2079ac8649a160b53f9f4772290bf1171dd8ed6a (diff) |
Soundcloud: display music title in mpv
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Soundcloud.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Soundcloud.hpp b/plugins/Soundcloud.hpp index 6f96481..5850fab 100644 --- a/plugins/Soundcloud.hpp +++ b/plugins/Soundcloud.hpp @@ -58,13 +58,15 @@ namespace QuickMedia { class SoundcloudAudioPage : public VideoPage { public: - SoundcloudAudioPage(Program *program, const std::string &url, std::string permalink_url) : VideoPage(program, url), permalink_url(std::move(permalink_url)) {} + SoundcloudAudioPage(Program *program, std::string title, const std::string &url, std::string permalink_url) : VideoPage(program, url), title(std::move(title)), permalink_url(std::move(permalink_url)) {} const char* get_title() const override { return ""; } + PluginResult load(std::string &title, std::string &channel_url, std::vector<MediaChapter> &chapters, std::string &err_str) override; 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: + std::string title; // TODO: Remove when youtube-dl is no longer required to download music std::string permalink_url; }; |