marcorentap / fliphtml5-downloader

A downloader for flipHTML5
22 stars 9 forks source link

I get a key error 'n' when I try to down with this kind of book address: https://online.fliphtml5.com/nzcu/tskb/#p=1 #5

Open BagabBhatti opened 4 days ago

BagabBhatti commented 4 days ago

Here is the detail of full error I get and please help me resolve this:

C:\Users\hssna\Music\fliphtml5Downloader>python3 fliphtml5Downloader.py Enter the book link in the format */: nzcu/tskb Traceback (most recent call last): File "C:\Users\hssna\Music\fliphtml5Downloader\fliphtml5Downloader.py", line 66, in page_url = url_crack(book_name, page) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\hssna\Music\fliphtml5Downloader\fliphtml5Downloader.py", line 56, in url_crack url_options = {0: 'https://online.fliphtml5.com/{0}/files/large/{1}'.format(book_name, fliphtml5_pages[page]['n'][0]), 1: 'https://online.fliphtml5.com/{0}/files/page/{1}.jpg'.format(book_name, page+1), 2: 'https://online.fliphtml5.com/{0}{1}'.format(book_name, fliphtml5_pages[page]['n'][0][1:])}


KeyError: 'n'

The Full address for the book is:
 https://online.fliphtml5.com/nzcu/tskb/#p=1