aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Peertube.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-09 11:54:24 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-09 11:57:38 +0200
commitc64d577cb053b6fee8e84f768419e84c3c9df2cc (patch)
tree26f9b83b97670f38155d8ca21bb94d77c93b15ad /src/plugins/Peertube.cpp
parent76ef34393aa72230a3490ecf7b06647ede1448da (diff)
Fix peertube video download
Diffstat (limited to 'src/plugins/Peertube.cpp')
-rw-r--r--src/plugins/Peertube.cpp8
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;