Fix song database update

Resolves #1
This commit is contained in:
Phillip Kühne 2019-12-13 15:29:58 +01:00
parent dc03dab0ce
commit a8871c1106

View File

@ -14,7 +14,7 @@ def create_data_directory():
def get_catalog_url():
r = requests.get('https://www.karafun.de/karaoke-song-list.html')
soup = BeautifulSoup(r.content, 'html.parser')
url = soup.findAll('a', href=True, text='CSV')[0]['href']
url = soup.findAll('a', href=True, text='Available in CSV format')[0]['href']
return url
def get_songs(url):