diff options
| -rwxr-xr-x | youtube-dl | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube-dl b/youtube-dl index fa1e482ba..34e86e027 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__ + ')') +				return  		finally:  			urlh.close()  	except (IOError, OSError), err:  | 
