From a26d0fcc0a30a28ce0e458ea275fc0787c693bc6 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 8 Mar 2022 16:39:55 +0100 Subject: Save youtube watch progress and resume next time the video is played --- src/plugins/Lbry.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/plugins/Lbry.cpp') diff --git a/src/plugins/Lbry.cpp b/src/plugins/Lbry.cpp index 73c37ba..feac2c5 100644 --- a/src/plugins/Lbry.cpp +++ b/src/plugins/Lbry.cpp @@ -328,7 +328,7 @@ namespace QuickMedia { } static PluginResult video_get_stream_url(Page *page, const std::string &video_url, std::string &streaming_url, std::string &err_str) { - std::string url = "https://api.na-backend.odysee.com/api/v1/proxy?m=resolve"; + std::string url = "https://api.na-backend.odysee.com/api/v1/proxy?m=get"; Json::Value request_params_json(Json::objectValue); request_params_json["save_file"] = false; @@ -391,9 +391,10 @@ namespace QuickMedia { return ""; } - PluginResult LbryVideoPage::load(std::string &title, std::string&, std::vector&, std::string &err_str) { + PluginResult LbryVideoPage::load(std::string &title, std::string&, double &duration, std::vector&, std::string &err_str) { streaming_url.clear(); title = this->title; + duration = 0.0; return video_get_stream_url(this, url, streaming_url, err_str); } } \ No newline at end of file -- cgit v1.2.3