Fix warning
This commit is contained in:
@@ -263,7 +263,7 @@ class BCFreeDownloader:
|
|||||||
def download_label(self, url: str, force: bool = False):
|
def download_label(self, url: str, force: bool = False):
|
||||||
r = self.session.get(url)
|
r = self.session.get(url)
|
||||||
r.raise_for_status()
|
r.raise_for_status()
|
||||||
soup = BeautifulSoup(r.text)
|
soup = BeautifulSoup(r.text, "html.parser")
|
||||||
for album_title in soup.find_all("p", class_="title"):
|
for album_title in soup.find_all("p", class_="title"):
|
||||||
album_link = urljoin(url, album_title.parent.attrs["href"])
|
album_link = urljoin(url, album_title.parent.attrs["href"])
|
||||||
logger.info(f"Downloading {album_link}")
|
logger.info(f"Downloading {album_link}")
|
||||||
|
|||||||
Reference in New Issue
Block a user