diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-05-30 17:01:14 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-05-30 17:01:14 +0200 |
commit | 664835fcee5f0dc1fa5aba63c845c4561628a20f (patch) | |
tree | a296eb4e0dd911e54bc9ba458244263764e1837b /include | |
parent | 196fd3182672b03f8468e5654736c614242b0f64 (diff) |
Add option to only save audio for youtube videos. Use youtube plugin for info urls. Use youtube plugin for urls on matrix
Diffstat (limited to 'include')
-rw-r--r-- | include/QuickMedia.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index b2319ee..82b2ee4 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -111,7 +111,9 @@ namespace QuickMedia { bool show_info_page(BodyItem *body_item, bool include_reverse_image_search); void page_loop_render(sf::RenderWindow &window, std::vector<Tab> &tabs, int selected_tab, TabAssociatedData &tab_associated_data, const Json::Value *json_chapters, Tabs &ui_tabs); using PageLoopSubmitHandler = std::function<void(const std::vector<Tab> &new_tabs)>; - void page_loop(std::vector<Tab> &tabs, int start_tab_index = 0, PageLoopSubmitHandler after_submit_handler = nullptr); + // Returns false if the page loop was escaped by user navigation (pressing escape) or if there was an error at startup + bool page_loop(std::vector<Tab> &tabs, int start_tab_index = 0, PageLoopSubmitHandler after_submit_handler = nullptr); + void video_page_download_video(const std::string &url, bool use_youtube_dl, sf::WindowHandle video_player_window = None); void video_content_page(Page *parent_page, VideoPage *video_page, std::string video_title, bool download_if_streaming_fails, BodyItems &next_play_items, int play_index, int *parent_body_page = nullptr, const std::string &parent_page_search = ""); // Returns -1 to go to previous chapter, 0 to stay on same chapter and 1 to go to next chapter int image_page(MangaImagesPage *images_page, Body *chapters_body); |