Small Fix
This commit is contained in:
parent
fce6b68473
commit
b2759bc182
3 changed files with 11 additions and 4 deletions
|
@ -32,5 +32,10 @@ else:
|
||||||
print("Not in supported file formats")
|
print("Not in supported file formats")
|
||||||
print()
|
print()
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
from os import remove, rename
|
||||||
|
remove(enrcyptedFile)
|
||||||
|
rename(decryptedFile,enrcyptedFile)
|
||||||
|
decryptedFile = enrcyptedFile
|
||||||
print(decryptedFile)
|
print(decryptedFile)
|
||||||
print()
|
print()
|
|
@ -9,7 +9,7 @@
|
||||||
1. Adobe Account (dummy account recommended)
|
1. Adobe Account (dummy account recommended)
|
||||||
2. Internet Archive Account
|
2. Internet Archive Account
|
||||||
3. ACSM file from the book page you borrowded from Internet Archive
|
3. ACSM file from the book page you borrowded from Internet Archive
|
||||||
4. Python v3.x.x Installed with pip
|
4. Python v3.x.x Installed with pip (not required for normal users)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
1. Download binary file according to your operating system from [Releases Section](https://github.com/bipinkrish/DeGourou/releases)
|
1. Download binary file according to your operating system from [Releases Section](https://github.com/bipinkrish/DeGourou/releases)
|
||||||
2. Run the binary according to operating system
|
2. Run the binary according to operating system
|
||||||
|
|
||||||
A. Windows user's can just simply run the .exe
|
A. Windows user's can just simply run the DeGourou-windows.exe
|
||||||
|
|
||||||
B. Linux user's need to change the file permission and then can run
|
B. Linux user's need to change the file permission and then can run
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
### For Developers
|
### For Developers
|
||||||
|
|
||||||
1. Clone the repositary or Downlaod zip file and extract it
|
1. Clone the repositary or Download zip file and extract it
|
||||||
2. Install requirements using pip
|
2. Install requirements using pip
|
||||||
3. Run "DeGourou" file
|
3. Run "DeGourou" file
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,9 @@ 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 '\/:*?"<>|'])
|
# removing illegal characters for filename
|
||||||
|
book_name = book_name.replace(":","-")
|
||||||
|
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