mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 21:40:35 +08:00
Using urllib2 for update-mechanism to get support for proxies.
This commit is contained in:
parent
0c24eed73a
commit
8355507ab4
@ -4259,7 +4259,7 @@ def updateSelf(downloader, filename):
|
||||
|
||||
try:
|
||||
try:
|
||||
urlh = urllib.urlopen(UPDATE_URL)
|
||||
urlh = urllib2.urlopen(UPDATE_URL)
|
||||
newcontent = urlh.read()
|
||||
|
||||
vmatch = re.search("__version__ = '([^']+)'", newcontent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user