Lyrics Providers: Remove unreachable ones
This was determined programmatically by means of trying to do a simple HTTP request to / of any of the URLs given: ```python from lxml import etree from urllib import parse import requests doc = etree.parse("ultimate_providers.xml") root = doc.getroot() for provider in root: parsed_url = parse.urlparse(provider.get("url")) url = f"{parsed_url.scheme}://{parsed_url.netloc}/" try: requests.head(url, timeout=5) except Exception as e: print(parsed_url.netloc) ``` Note that these were also removed from songinfoview as present, and from outgoingdatacreator. The two lists there were found to be inconsistent, but this isn't subject of this PR. Signed-off-by: Marcus Müller <marcus_clementine@baseband.digital>
This commit is contained in:
parent
86e81cea05
commit
390cb74774
|
@ -88,17 +88,6 @@
|
||||||
<item begin="</a" end=">"/>
|
<item begin="</a" end=">"/>
|
||||||
</exclude>
|
</exclude>
|
||||||
</provider>
|
</provider>
|
||||||
<provider name="hindilyrics.net (Bollywood songs)" title="{title} ({album})" charset="utf-8" url="http://www.hindilyrics.net/lyrics/of-{Title}.html">
|
|
||||||
<urlFormat replace=" _@;\/"'()[]" with="%20"/>
|
|
||||||
<urlFormat replace="?" with=""/>
|
|
||||||
<extract>
|
|
||||||
<item begin="<div class=nm>Movie</div>:" end="</pre>"/>
|
|
||||||
</extract>
|
|
||||||
<exclude>
|
|
||||||
<item begin="<span class=" end="">"/>
|
|
||||||
</exclude>
|
|
||||||
<invalidIndicator value="Couldn't find that page."/>
|
|
||||||
</provider>
|
|
||||||
<provider name="letras.mus.br" title="" charset="utf-8" url="https://www.letras.mus.br/winamp.php?musica={title}&artista={artist}">
|
<provider name="letras.mus.br" title="" charset="utf-8" url="https://www.letras.mus.br/winamp.php?musica={title}&artista={artist}">
|
||||||
<urlFormat replace="_@,;&\/"" with="_"/>
|
<urlFormat replace="_@,;&\/"" with="_"/>
|
||||||
<urlFormat replace=" " with="+"/>
|
<urlFormat replace=" " with="+"/>
|
||||||
|
@ -114,13 +103,6 @@
|
||||||
</extract>
|
</extract>
|
||||||
<invalidIndicator value="ERROR"/>
|
<invalidIndicator value="ERROR"/>
|
||||||
</provider>
|
</provider>
|
||||||
<provider name="loudson.gs" title="" charset="utf-8" url="http://www.loudson.gs/{a}/{artist}/{album}/{title}">
|
|
||||||
<urlFormat replace=" _@,;&\/"" with="-"/>
|
|
||||||
<urlFormat replace="." with=""/>
|
|
||||||
<extract>
|
|
||||||
<item tag="<div class="middle_col_TracksLyrics ">"/>
|
|
||||||
</extract>
|
|
||||||
</provider>
|
|
||||||
<provider name="lyrics.com" title="{artist} - {title} Lyrics" charset="utf-8" url="http://www.lyrics.com/lyrics/{artist}/{title}.html">
|
<provider name="lyrics.com" title="{artist} - {title} Lyrics" charset="utf-8" url="http://www.lyrics.com/lyrics/{artist}/{title}.html">
|
||||||
<urlFormat replace=" _@,;&\/"" with="-"/>
|
<urlFormat replace=" _@,;&\/"" with="-"/>
|
||||||
<urlFormat replace="'." with=""/>
|
<urlFormat replace="'." with=""/>
|
||||||
|
@ -194,14 +176,6 @@
|
||||||
</extract>
|
</extract>
|
||||||
<invalidIndicator value="Page not Found"/>
|
<invalidIndicator value="Page not Found"/>
|
||||||
</provider>
|
</provider>
|
||||||
<provider name="lyricstime.com" title="{artist} - {title} Lyrics" charset="iso-8859-1" url="http://www.lyricstime.com/{artist}-{title}-lyrics.html">
|
|
||||||
<urlFormat replace=" _@,;&\/"'" with="-"/>
|
|
||||||
<urlFormat replace="." with=""/>
|
|
||||||
<extract>
|
|
||||||
<item tag="<div id="songlyrics" >"/>
|
|
||||||
<item tag="<p>"/>
|
|
||||||
</extract>
|
|
||||||
</provider>
|
|
||||||
<provider name="lyriki.com" title="" charset="utf-8" url="http://www.lyriki.com/{artist}:{title}">
|
<provider name="lyriki.com" title="" charset="utf-8" url="http://www.lyriki.com/{artist}:{title}">
|
||||||
<urlFormat replace=" _@,;&\/"" with="_"/>
|
<urlFormat replace=" _@,;&\/"" with="_"/>
|
||||||
<urlFormat replace="." with=""/>
|
<urlFormat replace="." with=""/>
|
||||||
|
@ -210,20 +184,6 @@
|
||||||
<item tag="<p>"/>
|
<item tag="<p>"/>
|
||||||
</extract>
|
</extract>
|
||||||
</provider>
|
</provider>
|
||||||
<provider name="metrolyrics.com" title="{artist} - {title} LYRICS" charset="utf-8" url="http://www.metrolyrics.com/{title}-lyrics-{artist}.html">
|
|
||||||
<urlFormat replace=" _@,;&\/"" with="-"/>
|
|
||||||
<urlFormat replace="'." with=""/>
|
|
||||||
<extract>
|
|
||||||
<item tag="<span id="lyrics">"/>
|
|
||||||
</extract>
|
|
||||||
<extract>
|
|
||||||
<item tag="<div id="lyrics">"/>
|
|
||||||
</extract>
|
|
||||||
<exclude>
|
|
||||||
<item tag="<h5>"/>
|
|
||||||
</exclude>
|
|
||||||
<invalidIndicator value="These lyrics are missing"/>
|
|
||||||
</provider>
|
|
||||||
<provider name="mp3lyrics.org" title="{artist} &quot;{title}&quot; Lyrics" charset="utf-8" url="http://www.mp3lyrics.org/{a}/{artist}/{title}/">
|
<provider name="mp3lyrics.org" title="{artist} &quot;{title}&quot; Lyrics" charset="utf-8" url="http://www.mp3lyrics.org/{a}/{artist}/{title}/">
|
||||||
<urlFormat replace=" _@,;&\/"" with="-"/>
|
<urlFormat replace=" _@,;&\/"" with="-"/>
|
||||||
<urlFormat replace="'." with=""/>
|
<urlFormat replace="'." with=""/>
|
||||||
|
@ -251,13 +211,6 @@
|
||||||
</exclude>
|
</exclude>
|
||||||
<invalidIndicator value="We couldn't find that page."/>
|
<invalidIndicator value="We couldn't find that page."/>
|
||||||
</provider>
|
</provider>
|
||||||
<provider name="seeklyrics.com" title="{artist} - {title} Lyrics" charset="iso-8859-1" url="http://www.seeklyrics.com/lyrics/{Artist}/{Title}.html">
|
|
||||||
<urlFormat replace=" _@,;&\/'"" with="-"/>
|
|
||||||
<urlFormat replace="." with=""/>
|
|
||||||
<extract>
|
|
||||||
<item tag="<div id="songlyrics">"/>
|
|
||||||
</extract>
|
|
||||||
</provider>
|
|
||||||
<provider name="songlyrics.com" title="{title} LYRICS - {artist}" charset="utf-8" url="http://www.songlyrics.com/{artist}/{title}-lyrics/">
|
<provider name="songlyrics.com" title="{title} LYRICS - {artist}" charset="utf-8" url="http://www.songlyrics.com/{artist}/{title}-lyrics/">
|
||||||
<urlFormat replace=" ._@,;&\/"" with="-"/>
|
<urlFormat replace=" ._@,;&\/"" with="-"/>
|
||||||
<urlFormat replace="'" with="_"/>
|
<urlFormat replace="'" with="_"/>
|
||||||
|
|
|
@ -98,7 +98,6 @@ void OutgoingDataCreator::CheckEnabledProviders() {
|
||||||
<< "lyricstime.com"
|
<< "lyricstime.com"
|
||||||
<< "lyricsreg.com"
|
<< "lyricsreg.com"
|
||||||
<< "lyricsmania.com"
|
<< "lyricsmania.com"
|
||||||
<< "metrolyrics.com"
|
|
||||||
<< "azlyrics.com"
|
<< "azlyrics.com"
|
||||||
<< "songlyrics.com"
|
<< "songlyrics.com"
|
||||||
<< "elyrics.net"
|
<< "elyrics.net"
|
||||||
|
@ -106,7 +105,6 @@ void OutgoingDataCreator::CheckEnabledProviders() {
|
||||||
<< "lyrics.com"
|
<< "lyrics.com"
|
||||||
<< "lyricsbay.com"
|
<< "lyricsbay.com"
|
||||||
<< "directlyrics.com"
|
<< "directlyrics.com"
|
||||||
<< "loudson.gs"
|
|
||||||
<< "teksty.org"
|
<< "teksty.org"
|
||||||
<< "tekstowo.pl (Polish translations)"
|
<< "tekstowo.pl (Polish translations)"
|
||||||
<< "vagalume.uol.com.br"
|
<< "vagalume.uol.com.br"
|
||||||
|
|
|
@ -90,10 +90,8 @@ void SongInfoView::ReloadSettings() {
|
||||||
|
|
||||||
QVariantList default_order;
|
QVariantList default_order;
|
||||||
default_order << "lyrics.wikia.com"
|
default_order << "lyrics.wikia.com"
|
||||||
<< "lyricstime.com"
|
|
||||||
<< "lyricsreg.com"
|
<< "lyricsreg.com"
|
||||||
<< "lyricsmania.com"
|
<< "lyricsmania.com"
|
||||||
<< "metrolyrics.com"
|
|
||||||
<< "azlyrics.com"
|
<< "azlyrics.com"
|
||||||
<< "songlyrics.com"
|
<< "songlyrics.com"
|
||||||
<< "elyrics.net"
|
<< "elyrics.net"
|
||||||
|
@ -101,7 +99,6 @@ void SongInfoView::ReloadSettings() {
|
||||||
<< "lyrics.com"
|
<< "lyrics.com"
|
||||||
<< "lyricsbay.com"
|
<< "lyricsbay.com"
|
||||||
<< "directlyrics.com"
|
<< "directlyrics.com"
|
||||||
<< "loudson.gs"
|
|
||||||
<< "teksty.org"
|
<< "teksty.org"
|
||||||
<< "tekstowo.pl (Polish translations)"
|
<< "tekstowo.pl (Polish translations)"
|
||||||
<< "vagalume.uol.com.br"
|
<< "vagalume.uol.com.br"
|
||||||
|
|
Loading…
Reference in New Issue