From ad2685624cf233456623c5fa34083412df53873c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 16 Jun 2022 14:43:20 +0200 Subject: Soundcloud: fix title and download link not updating when changing video, fix text y offset after mgl update --- src/plugins/Soundcloud.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/plugins/Soundcloud.cpp') 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&, std::string&) { - title = this->title; + PluginResult SoundcloudAudioPage::load(const SubmitArgs &args, std::string &title, std::string&, double &duration, std::vector&, std::string&) { + SoundcloudTrack *track = static_cast(args.extra.get()); + if(track) + permalink_url = track->permalink_url; + + title = args.title; + //title = this->title; duration = 0.0; return PluginResult::OK; } -- cgit v1.2.3