aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-10 13:31:24 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-10 14:07:31 +0200
commit6eb8d7fbcbc64bcb89083ab46d591d9f9ed5b388 (patch)
treeacfd12e231bc1a8fd9905b4035cf58d089f88343 /plugins
parentb88c367c48da452f0100bd8cffaba5d76cd83f0d (diff)
Convert file-manager --dir to absolute path
Fixes parent navigation when using relative path for --dir. Submit should not be async for peertube. Fixes peertube video length.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Peertube.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Peertube.hpp b/plugins/Peertube.hpp
index 88ba1ca..c8578f7 100644
--- a/plugins/Peertube.hpp
+++ b/plugins/Peertube.hpp
@@ -8,6 +8,7 @@ namespace QuickMedia {
PeertubeInstanceSelectionPage(Program *program) : LazyFetchPage(program) {}
const char* get_title() const override { return "Select instance"; }
bool allow_submit_no_selection() const override { return true; }
+ bool submit_is_async() const override { return false; }
PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override;
PluginResult lazy_fetch(BodyItems &result_items) override;
};
@@ -23,6 +24,7 @@ namespace QuickMedia {
PeertubeSearchPage(Program *program, const std::string &server);
const char* get_title() const override { return "Search"; }
bool search_is_filter() override { return false; }
+ bool submit_is_async() const override { return false; }
// Fetches local videos if |str| is empty
SearchResult search(const std::string &str, BodyItems &result_items) override;
PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override;
@@ -41,6 +43,7 @@ namespace QuickMedia {
PeertubeChannelPage(Program *program, const std::string &server, std::string display_name, std::string name) :
LazyFetchPage(program), server(server), name(std::move(name)), title(std::move(display_name)) {}
const char* get_title() const override { return title.c_str(); }
+ bool submit_is_async() const override { return false; }
PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override;
PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override;
PluginResult lazy_fetch(BodyItems &result_items) override;
@@ -55,6 +58,7 @@ namespace QuickMedia {
PeertubePlaylistPage(Program *program, const std::string &server, std::string display_name, std::string uuid) :
LazyFetchPage(program), server(server), uuid(std::move(uuid)), title(std::move(display_name)) {}
const char* get_title() const override { return title.c_str(); }
+ bool submit_is_async() const override { return false; }
PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override;
PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override;
PluginResult lazy_fetch(BodyItems &result_items) override;