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 /src | |
parent | 2079ac8649a160b53f9f4772290bf1171dd8ed6a (diff) |
Soundcloud: display music title in mpv
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/Soundcloud.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/Soundcloud.cpp b/src/plugins/Soundcloud.cpp index 676db3a..fa37e29 100644 --- a/src/plugins/Soundcloud.cpp +++ b/src/plugins/Soundcloud.cpp @@ -280,7 +280,7 @@ namespace QuickMedia { if(track) permalink_url = track->permalink_url; - result_tabs.push_back(Tab{nullptr, std::make_unique<SoundcloudAudioPage>(program, url_json.asString(), std::move(permalink_url)), nullptr}); + result_tabs.push_back(Tab{nullptr, std::make_unique<SoundcloudAudioPage>(program, title, url_json.asString(), std::move(permalink_url)), nullptr}); } return PluginResult::OK; @@ -469,6 +469,11 @@ namespace QuickMedia { return PluginResult::OK; } + PluginResult SoundcloudAudioPage::load(std::string &title, std::string&, std::vector<MediaChapter>&, std::string&) { + title = this->title; + return PluginResult::OK; + } + std::string SoundcloudAudioPage::url_get_playable_url(const std::string &url) { std::string query_url = url + "?client_id=" + client_id; |