浏览代码

[utils] Add reference to cookie file format

Sergey M․ 5 年之前
父节点
当前提交
f1a8511f7b
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      youtube_dl/utils.py

+ 5 - 0
youtube_dl/utils.py

@@ -2729,6 +2729,11 @@ class YoutubeDLHTTPSHandler(compat_urllib_request.HTTPSHandler):
 
 
 
 
 class YoutubeDLCookieJar(compat_cookiejar.MozillaCookieJar):
 class YoutubeDLCookieJar(compat_cookiejar.MozillaCookieJar):
+    """
+    See [1] for cookie file format.
+
+    1. https://curl.haxx.se/docs/http-cookies.html
+    """
     _HTTPONLY_PREFIX = '#HttpOnly_'
     _HTTPONLY_PREFIX = '#HttpOnly_'
 
 
     def save(self, filename=None, ignore_discard=False, ignore_expires=False):
     def save(self, filename=None, ignore_discard=False, ignore_expires=False):