From 9270a1c5ece5b9c28363b0a85c184d94ca27a7ba Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Mon, 30 Aug 2021 12:48:30 +0200 Subject: [PATCH] UI MISC: Include parent Utils.hh + try to disable ytdl with mpv --- src/UI/DocumentViews/MpvContainer.cc | 1 + src/UI/Utils.hh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/UI/DocumentViews/MpvContainer.cc b/src/UI/DocumentViews/MpvContainer.cc index e9866e62..425346ed 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 34b57e2a..751f86cc 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 -- GitLab