X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Futils.py;h=2e48f187e665dad81caa663efdb9d0c33f088936;hb=1e923b0d2991c5d7425a38338e1487c7a431b9e1;hp=4c7ad89c0b39602bf50de3b5ea2a6289c2215cfe;hpb=f5567e401cf012de85bc1471efca80fa947ba4c0;p=youtube-dl diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 4c7ad89c0..2e48f187e 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -761,7 +761,6 @@ def unified_strdate(date_str): '%Y-%m-%dT%H:%M:%S.%fZ', '%Y-%m-%dT%H:%M:%S.%f0Z', '%Y-%m-%dT%H:%M:%S', - '%Y-%m-%dT%H:%M:%S', ] for expression in format_expressions: try: @@ -1094,3 +1093,8 @@ def remove_start(s, start): def url_basename(url): path = compat_urlparse.urlparse(url).path return path.strip(u'/').split(u'/')[-1] + + +class HEADRequest(compat_urllib_request.Request): + def get_method(self): + return "HEAD"