aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-18 22:07:27 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-18 22:07:27 +0200
commit04d0fa5001ebc9c43bc602823cd3395fc215c569 (patch)
treeff64d62ad97bc363385e327abcb3e7d15d0f9c06 /src/plugins
parenta791c8a76d8a5caa24b2c17436dec6aadd4d7e42 (diff)
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
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Mangadex.cpp2
-rw-r--r--src/plugins/NyaaSi.cpp2
2 files changed, 2 insertions, 2 deletions
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 };