0 Members and 1 Guest are viewing this topic.
Могу я использовать ваши скрипты в поставке по умолчанию?
Your genius.com config isn't working for me. For some reason, when using AIMP, the http response doesn't contain the html "<div class="lyrics">". I tried making the same http request on a .NET project on Visual Studio and the http response would contain it only half the time or something. But it would either be that one or another http response also containing the lyrics, but with a different html structure that seems to be always the same. I'm not sure about that but I tried with different musics and so far it works :Read more...[genius.com]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=https://genius.com/api/search/multi?per_page=5&q=%artist%++%title%SearchResultPageStartTags="index":"song"|"url":"SearchResultPageFinishTags="primary_artist"|"LyricsPageTitleStartTags="Title":"LyricsPageTitleFinishTags=",LyricsPageArtistStartTags="Primary Artist":"LyricsPageArtistFinishTags=",LyricsPageTextStartTags=<div class="Lyrics__Container-sc-1ynbvzw-2 jgQsqn">LyricsPageTextFinishTags=</div><div class="RightSidebarThe div class seems very randomly generated but that was the closest thing to the lyrics. I haven't checked the parsing of the Artist and Title tags yet, i'm too tired for that right now.Also, if you get the wrong lyrics, like the ones from a song with a similar name, try removing %filename% in options -> player -> additional information -> lyrics tab -> find in file folder. Or disabling "find in file folder" entirely in fact, that depends on your preferences.I don't know how it's possible that the config that you posted works for you but never for me. The only response that I would get was always "No tag found".
[genius.com]Class=TAIMPLyricsWebPageBasedProviderCustomHeaders=\ncontent-type: application/json; charset=utf-8\ncontent-encoding: gzipSearchQuery=https://genius.com/api/search/multi?per_page=5&q=%artist%++%title%SearchResultPageStartTags="url":"SearchResultPageFinishTags=",LyricsPageTitleStartTags="Title":"LyricsPageTitleFinishTags=",LyricsPageArtistStartTags="Primary Artist":"LyricsPageArtistFinishTags=",LyricsPageTextStartTags=<div class="lyrics">LyricsPageTextFinishTags=</p>LyricsPageTextPostProcessExpression=https://GENIUS.COM\n%Value
I checked again for the sake of it but I had already verified that there was no translation applied on the config/script. I use Translate Web Pages firefox addon with yandex engine. But anyway I did not use any of this when I tried on my .NET project to get the lyrics, I used the URI directly and parsed myself the http response. I can't figure out why this shit happens. I wonder if it's a location thing. Unfortunately my VPN has no russian server available (i'm not surprised, considering the "recent" decisions regarding VPN in Russia) and nearby countries servers gave me no result.Anyway it still works for me and my friend right now using my script.
Read more...Don't worry I tried both with and without the VPN.The problem with metal-archives.com is that it uses ajax requests with an id for the lyrics. When you receive a search results using :https://www.metal-archives.com/search/ajax-advanced/searching/songs/?bandName=%artist%&songTitle=%title%In the response, you can find the id in this form :"<a href=\"javascript:;\" id=\"lyricsLink_4694776\"And the path for the lyrics is like this : https://www.metal-archives.com/release/ajax-view-lyrics/id/4694776So you would have to combine https://www.metal-archives.com/release/ajax-view-lyrics/id/ with the id and I don't think it's possible. You have to understand that this .ini is not a "script", it's just a config file. In fact, you can place every property at any line you want, it doesn't matter as long as it's below the host ([genius.com] for example). I did a lot of different tests and "PostProcessExpression" only seems to be possible on the properties of the LyricsPage, and not on SearchQuery or SearchResultsPage. As long as we have no documentation on this plugin I don't think we can do much more, it's like going blind. You can't just guess the options that the plugin has.
[songlyrics.com]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=http://www.songlyrics.com/index.php?section=search&searchW=%artist%:%title%&submit=SearchSearchResultPageStartTags=<div class="serpresult">|<a href="SearchResultPageFinishTags=</div>|" title="LyricsPageTextStartTags=id="songLyricsDiv-outer">|iComment-text">LyricsPageTextFinishTags=</div>|</p>LyricsPageArtistStartTags="Artist: "|">LyricsPageArtistFinishTags=</p>|</a>LyricsPageAlbumStartTags="Album: "|">LyricsPageAlbumFinishTags=</p>|</a>
[songlyrics.com]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=http://www.songlyrics.com/index.php?section=search&searchW=%artist% %title%&submit=SearchSearchResultPageStartTags=<div class="serpresult">|<a href="SearchResultPageFinishTags=</div>|"LyricsPageArtistStartTags=artist: "LyricsPageArtistFinishTags=",LyricsPageTitleStartTags=song: "LyricsPageTitleFinishTags=",LyricsPageTextStartTags=<p id="songLyricsDiv" class="songLyricsV14 iComment-text">LyricsPageTextFinishTags=</p>LyricsPageTextPostProcessExpression=%IFGreater(120,%Length(%Value), ,%Value)
sveakulУ вас не прописана строкаSearchResultPagePostProcessExpression=https://www.musixmatch.com%Valueвместе со строкой которая вписывает название провайдера перед текстом песни (LyricsPageTextPostProcessExpression=https://MUSIXMATCH.COM\n%Value)должно быть так - [musixmatch.com]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=https://www.musixmatch.com/search/%artist%%20%title%Encoding=URLSearchResultPageStartTags=</div><meta content="SearchResultPageFinishTags="SearchResultPagePostProcessExpression=https://www.musixmatch.com%ValueLyricsPageArtistStartTags=mxm-track-title__artist-link">LyricsPageArtistFinishTags=</a>LyricsPageTitleStartTags=<small>Lyrics</small>LyricsPageTitleFinishTags=</h1>LyricsPageTextStartTags="body":"LyricsPageTextFinishTags=","LyricsPageTextPostProcessExpression=https://MUSIXMATCH.COM\n%ValueМой aimp_webLyrics.ini Read more...[azlyrics.com]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=https://search.azlyrics.com/search.php?q=%artist%%20%title%Encoding=URLSearchResultPageStartTags=<a href="SearchResultPageFinishTags=">LyricsPageArtistStartTags=ArtistName = "LyricsPageArtistFinishTags=";LyricsPageTitleStartTags=SongName = "LyricsPageTitleFinishTags=";LyricsPageTextStartTags=<!-- Usage of azlyrics.com content by any third-party lyrics provider is prohibited by our licensing agreement. Sorry about that. -->LyricsPageTextFinishTags=</div>LyricsPageTextPostProcessExpression=https://AZLYRICS.COM\n%Value[lyricshare.net]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=http://lyricshare.net/ru/search/?q=%artist%+%title%Encoding=URLSearchResultPageStartTags=<h3><a href="SearchResultPageFinishTags="SearchResultPagePostProcessExpression=http://lyricshare.net%ValueLyricsPageArtistStartTags=<h1>LyricsPageArtistFinishTags=<brLyricsPageTitleStartTags=<h1>|/>Текст песни LyricsPageTitleFinishTags=h1>|</LyricsPageTitlePostProcessExpression=%StrTrim(%Value)LyricsPageTextStartTags=<p id="textpesni">LyricsPageTextFinishTags=</p>LyricsPageTextPostProcessExpression=https://LYRICSHARE.NET\n%Value[morepesen.ru]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=https://morepesen.ru/|POST:do=search&subaction=search&story=%artist%+%title%&sbutt=ИскатьEncoding=URLSearchResultPageStartTags=<b><a href="SearchResultPageFinishTags="LyricsPageArtistStartTags=<title>LyricsPageArtistFinishTags= -LyricsPageTitleStartTags=<title>| - LyricsPageTitleFinishTags=</title>|- текст песниLyricsPageTitlePostProcessExpression=%StrTrim(%Value)LyricsPageTextStartTags=<pre>LyricsPageTextFinishTags=</pre>LyricsPageTextPostProcessExpression=https://MOREPESEN.RU\n%Value[musixmatch.com]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=https://www.musixmatch.com/search/%artist%%20%title%Encoding=URLSearchResultPageStartTags=</div><meta content="SearchResultPageFinishTags="SearchResultPagePostProcessExpression=https://www.musixmatch.com%ValueLyricsPageArtistStartTags=mxm-track-title__artist-link">LyricsPageArtistFinishTags=</a>LyricsPageTitleStartTags=<small>Lyrics</small>LyricsPageTitleFinishTags=</h1>LyricsPageTextStartTags="body":"LyricsPageTextFinishTags=","LyricsPageTextPostProcessExpression=https://MUSIXMATCH.COM\n%Value[songlyrics.com]Class=TAIMPLyricsWebPageBasedProviderSearchQuery=http://www.songlyrics.com/index.php?section=search&searchW=%artist% %title%&submit=SearchSearchResultPageStartTags=<div class="serpresult">|<a href="SearchResultPageFinishTags=</div>|"LyricsPageArtistStartTags=artist: "LyricsPageArtistFinishTags=",LyricsPageTitleStartTags=song: "LyricsPageTitleFinishTags=",LyricsPageTextStartTags=<p id="songLyricsDiv" class="songLyricsV14 iComment-text">LyricsPageTextFinishTags=</p>LyricsPageTextPostProcessExpression=%IFGreater(120,%Length(%Value), ,%Value)Тут главное чтобы провайдеры были размещены в порядке от "быстрых" к "медленным", [musixmatch.com] не самый быстрый провайдер, но быстрее чем [songlyrics.com]. Если вы в этом списке решите удалить какой-то провайдер, то в оставшихся не меняйте расположения