From 962d4aef43a8b2db1531b4a687766783f88e84ed Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 3 Jul 2023 15:56:21 +0200 Subject: Lbry: fix video not playable sometime (add odysee referer header) --- src/QuickMedia.cpp | 1 + src/plugins/Lbry.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index c4a55d0..25f17d0 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -3355,6 +3355,7 @@ namespace QuickMedia { TaskResult load_result = run_task_with_loading_screen([&]() { video_info.duration = 0.0; video_info.chapters.clear(); + video_info.referer.clear(); if(video_page->load(submit_args, video_info, err_str) != PluginResult::OK) return false; diff --git a/src/plugins/Lbry.cpp b/src/plugins/Lbry.cpp index 34ce982..38b6238 100644 --- a/src/plugins/Lbry.cpp +++ b/src/plugins/Lbry.cpp @@ -477,6 +477,7 @@ namespace QuickMedia { video_info.title = args.title; //title = this->title; video_info.duration = 0.0; + video_info.referer = "https://odysee.com/"; return video_get_stream_url(this, streaming_url, url, streams, direct_video_url, err_str); } } \ No newline at end of file -- cgit v1.2.3