Fix song database update

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

View File

@ -14,7 +14,7 @@ def create_data_directory():
def get_catalog_url(): def get_catalog_url():
r = requests.get('https://www.karafun.de/karaoke-song-list.html') r = requests.get('https://www.karafun.de/karaoke-song-list.html')
soup = BeautifulSoup(r.content, 'html.parser') 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 return url
def get_songs(url): def get_songs(url):