feat: title in mpv android

This commit is contained in:
coolnsx
2025-05-22 16:59:50 +05:30
parent 3112f8e36d
commit 4346bf79bc
3 changed files with 3 additions and 5 deletions

View File

@@ -101,9 +101,7 @@ esac
if [ -n "$fallback" ]; then
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 "$filename"
mv -v "$filename" "$download_dir"
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"
else
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"