]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/utils.py
Add a resolution field and improve general --list-formats output
[youtube-dl.git] / youtube_dl / utils.py
index cc391bddd7a4bc39ad475795f133271b39fc3ea2..2e48f187e665dad81caa663efdb9d0c33f088936 100644 (file)
@@ -1093,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"