derpherp
This commit is contained in:
12
grpoppro
12
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}"
|
||||
|
||||
Reference in New Issue
Block a user