diff --git a/resource/sites/milkie.cc/config.json b/resource/sites/milkie.cc/config.json index abb4dd2c1..75ed9ccf0 100644 --- a/resource/sites/milkie.cc/config.json +++ b/resource/sites/milkie.cc/config.json @@ -33,7 +33,7 @@ "parseScriptFile": "getSearchResult.js", "keepOriginKey": true, "headers": { - "Authorization": "Bearer $site.authToken$" + "x-milkie-auth": "$site.authToken$" } }, "searchEntry": [ @@ -48,7 +48,7 @@ "dataType": "json", "requestMethod": "GET", "headers": { - "Authorization": "Bearer $site.authToken$" + "x-milkie-auth": "$site.authToken$" }, "fields": { "name": { diff --git a/resource/sites/milkie.cc/getSearchResult.js b/resource/sites/milkie.cc/getSearchResult.js index 0a41cf1a4..9e5592776 100644 --- a/resource/sites/milkie.cc/getSearchResult.js +++ b/resource/sites/milkie.cc/getSearchResult.js @@ -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,