Fixed ampersand
This commit is contained in:
parent
11d1418c09
commit
f1aba58732
@ -53,6 +53,7 @@ class Entry(object):
|
|||||||
|
|
||||||
#print(">>entry.py")
|
#print(">>entry.py")
|
||||||
#print(kwargs)
|
#print(kwargs)
|
||||||
|
print(kwargs["title"])
|
||||||
#print(kwargs["links"][0].get("rpath"))
|
#print(kwargs["links"][0].get("rpath"))
|
||||||
#print("--end entry.py")
|
#print("--end entry.py")
|
||||||
try:
|
try:
|
||||||
@ -60,8 +61,8 @@ class Entry(object):
|
|||||||
f=self.links[0].get("rpath")+"/"+self.title+".cbz"
|
f=self.links[0].get("rpath")+"/"+self.title+".cbz"
|
||||||
if os.path.exists(f):
|
if os.path.exists(f):
|
||||||
s = zipfile.ZipFile(f)
|
s = zipfile.ZipFile(f)
|
||||||
#self.size = extras.get_size(f, 'mb')
|
self.size = extras.get_size(f, 'mb')
|
||||||
data=BeautifulSoup(s.open('ComicInfo.xml').read(), "xml")
|
data=BeautifulSoup(s.open('ComicInfo.xml').read(), features="html.parser")
|
||||||
#self.cover=s.open('P00001.jpg').read()
|
#self.cover=s.open('P00001.jpg').read()
|
||||||
|
|
||||||
if data.select('Writer') != []:
|
if data.select('Writer') != []:
|
||||||
@ -70,9 +71,16 @@ class Entry(object):
|
|||||||
config._print("No Writer found: " + str(data.select('Writer')))
|
config._print("No Writer found: " + str(data.select('Writer')))
|
||||||
|
|
||||||
#self.cover = "/image/" + extras.get_cvdb(data.select('Notes')) + ".jpg"
|
#self.cover = "/image/" + extras.get_cvdb(data.select('Notes')) + ".jpg"
|
||||||
|
#if data.select('Title') != []:
|
||||||
|
# self.title = data.select('Title')[0]
|
||||||
|
|
||||||
|
# print(data.select('Title')[0])
|
||||||
|
title = data.select('Title')[0].text.replace("&","&")
|
||||||
|
kwargs["title"] = title
|
||||||
|
print(title)
|
||||||
if data.select('Summary') != []:
|
if data.select('Summary') != []:
|
||||||
self.summary = data.select('Summary')[0].text
|
#print(data.select('Summary')[0].text)
|
||||||
|
self.summary = data.select('Summary')[0]
|
||||||
else:
|
else:
|
||||||
config._print("No Summary found: " + str(data.select('Summary')))
|
config._print("No Summary found: " + str(data.select('Summary')))
|
||||||
|
|
||||||
@ -84,12 +92,12 @@ class Entry(object):
|
|||||||
if data.select('Series')[0].text in kwargs["links"][0].get("rpath"):
|
if data.select('Series')[0].text in kwargs["links"][0].get("rpath"):
|
||||||
releasedate=data.select('Year')[0].text+"-"+data.select('Month')[0].text.zfill(2)+"-"+data.select('Day')[0].text.zfill(2)
|
releasedate=data.select('Year')[0].text+"-"+data.select('Month')[0].text.zfill(2)+"-"+data.select('Day')[0].text.zfill(2)
|
||||||
try:
|
try:
|
||||||
self.title = "#"+data.select('Number')[0].text.zfill(2) + ": " + data.select('Title')[0].text + " (" + releasedate + ") [" + str(self.size) + "MB]"
|
self.title = "#"+data.select('Number')[0].text.zfill(2) + ": " + title + " (" + releasedate + ") [" + str(self.size) + "MB]"
|
||||||
except:
|
except:
|
||||||
self.title = "#"+data.select('Number')[0].text.zfill(2) + " (" + releasedate + ") [" + str(self.size) + "MB]"
|
self.title = "#"+data.select('Number')[0].text.zfill(2) + " (" + releasedate + ") [" + str(self.size) + "MB]"
|
||||||
#print(self.title)
|
#print(self.title)
|
||||||
else:
|
else:
|
||||||
self.title = kwargs["title"]
|
self.title = title
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.title = kwargs["title"]
|
self.title = kwargs["title"]
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<entry>
|
<entry>
|
||||||
<title>{{ entry.title }}</title>
|
<title>{{ entry.title }}</title>
|
||||||
<id>{{ entry.id }}</id>
|
<id>{{ entry.id }}</id>
|
||||||
m!-- <summary type="text">{{ entry.summary }}</summary> -->
|
<summary type="text">{{ entry.summary }}</summary>
|
||||||
{% for author in entry.authors %}
|
{% for author in entry.authors %}
|
||||||
<author>
|
<author>
|
||||||
<name>{{ author }}</name>
|
<name>{{ author }}</name>
|
||||||
|
Loading…
Reference in New Issue
Block a user