0 Members and 3 Guests are viewing this topic.
[genius.com]Class=TAIMPLyricsWebPageBasedProviderCustomHeaders=\ncontent-type: application/json; charset=utf-8\ncontent-encoding: gzip\nuser-agent: Mozilla/5.0 (Android 13; Mobile; rv:68.0) Gecko/68.0 Firefox/105.0SearchQuery=https://genius.com/api/search/song?per_page=5&q=%artist%+%title%SearchQueryEncoding=URLSearchResult.StartTags="hits":[SearchResult.FinishTags=],"next_page"SearchResultArtist.StartTags="artist_names":"SearchResultArtist.FinishTags=",SearchResultTitle.StartTags="title":"SearchResultTitle.FinishTags=",SearchResultURL.StartTags="url":"SearchResultURL.FinishTags=",DataLyrics.StartTags=<div data-lyrics-container="true" class="Lyrics__Container-sc|">DataLyrics.FinishTags=<div class="Lyrics__Footer-sc-DataLyrics.PostProcessExpression=www.genius.com\n\n%Value
@ gr-e and sabadell66: the Genius script as I have it below has just recently stopped returning lyrics; any chance for a new revision? Thanks for any help!
DataLyrics.FinishTags=<div class="LyricsFooter__Container-
[musixmatch.com]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=https://www.musixmatch.com/search/%artist%%20%title%/tracksSearchQueryEncoding=URLSearchResult.StartTags=media-card-bodySearchResult.FinishTags=</div>SearchResultArtist.StartTags=class="artist"|>SearchResultArtist.FinishTags=</a>SearchResultTitle.StartTags=class="title"|span>SearchResultTitle.FinishTags=</spanSearchResultURL.StartTags=class="title" href="SearchResultURL.FinishTags="SearchResultURL.PostProcessExpression=https://www.musixmatch.com%ValueDataAlbumArt.StartTags="og:image" content="DataAlbumArt.FinishTags="DataLyrics.StartTags="body":"DataLyrics.FinishTags=",
@colemarc: the attached aimp_Weblyrics.ini (extract) also adds Genius, AZLyrics, and Spotify. Thanks to gr-e, sabadell66, and others. If anyone has more working scripts for other lyrics, please post them!
Благодаря spotify-lyrics-api (спасибо akashrchandran) получилось сделать провайдер Spotify с поддержкой синхронизации.BingCode: [Select][bing.spotify.com]Class=TAIMPLyricsWebPageBasedProviderCustomHeaders=\nAccept-Language: en-US,en;q=0.5 \nuser-agent: Mozilla/5.0 (Linux; Android 10; HLK-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Mobile Safari/537.36 EdgA/104.0.1293.70SearchQuery=https://www.bing.com/search?q="%title%"+%artist%+site:open.spotify.com/track/SearchQueryEncoding=URLSearchResult.StartTags=class="b_algo|>SearchResult.FinishTags=</li>;SearchResultArtist.StartTags= by ;SearchResultArtist.FinishTags= | SearchResultTitle.StartTags=<h2>SearchResultTitle.FinishTags= - SearchResultURL.StartTags=href="SearchResultURL.FinishTags="SearchResultURL.PostProcessExpression=https://spotify-lyric-api.herokuapp.com/?url=%Value&format=lrcDataLyrics.StartTags="lines":[DataLyrics.FinishTags=]DataLyrics.PostProcessExpression=%Replace(%Replace(%Replace(%Replace(%Replace(%Replace(%Value,"}%Char(44){"timeTag":"00:00.00"%Char(44)"words":",%Char(13)%Char(10)),"}%Char(44){"timeTag":",%Char(13)%Char(10)[),"%Char(44)"words":",]),{"timeTag":",[),"},),%Char(9834),)MusixmatchCode: [Select][mxm.spotify.com]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=https://www.musixmatch.com/search/%artist%%20%title%/tracksSearchQueryEncoding=URLSearchResult.StartTags="attributes":{SearchResult.FinishTags=}SearchResultArtist.StartTags=artist_name":"SearchResultArtist.FinishTags="SearchResultTitle.StartTags=track_name":"SearchResultTitle.FinishTags="SearchResultURL.StartTags="track_spotify_id":"SearchResultURL.FinishTags="SearchResultURL.PostProcessExpression=https://spotify-lyric-api.herokuapp.com/?trackid=%Value&format=lrcDataLyrics.StartTags="lines":[DataLyrics.FinishTags=]DataLyrics.PostProcessExpression=%Replace(%Replace(%Replace(%Replace(%Replace(%Replace(%Value,"}%Char(44){"timeTag":"00:00.00"%Char(44)"words":",%Char(13)%Char(10)),"}%Char(44){"timeTag":",%Char(13)%Char(10)[),"%Char(44)"words":",]),{"timeTag":",[),"},),%Char(9834),)upd: Заменил кривой поиск Musixmatch на Bing. Теперь находит намного больше трековupd 27.09.23: Перестал работать SpotifyLyricsAPI (сервис, который достает тексты со Spotify), размещенный на Heroku. Как вариант, его можно захостить локально (см. ссылку на github выше).
[bing.spotify.com]Class=TAIMPLyricsWebPageBasedProviderCustomHeaders=\nAccept-Language: en-US,en;q=0.5 \nuser-agent: Mozilla/5.0 (Linux; Android 10; HLK-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Mobile Safari/537.36 EdgA/104.0.1293.70SearchQuery=https://www.bing.com/search?q="%title%"+%artist%+site:open.spotify.com/track/SearchQueryEncoding=URLSearchResult.StartTags=class="b_algo|>SearchResult.FinishTags=</li>;SearchResultArtist.StartTags= by ;SearchResultArtist.FinishTags= | SearchResultTitle.StartTags=<h2>SearchResultTitle.FinishTags= - SearchResultURL.StartTags=href="SearchResultURL.FinishTags="SearchResultURL.PostProcessExpression=https://spotify-lyric-api.herokuapp.com/?url=%Value&format=lrcDataLyrics.StartTags="lines":[DataLyrics.FinishTags=]DataLyrics.PostProcessExpression=%Replace(%Replace(%Replace(%Replace(%Replace(%Replace(%Value,"}%Char(44){"timeTag":"00:00.00"%Char(44)"words":",%Char(13)%Char(10)),"}%Char(44){"timeTag":",%Char(13)%Char(10)[),"%Char(44)"words":",]),{"timeTag":",[),"},),%Char(9834),)
[mxm.spotify.com]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=https://www.musixmatch.com/search/%artist%%20%title%/tracksSearchQueryEncoding=URLSearchResult.StartTags="attributes":{SearchResult.FinishTags=}SearchResultArtist.StartTags=artist_name":"SearchResultArtist.FinishTags="SearchResultTitle.StartTags=track_name":"SearchResultTitle.FinishTags="SearchResultURL.StartTags="track_spotify_id":"SearchResultURL.FinishTags="SearchResultURL.PostProcessExpression=https://spotify-lyric-api.herokuapp.com/?trackid=%Value&format=lrcDataLyrics.StartTags="lines":[DataLyrics.FinishTags=]DataLyrics.PostProcessExpression=%Replace(%Replace(%Replace(%Replace(%Replace(%Replace(%Value,"}%Char(44){"timeTag":"00:00.00"%Char(44)"words":",%Char(13)%Char(10)),"}%Char(44){"timeTag":",%Char(13)%Char(10)[),"%Char(44)"words":",]),{"timeTag":",[),"},),%Char(9834),)
Обновлен провайдер Spotify
http://www.mldb.org/search-bf?mqa=&mqt=&mql=&mqy=&ob=1&mm=0http://www.songlyrics.com/index.php?section=search&searchW=:&submit=Search
http://www.mldb.org/search-bf?mqa=Bear%20McCreary&mqt=All%20Along%20the%20Watchtower&mql=&mqy=&ob=1&mm=0http://www.songlyrics.com/index.php?section=search&searchW=Bear%20McCreary:All%20Along%20the%20Watchtower&submit=Search
<html lang="en"><body><h1>The server is overloaded. Please try again later.</h1></body></html>
Спасибо gr-e, скрипт Spotify через Bing теперь работает отлично!