Page 1 of 1

Autoupdate youtube-dl

Posted: Wed Mar 29, 2017 12:34 pm
by Soffort
Many mediahostings updating their logic much more frequently, than FFAStrans. I scheduled an OS-task for autoupdate youtube-dl every night, but build-in function will be more comfortable.

I created a folder "Scripts" in FFAStrans program folder, download wget.exe and launch "wget.exe --output-file="wget.log" --timestamping --force-directories --no-host-directories --cut-dirs=1 --directory-prefix="../Processors/ffmpeg/" --backups=2 "https://yt-dl.org/latest/youtube-dl.exe""

This command download only newer versions of youtube-dl and create backups.

Re: Autoupdate youtube-dl

Posted: Wed Mar 29, 2017 4:26 pm
by admin
I advice you to not do that. If youtube-dl suddenly change some of its parameters FFAStrans may break on the node. That goes for all dependencies shipped with FFAStrans. If you change them you're on your own.

-steinar

Re: Autoupdate youtube-dl

Posted: Wed Mar 29, 2017 5:58 pm
by kibi
Youtube-dl can update itself without external downloaders. Just run the command:

Code: Select all

Youtube-dl.exe -U
Before first update it's better to make manual backup of bundled version Youtube-dl.exe.

Code: Select all

copy youtube-dl.exe youtube-dl.exe.backup

Re: Autoupdate youtube-dl

Posted: Thu Mar 30, 2017 10:31 pm
by Soffort
Thank you for answer. And for update key of youtube-dl. How could I miss it?! :O
admin wrote: Wed Mar 29, 2017 4:26 pm I advice you to not do that. If youtube-dl suddenly change some of its parameters FFAStrans may break on the node. That goes for all dependencies shipped with FFAStrans. If you change them you're on your own.
Ok. I understand, why autoupdate inside FFAStrans is a bad idea. But it works in newsroom production. Journalists must use many videos from mediashares, and less of them has skills to download video themselves. My experience tells me that the sites changed much more often, than options of youtube-dl :)
Download workflow completely standalone and error inside it don't affect others, like postconvertors and delivers. If one of updates youtube-dl broke workflow - I will report on forum as soon as possible, if you don't mind.

Re: Autoupdate youtube-dl

Posted: Fri Mar 31, 2017 6:29 am
by admin
That's ok :-) I'll try to be more updated on the youtube-dl.

-steinar