From 2a14ec9d4dfdebd3af124864af9687900434b8de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20M=C3=BCller?= Date: Tue, 12 Sep 2023 13:26:51 +0200 Subject: [PATCH] Lyrics Providers: Remove unreachable ones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- data/lyrics/ultimate_providers.xml | 47 ----------------------- src/networkremote/outgoingdatacreator.cpp | 2 - src/songinfo/songinfoview.cpp | 3 -- 3 files changed, 52 deletions(-) diff --git a/data/lyrics/ultimate_providers.xml b/data/lyrics/ultimate_providers.xml index 98a043695..abd3858cc 100644 --- a/data/lyrics/ultimate_providers.xml +++ b/data/lyrics/ultimate_providers.xml @@ -88,17 +88,6 @@ - - - - - - - - - - - @@ -114,13 +103,6 @@ - - - - - - - @@ -194,14 +176,6 @@ - - - - - - - - @@ -210,20 +184,6 @@ - - - - - - - - - - - - - - @@ -251,13 +211,6 @@ - - - - - - - diff --git a/src/networkremote/outgoingdatacreator.cpp b/src/networkremote/outgoingdatacreator.cpp index 39d500691..59f4b1d60 100644 --- a/src/networkremote/outgoingdatacreator.cpp +++ b/src/networkremote/outgoingdatacreator.cpp @@ -98,7 +98,6 @@ void OutgoingDataCreator::CheckEnabledProviders() { << "lyricstime.com" << "lyricsreg.com" << "lyricsmania.com" - << "metrolyrics.com" << "azlyrics.com" << "songlyrics.com" << "elyrics.net" @@ -106,7 +105,6 @@ void OutgoingDataCreator::CheckEnabledProviders() { << "lyrics.com" << "lyricsbay.com" << "directlyrics.com" - << "loudson.gs" << "teksty.org" << "tekstowo.pl (Polish translations)" << "vagalume.uol.com.br" diff --git a/src/songinfo/songinfoview.cpp b/src/songinfo/songinfoview.cpp index 383968f97..3640e6b1d 100644 --- a/src/songinfo/songinfoview.cpp +++ b/src/songinfo/songinfoview.cpp @@ -90,10 +90,8 @@ void SongInfoView::ReloadSettings() { QVariantList default_order; default_order << "lyrics.wikia.com" - << "lyricstime.com" << "lyricsreg.com" << "lyricsmania.com" - << "metrolyrics.com" << "azlyrics.com" << "songlyrics.com" << "elyrics.net" @@ -101,7 +99,6 @@ void SongInfoView::ReloadSettings() { << "lyrics.com" << "lyricsbay.com" << "directlyrics.com" - << "loudson.gs" << "teksty.org" << "tekstowo.pl (Polish translations)" << "vagalume.uol.com.br"