diff --git a/src/UI/DocumentViews/MpvContainer.cc b/src/UI/DocumentViews/MpvContainer.cc index e9866e6297a2e10d144b4a27fe1a7321cc6e7d8f..425346ed36a1ef646bb5644b76034ccd307f773b 100644 --- a/src/UI/DocumentViews/MpvContainer.cc +++ b/src/UI/DocumentViews/MpvContainer.cc @@ -28,6 +28,7 @@ MpvContainer::MpvContainer(QWidget *parent) mpv_set_option_string(mpv, "sid", "no"); mpv_set_option_string(mpv, "input-default-bindings", "no"); mpv_set_option_string(mpv, "input-vo-keyboard", "no"); + mpv_set_option_string(mpv, "no-ytdl", "yes"); mpv_request_log_messages(mpv, "info"); mpv_observe_property(mpv, 0, "pause", MPV_FORMAT_FLAG); mpv_observe_property(mpv, 0, "duration", MPV_FORMAT_DOUBLE); diff --git a/src/UI/Utils.hh b/src/UI/Utils.hh index 34b57e2a119bcae629be2901e2332a26d7341836..751f86cc65d598212cf0b17af757d96d9a725bea 100644 --- a/src/UI/Utils.hh +++ b/src/UI/Utils.hh @@ -4,6 +4,8 @@ #error "This is a C++ header" #endif +#include "../Lib/Utils.hh" + class QWidget; namespace Vivy::Utils