From 89c41c1488854858e02ff6bd48a6518161fa05a5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 22 Nov 2022 01:44:39 +0100 Subject: Allow launching directly into 4chan thread --- include/QuickMedia.hpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'include/QuickMedia.hpp') diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 675fa0e..0980b76 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -170,6 +170,13 @@ namespace QuickMedia { FORCE }; + enum class LaunchUrlType { + NONE, + YOUTUBE_VIDEO, + YOUTUBE_CHANNEL, + FOURCHAN_THREAD + }; + Display *disp; mgl::Window window; Matrix *matrix = nullptr; @@ -226,8 +233,8 @@ namespace QuickMedia { bool window_closed = false; std::string pipe_selected_text; std::filesystem::path file_manager_start_dir; - std::string youtube_url; - std::string youtube_channel_url; + std::string launch_url; + LaunchUrlType launch_url_type = LaunchUrlType::NONE; std::unique_ptr video_player; bool use_youtube_dl = false; int video_max_height = 0; -- cgit v1.2.3