Autoupdate youtube-dl

Use this forum to request features. Maybe you'll get lucky!
Post Reply
User avatar
Soffort
Posts: 44
Joined: Wed Mar 15, 2017 7:27 pm

Autoupdate youtube-dl

Post 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.
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Autoupdate youtube-dl

Post 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
User avatar
kibi
Posts: 106
Joined: Mon Feb 29, 2016 12:57 pm
Contact:

Re: Autoupdate youtube-dl

Post 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
Alexander Sorkin
User avatar
Soffort
Posts: 44
Joined: Wed Mar 15, 2017 7:27 pm

Re: Autoupdate youtube-dl

Post 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.
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Autoupdate youtube-dl

Post by admin »

That's ok :-) I'll try to be more updated on the youtube-dl.

-steinar
Post Reply