Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chyoa image download issue #96

Open
theslavicbear opened this issue Jun 9, 2024 · 4 comments
Open

Chyoa image download issue #96

theslavicbear opened this issue Jun 9, 2024 · 4 comments

Comments

@theslavicbear
Copy link
Owner

          I managed to fix that probelm by adding in my usr name and password. Only question i have is im having trouble adding images. i just cant get it to work. for this story i can only get the heading image https://chyoa.com/chapter/Introduction.817852 and for these stories https://chyoa.com/chapter/Introduction.332890 https://chyoa.com/chapter/Introduction.522981 i get 

this Traceback (most recent call last):
File "C:\Users\Hp\Documents\Ebook-Publisher-master\Ebook-Publisher-master\Ebook-Publisher.py", line 343, in
formatsft
File "C:\Users\Hp\Documents\Ebook-Publisher-master\Ebook-Publisher-master\Ebook-Publisher.py", line 30, in
'HTML':lambda x:MakeHTML(x),
File "C:\Users\Hp\Documents\Ebook-Publisher-master\Ebook-Publisher-master\Ebook-Publisher.py", line 48, in MakeHTML
published=open(wd+title_stripped+'/'+site.title+'.html', 'w', encoding="utf-8")
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Hp\Documents\Ebook-Publisher-master\Ebook-Publisher-master\./Idius Halfhwit and the Aegis of Probability/Idius Halfhwit and the Aegis of Probability.html'
PS C:\Users\Hp\Documents\Ebook-Publisher-master\Ebook-Publisher-master>

Originally posted by @adwag-hue in #92 (comment)

@theslavicbear
Copy link
Owner Author

The image insertion for the first link seems to work fine when using the -t command, which vexes me as both variants use the same code to find the image links. Will keep looking into this.

@theslavicbear
Copy link
Owner Author

Okay I figured out the issue with the first link, will be fixed in next patch release.

@theslavicbear
Copy link
Owner Author

I wasn't able to reproduce the error with the other two links. Request you to pull the latest code and try them again. The first link should get all the images now.

@adwag-hue
Copy link

Thank you so much. I'm still having errors for some stories though. like this one https://chyoa.com/chapter/Introduction.600533 i do python Ebook-Publisher.py https://chyoa.com/chapter/Introduction.600533 -i --insert-images -o HTML --usr **** --pswd **** i got this Traceback (most recent call last):
File "C:\Users\Hp\Downloads\Ebook-Publisher-master\Ebook-Publisher-master\Ebook-Publisher.py", line 339, in
clas=MakeClass(i)
File "C:\Users\Hp\Downloads\Ebook-Publisher-master\Ebook-Publisher-master\Ebook-Publisher.py", line 202, in MakeClass
site=sitesdomain
File "C:\Users\Hp\Downloads\Ebook-Publisher-master\Ebook-Publisher-master\Ebook-Publisher.py", line 21, in
'chyoa.com':lambda x:Chyoa.Chyoa(x),
File "C:\Users\Hp\Downloads\Ebook-Publisher-master\Ebook-Publisher-master\Site\Chyoa.py", line 103, in init
self.authors.insert(0,soup.find('p', class_='meta').find('a').get_text())
AttributeError: 'NoneType' object has no attribute 'get_text'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants