Update fulfill.py

main
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
1 changed files with 1 additions and 0 deletions

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"