fix(dl): repair damaged cookie files without rewriting them

Space separators, a BOM, a missing header and #HttpOnly_ rows now load; repairs happen in memory and an unparseable file raises instead of loading as empty.
This commit is contained in:
imSp4rky
2026-09-03 10:53:00 -06:00
parent c9f178f8f0
commit 3eaf4431e2
3 changed files with 173 additions and 10 deletions
+5
View File
@@ -132,6 +132,11 @@ Services that require a login read either **cookies** or **credentials**.
`cookies/{SERVICE}/default.txt`. So unshackle finds a file at `cookies/EXAMPLE.txt`
automatically for the `EXAMPLE` service.
unshackle repairs the usual export damage in memory and does not change your
file: a missing header line, a byte-order mark, spaces in place of tabs, and
rows a text editor broke. unshackle refuses a JSON export. Export the cookies
again in Netscape format.
- **Credentials**: store a username and password per service in your config:
```yaml title="unshackle.yaml"