mirror of
https://gitea.com/bipinkrish/DeGourou.git
synced 2024-11-17 09:40:21 +00:00
Update fulfill.py
This commit is contained in:
parent
86f24caa19
commit
246fcc57cc
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ def download(replyData):
|
||||||
try:
|
try:
|
||||||
metadata_node = adobe_fulfill_response.find("./%s/%s/%s" % (adNS("fulfillmentResult"), adNS("resourceItemInfo"), adNS("metadata")))
|
metadata_node = adobe_fulfill_response.find("./%s/%s/%s" % (adNS("fulfillmentResult"), adNS("resourceItemInfo"), adNS("metadata")))
|
||||||
book_name = metadata_node.find("./%s" % (adDC("title"))).text
|
book_name = metadata_node.find("./%s" % (adDC("title"))).text
|
||||||
|
book_name = ''.join([c for c in book_name if c not in '\/:*?"<>|'])
|
||||||
except:
|
except:
|
||||||
book_name = "Book"
|
book_name = "Book"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue