diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-03 15:56:21 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-03 15:56:21 +0200 |
commit | 962d4aef43a8b2db1531b4a687766783f88e84ed (patch) | |
tree | 4b98e2afdf54280d41fde4da0bc100ef2bedf22d /src | |
parent | 25424b31e47daa934b6cde56439923225b57515b (diff) |
Lbry: fix video not playable sometime (add odysee referer header)
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 1 | ||||
-rw-r--r-- | src/plugins/Lbry.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
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 |