diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-05-13 23:30:20 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-05-13 23:30:20 +0200 |
commit | acb6ac0a04e800a79876908fd1fdb98dc7e93678 (patch) | |
tree | e8d0e97b3ac22d8ee1fc5b5a515047bf4a173014 /src/QuickMedia.cpp | |
parent | 4af866c610a8f6650a5d2c5045c085d9af7d7951 (diff) |
Show local time for nyaa.si, soundcloud and spotify. Add sukebei
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r-- | src/QuickMedia.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index c81e0c5..a58b3d8 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1076,10 +1076,13 @@ namespace QuickMedia { tabs.push_back(Tab{create_body(), std::make_unique<MangaCombinedSearchPage>(this, std::move(pages)), create_search_bar("Search...", 400)}); } else if(strcmp(plugin_name, "nyaa.si") == 0) { - auto category_page = std::make_unique<NyaaSiCategoryPage>(this); - auto categories_body = create_body(); - category_page->get_categories(categories_body->items); - tabs.push_back(Tab{std::move(categories_body), std::move(category_page), create_search_bar("Search...", SEARCH_DELAY_FILTER)}); + auto categories_nyaa_si_body = create_body(); + get_nyaa_si_categories(categories_nyaa_si_body->items); + tabs.push_back(Tab{std::move(categories_nyaa_si_body), std::make_unique<NyaaSiCategoryPage>(this, false), create_search_bar("Search...", SEARCH_DELAY_FILTER)}); + + auto categories_sukebei_body = create_body(); + get_sukebei_categories(categories_sukebei_body->items); + tabs.push_back(Tab{std::move(categories_sukebei_body), std::make_unique<NyaaSiCategoryPage>(this, true), create_search_bar("Search...", SEARCH_DELAY_FILTER)}); } else if(strcmp(plugin_name, "4chan") == 0) { auto boards_page = std::make_unique<FourchanBoardsPage>(this, resources_root); auto boards_body = create_body(); |