aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-03-10 04:51:20 +0700
committerSergey M․ <dstftw@gmail.com>2020-03-10 04:53:51 +0700
commit042b66493398dd8c3bb31216e3f828b98716810d (patch)
tree2763e8d8c8d40a358d522a140f0581d4fc5aa11f /youtube_dl/utils.py
parent68fa15155f40f7d646079e6649df03696a5e7d4b (diff)
Revert "[utils] Add support for cookies with spaces used instead of tabs"
According to [1] TABs must be used as separators between fields. Files produces by some tools with spaces as separators are considered malformed. 1. https://curl.haxx.se/docs/http-cookies.html This reverts commit cff99c91d150df2a4e21962a3ca8d4ae94533b8c.
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 93d1dec05..8ccf25489 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -2752,11 +2752,6 @@ class YoutubeDLCookieJar(compat_cookiejar.MozillaCookieJar):
for line in f:
if line.startswith(self._HTTPONLY_PREFIX):
line = line[len(self._HTTPONLY_PREFIX):]
- # Cookie file may contain spaces instead of tabs.
- # Replace all spaces with tabs to make such cookie files work
- # with MozillaCookieJar.
- if not line.startswith('#'):
- line = re.sub(r' +', r'\t', line)
cf.write(compat_str(line))
cf.seek(0)
self._really_load(cf, filename, ignore_discard, ignore_expires)