From d0db77ebc9a21db33258d050c5956960808c730a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 10 May 2021 22:45:06 +0200 Subject: Use correct video url when copying to clipboard/saving when navigating to next video --- TODO | 2 -- src/QuickMedia.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/TODO b/TODO index 79aa6a9..90369ec 100644 --- a/TODO +++ b/TODO @@ -21,8 +21,6 @@ Add setting to disable sending typing events to the server (matrix). Take code from dchat to support gifs (inline in text) and support animated webp (either animated or as a static thumbnail). Scrolling in images still messes up the |current| page sometimes, need a way to fix this. Show filename at the bottom when viewing an image/video on 4chan. -Add ctrl+c keybinding to copy the url of the previewing image. -Add ctrl+c keybiding to copy the url to the currently selected post on 4chan. Use https://github.com/simdjson/simdjson as a json library in other parts than matrix. Sanitize check: do not allow pasting more than 2gb of text. Implement mentions in matrix with an autofill list, like on element. Also do the same with / commands. diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 92c259e..f4ee68f 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -2412,6 +2412,7 @@ namespace QuickMedia { } video_url = video_page->url_get_playable_url(new_video_url); + original_video_url = video_url; video_title = std::move(new_video_title); load_video_error_check(false); } else if(update_err != VideoPlayer::Error::OK) { -- cgit v1.2.3