X-Git-Url: https://git.rapsys.eu/youtubedl/blobdiff_plain/e36b64ec9206ac832f251a62b2ae3d27860033ca..77f319061b1661d04f5f4674aac40c72b824d665:/debian/watch?ds=sidebyside

diff --git a/debian/watch b/debian/watch
index 591ed75..78bd69c 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,4 @@
-version=3
-  https://github.com/rg3/youtube-dl/downloads/ /downloads/rg3/youtube-dl/youtube-dl\.(\d+\.\d+\.\d+)\.tar\.gz
+version=4
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%youtube-dl-$1.tar.gz%,dversionmangle=s/\+dfsg\d*$//" \
+https://github.com/rg3/youtube-dl/releases \
+     (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate