Commit e0c6d52f authored by Christian Perreault's avatar Christian Perreault

Use the official package name: beautifulsoup4 instead of bs4

parent 67916d5a
......@@ -154,7 +154,7 @@ class YouTubeHelper:
@return youtube id as str
"""
try:
from bs4 import BeautifulSoup
from beautifulsoup4 import BeautifulSoup
except:
print("$ sudo pip3 install beautifulsoup4")
return None
......
......@@ -259,7 +259,7 @@ class LyricsView(View, InformationController):
return
if status:
try:
from bs4 import BeautifulSoup
from beautifulsoup4 import BeautifulSoup
soup = BeautifulSoup(data, 'html.parser')
self.__lyrics_text = soup.find_all(
"div", class_=cls)[0].get_text(separator=separator)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment