From 04d0fa5001ebc9c43bc602823cd3395fc215c569 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 18 Oct 2020 22:07:27 +0200 Subject: Set all notification titles to QuickMedia, fallback to BROWSER env if xdg-utils is not installed for opening urls, add more .mp4 file magic checks --- src/plugins/Mangadex.cpp | 2 +- src/plugins/NyaaSi.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp index 0ccecdd..3574914 100644 --- a/src/plugins/Mangadex.cpp +++ b/src/plugins/Mangadex.cpp @@ -42,7 +42,7 @@ namespace QuickMedia { static bool get_cookie_filepath(std::string &cookie_filepath) { Path cookie_path = get_storage_dir().join("cookies"); if(create_directory_recursive(cookie_path) != 0) { - show_notification("Storage", "Failed to create directory: " + cookie_path.data, Urgency::CRITICAL); + show_notification("QuickMedia", "Failed to create directory: " + cookie_path.data, Urgency::CRITICAL); return false; } cookie_filepath = cookie_path.join("mangadex.txt").data; diff --git a/src/plugins/NyaaSi.cpp b/src/plugins/NyaaSi.cpp index 860eb71..3ae6ffb 100644 --- a/src/plugins/NyaaSi.cpp +++ b/src/plugins/NyaaSi.cpp @@ -385,7 +385,7 @@ namespace QuickMedia { (void)result_tabs; if(strncmp(url.c_str(), "magnet:?", 8) == 0) { if(!is_program_executable_by_name("xdg-open")) { - show_notification("Nyaa.si", "xdg-utils which provides xdg-open needs to be installed to download torrents", Urgency::CRITICAL); + show_notification("QuickMedia", "xdg-utils which provides xdg-open needs to be installed to download torrents", Urgency::CRITICAL); return PluginResult::ERR; } const char *args[] = { "xdg-open", url.c_str(), nullptr }; -- cgit v1.2.3