Skip to content

Commit

Permalink
fix(milkie): auth with api key
Browse files Browse the repository at this point in the history
  • Loading branch information
tomyangsh authored and fzlins committed Sep 3, 2024
1 parent ad8b6ca commit 4a38798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resource/sites/milkie.cc/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"parseScriptFile": "getSearchResult.js",
"keepOriginKey": true,
"headers": {
"Authorization": "Bearer $site.authToken$"
"x-milkie-auth": "$site.authToken$"
}
},
"searchEntry": [
Expand All @@ -48,7 +48,7 @@
"dataType": "json",
"requestMethod": "GET",
"headers": {
"Authorization": "Bearer $site.authToken$"
"x-milkie-auth": "$site.authToken$"
},
"fields": {
"name": {
Expand Down
2 changes: 1 addition & 1 deletion resource/sites/milkie.cc/getSearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
let data = {
title: group.releaseName,
link: `${site.url}/browse/${group.id}`,
url: `${site.url}/api/v1/torrents/${group.id}/torrent?key=${encodeURIComponent(site.passkey)}`,
url: `${site.url}/api/v1/torrents/${group.id}/torrent?key=${encodeURIComponent(site.authToken)}`,
size: group.size,
time: Date(group.createdAt),
seeders: group.seeders,
Expand Down

0 comments on commit 4a38798

Please sign in to comment.