version=3
-#
-#http://bitbucket.org/rg3/youtube-dl/wiki/Home http://bitbucket.org/rg3/youtube-dl/raw/(.*)/youtube-dl
-#http://bitbucket.org/rg3/youtube-dl/get/(.*).gz
-#
-http://bitbucket.org/rg3/youtube-dl/downloads/ (?:.*/)?(\d+\.\d+\.\d+)\.tar\.gz
+opts=dversionmangle=s/\+dfsg\d*$// \
+https://github.com/rg3/youtube-dl/tags .*/(?:v||youtube-dl-)(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))