Update release.js

This commit is contained in:
2025-05-12 13:26:08 +05:00
committed by GitHub
parent 57fefe2e34
commit d1e065849d

View File

@@ -38,7 +38,7 @@ async function searchShikimoriAnime(titleRu, titleEn) {
limit: 1, limit: 1,
}, },
headers: { headers: {
'User-Agent': 'YourAppName', // Замени на имя твоего приложения 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
}, },
timeout: 5000, timeout: 5000,
}); });
@@ -55,7 +55,7 @@ async function fetchShikimoriCharacters(animeId) {
try { try {
const response = await axios.get(`https://shikimori.one/api/animes/${animeId}/roles`, { const response = await axios.get(`https://shikimori.one/api/animes/${animeId}/roles`, {
headers: { headers: {
'User-Agent': 'YourAppName', // Замени на имя твоего приложения 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
}, },
timeout: 5000, timeout: 5000,
}); });