diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Info.cpp | 2 | ||||
-rw-r--r-- | src/plugins/Mangadex.cpp | 3 | ||||
-rw-r--r-- | src/plugins/NyaaSi.cpp | 2 | ||||
-rw-r--r-- | src/plugins/Youtube.cpp | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/src/plugins/Info.cpp b/src/plugins/Info.cpp index 90c8fe1..252cbea 100644 --- a/src/plugins/Info.cpp +++ b/src/plugins/Info.cpp @@ -42,7 +42,7 @@ namespace QuickMedia { const std::string search_url = "https://www.google.com/search?q=" + url_param_encode(search_term); return open_with_browser(search_url); } else if(is_youtube_url(args.url)) { - result_tabs.push_back(Tab{nullptr, std::make_unique<YoutubeVideoPage>(program, args.url), nullptr}); + result_tabs.push_back(Tab{nullptr, std::make_unique<YoutubeVideoPage>(program, args.url, false), nullptr}); return PluginResult::OK; } else { return open_with_browser(args.url); diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp index 2efd2f1..c100b0b 100644 --- a/src/plugins/Mangadex.cpp +++ b/src/plugins/Mangadex.cpp @@ -107,8 +107,11 @@ namespace QuickMedia { std::string title; const Json::Value &title_en_json = title_json["en"]; + const Json::Value &title_ja_json = title_json["ja"]; if(title_en_json.isString()) title = title_en_json.asString(); + else if(title_ja_json.isString()) + title = title_ja_json.asString(); else title = "No title"; // TODO: Verify if this happens. If it happens, get the title in any available language diff --git a/src/plugins/NyaaSi.cpp b/src/plugins/NyaaSi.cpp index fc3e7ee..fd24e71 100644 --- a/src/plugins/NyaaSi.cpp +++ b/src/plugins/NyaaSi.cpp @@ -328,7 +328,7 @@ namespace QuickMedia { std::string title; BodyItems result_items; - auto torrent_item = BodyItem::create("💾 Download magnet"); + auto torrent_item = BodyItem::create("💾 Download"); std::string magnet_url; std::string description; diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp index 1b46ed6..7552967 100644 --- a/src/plugins/Youtube.cpp +++ b/src/plugins/Youtube.cpp @@ -1883,7 +1883,7 @@ namespace QuickMedia { return; } - YoutubeVideoPage::YoutubeVideoPage(Program *program, std::string url) : VideoPage(program, "") { + YoutubeVideoPage::YoutubeVideoPage(Program *program, std::string url, bool autoplay) : VideoPage(program, "", autoplay) { set_url(std::move(url)); } |