From d23ee9811444ebc89ddfa8426d1944a42689226d Mon Sep 17 00:00:00 2001 From: konsthol Date: Mon, 30 Dec 2024 18:18:18 +0200 Subject: [PATCH] derpherp --- grpoppro | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/grpoppro b/grpoppro index 8684928..4120a2a 100755 --- a/grpoppro +++ b/grpoppro @@ -96,14 +96,15 @@ function getMovieStreamUrl { function play { if [[ "$player" == "mpv" ]]; then - MPV_OPTS="--vo=gpu \ + MPV_OPTS='--vo=gpu \ --gpu-api=opengl \ --opengl-es=yes \ --really-quiet \ --msg-level=all=no \ --no-load-scripts \ --profile=sw-fast \ - --no-ytdl" + --no-ytdl \ + --http-header-fields="User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0"' MPVPID="$(pidof mpv | cut -d' ' -f1)" [[ -n "$MPVPID" ]] && kill -s SIGTERM "$MPVPID" player="mpv --save-position-on-quit --fs ${MPV_OPTS}" @@ -237,14 +238,15 @@ function resumeUnfinishedEpisode { sourceData streamurl="$lastEpisodePlayedURL" if [[ "$player" == "mpv" ]]; then - MPV_OPTS="--vo=gpu \ + MPV_OPTS='--vo=gpu \ --gpu-api=opengl \ --opengl-es=yes \ - --really-quiet \ --msg-level=all=no \ + --really-quiet \ --no-load-scripts \ --profile=sw-fast \ - --no-ytdl" + --no-ytdl \ + --http-header-fields="User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0"' MPVPID="$(pidof mpv | cut -d' ' -f1)" [[ -n "$MPVPID" ]] && kill -s SIGTERM "$MPVPID" player="mpv --resume-playback --fs ${MPV_OPTS}"