[Slackbuilds-users] youtube-dl DOWNLOAD= moved ?
Konrad J Hambrick
kjhambrick at gmail.com
Sat Jul 14 10:21:24 UTC 2018
Dimitris --
The DOWNLOAD= URI in this week's youtube-dl.info was also incorrect.
When I 'found' and downloaded the File, the MD5SUM= in the youtube-dl.info
File was OK and I was able to build a working youtube-gl version 2018-07-04
Ed --
Yes, the URI for the youtube-dl file is predictable.
The youtube-dl releases are here:
https://github.com/rg3/youtube-dl/releases/
Each YYYY.MM.DD Version is in a ~/YYYY.MM.DD/ subdirectory ( I dropped the
https so gmail does not auto-link the 'url' ):
github.com/rg3/youtube-dl/releases/YYYY.MM.DD/
And each of the versioned tar.gz files is:
github.com/rg3/youtube-dl/releases/YYYY.MM.DD/youtube-dl-YYYY.MM.DD.tar.gz
So for example, the DOWNLOAD= setting for Version 2018.07.04 should have
been:
DOWNLOAD="
https://github.com/rg3/youtube-dl/releases/download/2018.07.04/youtube-dl-2018.07.04.tar.gz
"
At least the pattern works for now, until they reorganize github :)
-- kjh
This Q&d script will generate a working youtube-dl.info DOWNLOAD= URI for a
DateStamped Version:
It can also generate the URI for the corresponding MD5SUMS File for
checking the downloaded file.
# --- cut here ---
#!/bin/sh
URI="https://github.com/rg3/youtube-dl/releases/download"
VER="<<VERSION>>/youtube-dl-<<VERSION>>.tar.gz"
MD5="<<VERSION>>/MD5SUMS"
DoMD5=0
[ "$1" = "-m" ] && DoMD5=1 && shift
[ $# -lt 1 ] && echo "usage `basename $0` Version [ Version ... ]" >&2 &&
exit 1
for Str in $@
do
Ver="$(echo "$Str" |sed -e 's/\-/./g')" # because I am old and
forgetful ...
if [ "$DoMD5" != "1" ]
then
echo "$URI/$VER" |sed -e "s#<<VERSION>>#$Ver#g"
else
echo "$URI/$MD5" |sed -e "s#<<VERSION>>#$Ver#g"
fi
done
# --- cut there ---
Example ... The next version of youtube-dl is 2018-07.10
$ ./.gen-uri.sh 2018.07.10
https://github.com/rg3/youtube-dl/releases/download/2018.07.10/youtube-dl-2018.07.10.tar.gz
There is also an MD5SUMS file ... get it ...
$ ./.gen-uri.sh -m 2018.07.10
https://github.com/rg3/youtube-dl/releases/download/2018.07.10/MD5SUMS
On Tue, Jul 10, 2018 at 9:42 PM, Ed Ender <skaendo at excite.com> wrote:
> This one works too:
> https://github.com/rg3/youtube-dl/releases/download/
> 2018.07.10/youtube-dl-2018.07.10.tar.gz
>
> I prefer not to use referral links myself.
> Just my 2 cents.
>
> Ed
>
>
> -----Original Message-----
> From: "Alexander Verbovetsky" [alik at ejik.org]
> Date: 07/10/2018 08:37 PM
> To: slackbuilds-users at slackbuilds.org
> Subject: Re: [Slackbuilds-users] youtube-dl DOWNLOAD= moved ?
>
> Hello,
>
> > When I suggested to use upstream's releases instead of the auto
> > generated ones at github which were causing issues I neglected to
> > notice that upstream removed old releases... Sorry about that...
>
> But this url works:
> https://yt-dl.org/downloads/2018.06.25/youtube-dl-2018.06.25.tar.gz
>
> The broken one is:
> http://www.yt-dl.org/downloads/latest/youtube-dl-2018.06.25.tar.gz
>
> Best regards,
> Alexander
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
>
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20180714/efa26724/attachment.html>
More information about the SlackBuilds-users
mailing list