A feature-rich command-line audio/video downloader
Do not update if already up-to-date (Closes #166)
Philipp Hagemeister273659562839
diff --git a/youtube-dl b/youtube-dlindex fa1e482ba5..34e86e0279 100755--- a/youtube-dl+++ b/youtube-dl@@ -3409,6 +3409,11 @@ def updateSelf(downloader, filename):try:urlh = urllib.urlopen(UPDATE_URL)newcontent = urlh.read()++ vmatch = re.search("__version__ = '([^']+)'", newcontent)+ if vmatch is not None and vmatch.group(1) == __version__:+ downloader.to_screen('youtube-dl is up-to-date (' + __version__ + ')')+ returnfinally:urlh.close()except (IOError, OSError), err: