aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-28 20:01:23 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-28 20:01:23 +0200
commit1bfd0bbaa1d464ddb86fb179e6a163dc0f0503cf (patch)
tree4fd8f04987a3386c19004d6165bbced6be2674f9
parentb5c6432fbf3b12d1a65fdfded14c49abb49bc93c (diff)
Mangakatana: use i3 server instead of i1 because its borked
-rw-r--r--TODO1
-rw-r--r--launcher/QuickMedia.desktop3
-rw-r--r--launcher/QuickMedia_tabbed.desktop9
-rw-r--r--src/QuickMedia.cpp3
4 files changed, 6 insertions, 10 deletions
diff --git a/TODO b/TODO
index dc4ec9a..1f14ee5 100644
--- a/TODO
+++ b/TODO
@@ -240,3 +240,4 @@ Bypass compositor when fullscreening application.
Sort matrix events by timestamp (join/leave events and other things).
Update room name, avatar, etc in gui when updated.
Automatically cleanup old cache files.
+Download manga pages in parallel. This helps downloading for certain websites such as mangakatana where a single page can take more than 2 seconds but loading 5 at once allows each page to load in 0.4 seconds. \ No newline at end of file
diff --git a/launcher/QuickMedia.desktop b/launcher/QuickMedia.desktop
index a9cffaa..329beeb 100644
--- a/launcher/QuickMedia.desktop
+++ b/launcher/QuickMedia.desktop
@@ -6,4 +6,5 @@ Comment=A rofi inspired native client for web services. Supports youtube, peertu
Exec=quickmedia launcher
Terminal=false
Keywords=4chan;manga;matrix;nyaa;torrent;soundcloud;podcast;youtube;music;quickmedia;
-Icon=/usr/share/quickmedia/images/qm_logo.png \ No newline at end of file
+Categories=AudioVideo;Audio;Video;Player;
+Icon=/usr/share/quickmedia/images/qm_logo.png
diff --git a/launcher/QuickMedia_tabbed.desktop b/launcher/QuickMedia_tabbed.desktop
deleted file mode 100644
index 3b1b41f..0000000
--- a/launcher/QuickMedia_tabbed.desktop
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=QuickMedia tabbed
-GenericName=QuickMedia tabbed
-Comment=Launch QuickMedia with tabs
-Exec=tabbed -c -k quickmedia launcher -e
-Terminal=false
-Keywords=4chan;manga;matrix;nyaa;torrent;soundcloud;podcast;youtube;music;quickmedia;
-Icon=/usr/share/quickmedia/images/qm_logo.png \ No newline at end of file
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 57c5489..f7859ef 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -921,6 +921,9 @@ namespace QuickMedia {
std::vector<std::string> urls;
for(const std::string &js_section : extract_javascript_sections(html_source)) {
std::vector<std::string> js_string_array = get_javascript_string_arrays_unique(js_section);
+ for(std::string &str : js_string_array) {
+ string_replace_all(str, "i1.mangakatana", "i3.mangakatana");
+ }
urls.insert(urls.end(), std::move_iterator(js_string_array.begin()), std::move_iterator(js_string_array.end()));
}
return urls;