diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-06-16 14:43:20 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-06-16 15:09:30 +0200 |
commit | ad2685624cf233456623c5fa34083412df53873c (patch) | |
tree | 370acf204f01a9a6d877345b5f41977a8edd8441 /src/plugins/Soundcloud.cpp | |
parent | e471a1f93ee23f0f729d64068504cb892481b56f (diff) |
Soundcloud: fix title and download link not updating when changing video, fix text y offset after mgl update
Diffstat (limited to 'src/plugins/Soundcloud.cpp')
-rw-r--r-- | src/plugins/Soundcloud.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/plugins/Soundcloud.cpp b/src/plugins/Soundcloud.cpp index e088f73..bc89448 100644 --- a/src/plugins/Soundcloud.cpp +++ b/src/plugins/Soundcloud.cpp @@ -477,8 +477,13 @@ namespace QuickMedia { return PluginResult::OK; } - PluginResult SoundcloudAudioPage::load(std::string &title, std::string&, double &duration, std::vector<MediaChapter>&, std::string&) { - title = this->title; + PluginResult SoundcloudAudioPage::load(const SubmitArgs &args, std::string &title, std::string&, double &duration, std::vector<MediaChapter>&, std::string&) { + SoundcloudTrack *track = static_cast<SoundcloudTrack*>(args.extra.get()); + if(track) + permalink_url = track->permalink_url; + + title = args.title; + //title = this->title; duration = 0.0; return PluginResult::OK; } |