From 59e4ce5c35e7e5a73d61e7111e8d4f07d63b7056 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 4 Jun 2021 19:22:04 +0200 Subject: Add grid view --- src/plugins/Soundcloud.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/Soundcloud.cpp') diff --git a/src/plugins/Soundcloud.cpp b/src/plugins/Soundcloud.cpp index 9c2d5f4..f4d01b6 100644 --- a/src/plugins/Soundcloud.cpp +++ b/src/plugins/Soundcloud.cpp @@ -253,7 +253,7 @@ namespace QuickMedia { if(url == "track") { SoundcloudPlaylist *playlist = static_cast(submit_body_item->extra.get()); - auto body = create_body(); + auto body = create_body(false, true); body->items = playlist->tracks; result_tabs.push_back(Tab{std::move(body), std::make_unique(program, playlist, title), nullptr}); } else if(url.find("/stream/users/") != std::string::npos) { @@ -263,7 +263,7 @@ namespace QuickMedia { DownloadResult result = download_json(json_root, query_url, {}, true); if(result != DownloadResult::OK) return download_result_to_plugin_result(result); - auto body = create_body(); + auto body = create_body(false, true); std::string next_href; PluginResult pr = parse_user_page(json_root, body->items, next_href); if(pr != PluginResult::OK) return pr; @@ -283,7 +283,7 @@ namespace QuickMedia { if(!url_json.isString()) return PluginResult::ERR; - result_tabs.push_back(Tab{create_body(), std::make_unique(program, url_json.asString()), nullptr}); + result_tabs.push_back(Tab{nullptr, std::make_unique(program, url_json.asString()), nullptr}); } return PluginResult::OK; -- cgit v1.2.3