diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-05-13 13:36:12 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-05-13 13:36:12 +0200 |
commit | 4af866c610a8f6650a5d2c5045c085d9af7d7951 (patch) | |
tree | 8badf8a702a7ab4b4dd1b8dfa2b5cbb51ab361e0 /plugins | |
parent | 0b86bc6849be72f28dedc15e726015d81d787cdf (diff) |
Fix soundcloud not loading all playlist tracks, auto load next page if bottom visible
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Soundcloud.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Soundcloud.hpp b/plugins/Soundcloud.hpp index 0f397a1..873de5a 100644 --- a/plugins/Soundcloud.hpp +++ b/plugins/Soundcloud.hpp @@ -4,6 +4,8 @@ #include "../include/AsyncTask.hpp" namespace QuickMedia { + class SoundcloudPlaylist; + class SoundcloudPage : public Page { public: SoundcloudPage(Program *program) : Page(program) {} @@ -44,10 +46,13 @@ namespace QuickMedia { class SoundcloudPlaylistPage : public SoundcloudPage { public: - SoundcloudPlaylistPage(Program *program, const std::string &playlist_name) : SoundcloudPage(program), playlist_name(playlist_name) {} + SoundcloudPlaylistPage(Program *program, SoundcloudPlaylist *playlist, const std::string &playlist_name) : SoundcloudPage(program), playlist(playlist), playlist_name(playlist_name), track_offset(0) {} const char* get_title() const override { return playlist_name.c_str(); } + PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override; private: + SoundcloudPlaylist *playlist; std::string playlist_name; + size_t track_offset; }; class SoundcloudAudioPage : public VideoPage { |