diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-09-09 11:54:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-09-09 11:57:38 +0200 |
commit | c64d577cb053b6fee8e84f768419e84c3c9df2cc (patch) | |
tree | 26f9b83b97670f38155d8ca21bb94d77c93b15ad /src/plugins | |
parent | 76ef34393aa72230a3490ecf7b06647ede1448da (diff) |
Fix peertube video download
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Peertube.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/Peertube.cpp b/src/plugins/Peertube.cpp index dacd2d0..2b2d654 100644 --- a/src/plugins/Peertube.cpp +++ b/src/plugins/Peertube.cpp @@ -15,7 +15,7 @@ namespace QuickMedia { } PluginResult PeertubeInstanceSelectionPage::submit(const std::string&, const std::string &url, std::vector<Tab> &result_tabs) { - result_tabs.push_back(Tab{create_body(false, true), std::make_unique<PeertubeSearchPage>(program, url), create_search_bar("Search...", 350)}); + result_tabs.push_back(Tab{create_body(false, true), std::make_unique<PeertubeSearchPage>(program, url), create_search_bar("Search...", 500)}); return PluginResult::OK; } @@ -318,6 +318,12 @@ namespace QuickMedia { return url.substr(dot_index); } + std::string PeertubeVideoPage::get_download_url(int max_height) { + bool has_embedded_audio; + std::string ext; + return get_video_url(max_height, has_embedded_audio, ext); + } + std::string PeertubeVideoPage::get_video_url(int max_height, bool &has_embedded_audio, std::string &ext) { has_embedded_audio = true; |