Override book's title if Title is set in XML (#532)

* Allow overriding title if it is set in XML
This commit is contained in:
Vinh Quang Tran
2023-06-10 09:13:01 +00:00
committed by GitHub
parent b0e38a700a
commit 935727c1db
3 changed files with 12 additions and 5 deletions
+3 -1
View File
@@ -695,7 +695,9 @@ def getComicInfo(path, originalpath):
os.remove(xmlPath)
return
options.authors = []
if defaultTitle:
if xml.data['Title']:
options.title = hescape(xml.data['Title'])
elif defaultTitle:
if xml.data['Series']:
options.title = hescape(xml.data['Series'])
if xml.data['Volume']: