From 1bfd0bbaa1d464ddb86fb179e6a163dc0f0503cf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 28 Oct 2022 20:01:23 +0200 Subject: Mangakatana: use i3 server instead of i1 because its borked --- TODO | 1 + launcher/QuickMedia.desktop | 3 ++- launcher/QuickMedia_tabbed.desktop | 9 --------- src/QuickMedia.cpp | 3 +++ 4 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 launcher/QuickMedia_tabbed.desktop 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 urls; for(const std::string &js_section : extract_javascript_sections(html_source)) { std::vector 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; -- cgit v1.2.3