Commit f6f801e
committed
fix(download): add Referer header for AllAnime CDN URLs
allanime.day CDN requires Referer: https://allanime.to for authenticated
requests. Without it, HEAD and Range GET requests return 401, breaking
multi-part downloads and content-length detection.
- Add allanime.day to isKnownStreamURL check in getContentLength()
- Set Referer on HEAD request in getContentLength() for allanime URLs
- Set Referer on Range GET request in downloadPart() for allanime URLs1 parent 1da65da commit f6f801e
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
| |||
0 commit comments