From 3fd9c29c6bc8d9da85ebd46a1b233d68b162837f Mon Sep 17 00:00:00 2001 From: jules Date: Sun, 15 Nov 2020 19:19:29 +0100 Subject: [PATCH] artwork desc bit cleaner --- daapinterface.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daapinterface.py b/daapinterface.py index 7d167f4..03e5606 100644 --- a/daapinterface.py +++ b/daapinterface.py @@ -338,8 +338,8 @@ def artwork(): # Parse the html content soup = BeautifulSoup(html_content, "lxml") # print(soup.prettify()) # print the parsed data of html - # text=soup.find("div" , {"class" : "mw-parser-output"}) - text=soup.find_all("p") + text=soup.find("div" , {"class" : "mw-parser-output"}) + # text=soup.find_all("p") artworkdescriptiontext=Markup(text) print(artworkdescriptiontext) @@ -370,8 +370,8 @@ def artwork(): soup = BeautifulSoup(html_content, "lxml") # print(soup.prettify()) # print the parsed data of html - # text=soup.find("div" , {"class" : "mw-parser-output"}) - text=soup.find_all("p") + text=soup.find("div" , {"class" : "mw-parser-output"}) + # text=soup.find_all("p") artworkexhibitiontext=Markup(text) # print(artworkexhibitiontext)