mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
add user agent header to lrclib fetch
This commit is contained in:
@@ -90,6 +90,9 @@ export async function query(
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
result = await axios.get<LrcLibTrackResponse>(FETCH_URL, {
|
result = await axios.get<LrcLibTrackResponse>(FETCH_URL, {
|
||||||
|
headers: {
|
||||||
|
'User-Agent': 'LRCGET v0.2.0 (https://github.com/jeffvli/feishin)',
|
||||||
|
},
|
||||||
params: {
|
params: {
|
||||||
album_name: params.album,
|
album_name: params.album,
|
||||||
artist_name: params.artist,
|
artist_name: params.artist,
|
||||||
|
|||||||
Reference in New Issue
Block a user