1
0
mirror of https://github.com/l1ving/youtube-dl synced 2020-11-18 19:53:54 -08:00

Fixed the 403 Forbidden chaos and mayhem.

Don't thank me.
This commit is contained in:
a-raccoon 2020-04-29 23:34:20 -06:00 committed by GitHub
parent 2468a6fa64
commit 5e27882049
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1925,7 +1925,7 @@ class YoutubeDL(object):
# Just a single file
success = dl(filename, info_dict)
except (compat_urllib_error.URLError, compat_http_client.HTTPException, socket.error) as err:
self.report_error('unable to download video data: %s' % error_to_compat_str(err))
self.report_error('unable to download video data: %s\nTry --rm-cache-dir if error persists.' % error_to_compat_str(err))
return
except (OSError, IOError) as err:
raise UnavailableVideoError(err)