Update fulfill.py

This commit is contained in:
Bipin 2023-02-23 17:04:42 +05:30 committed by GitHub
parent 86f24caa19
commit 246fcc57cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,7 @@ def download(replyData):
try:
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 = ''.join([c for c in book_name if c not in '\/:*?"<>|'])
except:
book_name = "Book"