aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-22 01:44:39 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-22 01:44:39 +0100
commit89c41c1488854858e02ff6bd48a6518161fa05a5 (patch)
tree2161e26f342c4b2f9579b6521dc347a29e25fa6c /include
parent52bc7111147dd3e87e4bf0ae57241c2b81892f78 (diff)
Allow launching directly into 4chan thread
Diffstat (limited to 'include')
-rw-r--r--include/QuickMedia.hpp11
1 files changed, 9 insertions, 2 deletions
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<VideoPlayer> video_player;
bool use_youtube_dl = false;
int video_max_height = 0;