Hey, a lot of time passed from my previous article https://16rom.com/en/blog/updated-movies-downloader-online-service. Website changed flow a bit and script stops working. So I've fixed it a bit and decided to make it public available.
https://github.com/onesixromcom/uaserials
This script was created to download videos from website uaserials.pro in different quality to watch them without ads on TV from USB drive.
The most important part in this update is downloader which was moved from ffmpeg automatic playlist downloader to queded download via wget. I'm using wget functionality to retry download the file if something happens.
wget --continue --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 ${FILE_LIST[${i}]} --directory-prefix=$OUTPUT_SEGMENTS --no-verbose
Concat segment files to final movie is
ffmpeg -f concat -safe 0 -i $FILE_FFMPEG_LIST -c copy -bsf:a aac_adtstoasc $OUTPUT$VIDEO_FILENAME