mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
feat: title in mpv android
This commit is contained in:
@@ -44,7 +44,7 @@ error_linux() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
player_droid() {
|
player_droid() {
|
||||||
am start --user 0 -a android.intent.action.VIEW -d "$1" -n is.xyz.mpv/.MPVActivity >/dev/null 2>&1
|
am start --user 0 -a android.intent.action.VIEW -d "$1" -n is.xyz.mpv/.MPVActivity -e "title" "$2" >/dev/null 2>&1
|
||||||
#am start --user 0 -a android.intent.action.VIEW -d "$1" -n org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity -e "title" "$2" >/dev/null 2>&1
|
#am start --user 0 -a android.intent.action.VIEW -d "$1" -n org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity -e "title" "$2" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
ani-new
2
ani-new
@@ -70,7 +70,7 @@ printf "%s\n" "$url" | while read -r id title; do
|
|||||||
case $choice in
|
case $choice in
|
||||||
stream)
|
stream)
|
||||||
info_$os "opening $title" "mpv"
|
info_$os "opening $title" "mpv"
|
||||||
player_$os "$provider_video" "$title" "--http-header-fields='Referer: https://$domain' --sub-file='$subtitle'"
|
player_$os "$provider_video" "$title" "--referrer='https://$domain' --sub-file='$subtitle'"
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
cast)
|
cast)
|
||||||
|
|||||||
4
download
4
download
@@ -101,9 +101,7 @@ esac
|
|||||||
|
|
||||||
if [ -n "$fallback" ]; then
|
if [ -n "$fallback" ]; then
|
||||||
info "Using fallback" "$app" "$id"
|
info "Using fallback" "$app" "$id"
|
||||||
filename="$(date +%s).mp4"
|
yt-dlp --no-skip-unavailable-fragments --fragment-retries infinite -N 16 -S 'res,ext:mp4:m4a' --recode mp4 "$link" -o "$download_dir/%(title)s.%(ext)s"
|
||||||
yt-dlp --no-skip-unavailable-fragments --fragment-retries infinite -N 16 -S 'res,ext:mp4:m4a' --recode mp4 "$link" -o "$filename"
|
|
||||||
mv -v "$filename" "$download_dir"
|
|
||||||
else
|
else
|
||||||
info "Downloading Video" "$app" "$id"
|
info "Downloading Video" "$app" "$id"
|
||||||
printf "%s" "$video_url" | aria2c -x16 -s16 -j10 -k'1M' --user-agent="$agent" -d "$download_dir" -i - --download-result=hide --summary-interval=0 || notify_$os "Unable to Download $app Video"
|
printf "%s" "$video_url" | aria2c -x16 -s16 -j10 -k'1M' --user-agent="$agent" -d "$download_dir" -i - --download-result=hide --summary-interval=0 || notify_$os "Unable to Download $app Video"
|
||||||
|
|||||||
Reference in New Issue
Block a user