From b486665e9470ff3477c97a70e7982dd587b4c7d6 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 6 Aug 2020 03:18:43 +0200 Subject: Disable key repeat for infinite image mode --- src/QuickMedia.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/QuickMedia.cpp') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 85c6695..a7fca2d 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -251,8 +251,10 @@ namespace QuickMedia { } case Page::IMAGES_CONTINUOUS: { body->draw_thumbnails = false; + window.setKeyRepeatEnabled(false); image_continuous_page(); body->filter_search_fuzzy(""); + window.setKeyRepeatEnabled(true); break; } case Page::CONTENT_LIST: { @@ -872,6 +874,7 @@ namespace QuickMedia { const int max_fallbacks = 3; /* itags from: https://gist.github.com/sidneys/7095afe4da4ae58694d128b1034e01e2 */ /* 1080p, 720p, 360p */ + /* TODO: Use invidious api instead (/api/v1/videos/, formatStreams) https://github.com/iv-org/invidious/wiki/API */ const char *fallback_itags[max_fallbacks] = { "37", "22", "18" }; Page previous_page = pop_page_stack(); -- cgit v1.2.3