update-check: use gitlab settings for code.videolan.org

This commit is contained in:
Duncaen 2022-08-29 23:26:04 +02:00
parent 7a0be1f2ee
commit cdbac60a1c
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ update_check() {
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
url="https://github.com/$pkgurlname/tags"
rx='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[\d.]+(?=\.tar\.gz")';;
*//gitlab.*)
*//gitlab.*|*code.videolan.org*)
case "$url" in
*/-/*) pkgurlname="$(printf %s "$url" | sed -e 's%/-/.*%%g; s%/$%%')";;
*) pkgurlname="$(printf %s "$url" | cut -d / -f 1-5)";;