maoserr / epublifier

Converts some webnovels to epub format
https://chromewebstore.google.com/detail/epublifier/eopjnahefjhnhfanplcjpbbdkpbagikk
GNU General Public License v3.0
745 stars 17 forks source link

[BUG] Unable to embed image #382

Closed meedstrom closed 4 months ago

meedstrom commented 4 months ago

Describe the bug The resulting epub has dead images.

See logs below - they say TypeError: NetworkError when attempting to fetch resource. Does this happen to you?

Required info:

Chapter 0
Chapter 1
Chapter 2
Parsing chapter content: 0
Chapter 3
Parsing chapter content: 1
Chapter 4
Parsing chapter content: 2
Parsing chapter content: 3
Chapter 5
Chapter 6
Parsing chapter content: 4
Chapter 7
Parsing chapter content: 5
Chapter 8
Parsing chapter content: 6
Parsing chapter content: 7
Chapter 9
Chapter 10
Parsing chapter content: 8
Chapter 11
Parsing chapter content: 9
Chapter 12
Parsing chapter content: 10
Chapter 13
Parsing chapter content: 11
Chapter 14
Parsing chapter content: 12
Chapter 15
Parsing chapter content: 13
Parsing chapter content: 14
Chapter 16
Parsing chapter content: 15
Chapter 17
Parsing chapter content: 16
Chapter 18
Parsing chapter content: 17
Parsing chapter content: 18
Chapter 19
Chapter 20
Chapter 21
Parsing chapter content: 19
Parsing chapter content: 20
Parsing chapter content: 21
Chapter 0
Chapter 1
Chapter 2
Parsing chapter content: 0
Parsing chapter content: 1
Parsing chapter content: 2
Chapter 3
Chapter 4
Parsing chapter content: 3
Chapter 5
Parsing chapter content: 4
Parsing chapter content: 5
Chapter 6
Chapter 7
Parsing chapter content: 6
Chapter 8
Parsing chapter content: 7
Chapter 9
Parsing chapter content: 8
Chapter 10
Chapter 11
Parsing chapter content: 9
Parsing chapter content: 11
Chapter 12
Parsing chapter content: 10
Chapter 13
Parsing chapter content: 12
Chapter 14
Parsing chapter content: 14
Chapter 15
Parsing chapter content: 13
Parsing chapter content: 15
Chapter 16
Chapter 17
Parsing chapter content: 16
Parsing chapter content: 17
Chapter 18
Parsing chapter content: 18
Chapter 19
Chapter 20
Parsing chapter content: 19
Chapter 21
Parsing chapter content: 20
Parsing chapter content: 21
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/1STFGCT95D0B5F3DK3BPR737CV: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/7TE6OJ270NERM8IULSG4HBOLF4: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/53RLF70S01QD2UVMG4E27AHGS6: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/3CJVRBUFA4IB4IH9UCTPR9OFMH: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/2LI6HOQ12I29EGRJMCDCJVB1O4: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/5C3OMDIECOMIVVPBK6BGUECHC1: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/6UTCA01GGJUAV3FGP8RDH7U9TT: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/2MM9QEC1PH5UIPQ01F4MNVIFJH: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/2T0NOP1G2AI99OIBJL3JIR4579: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/2C7BE72NON4AMGEB4FLQIP6NMU: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/45L7PC5TNVLB096JVI54G3D55: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/48B54EP2GE7RPD94C5OJJIUN8T: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/76EUOPPEB1QK9G2JCJSJ8S6MRI: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/1EBR13LRE0LESLDE0TCQ5I52D1: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/2EFOT42RJ7UA83DMFNRCU2GJ4I: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/6QM2CP7EJM6MGELRP8VFBLMKE0: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/5EGG252970BQUSHRQ5QUSQB5CE: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/55ET9T1VNHT9HEQKQO4H321NL2: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/4FFT5EAI9KEELLNGDA7AOJCSS5: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/30C3G1VBVNHKCE051AD7B2LV9I: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/6U6FBS95UGRUDGSOJS7H8B6JJQ: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/7AI0NASQI64TVHQV1H8A28S7DP: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/32MPEEPJK7K0OQ039ML8AC4LRG: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/1DMRCDLUR9PHI0B4M46TMHAIG: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/G7CKECU8HBHG7NHKLCABOHHPB: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/6QJQ5R83QDGSP9CJ0OT8G00KD6: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/15DLLLHNDS5K4B1SUG8GE2P61N: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/46QSSMA4FBPCS40E0LMTLST0RN: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/68K084P9I9IUQATJ2T0IB6I22I: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/41TR6HSJ205ED53ET985P7GMG4: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/32V1E1J5P8MCCPHMJBIC8GIH4: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/75V4PEAL1FDRK35UCKH415P0N3: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/35BVJON4QNBM48D253I5URG4OA: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/4NSFEMBI71LPAGGC30BK4VMCMB: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/1L0SAHP4LOMGSSNMQS6RJ1EIL: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/6LJR1UUHODN72CJ8LO3FJ6EAC3: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/15LEBLVGTLRBSTBF6IOKE63JMG: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/4O0KSHK1NF6ALO0VABH35N74PB: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/6MQ8AO467NTH4EP15LR0990KC9: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/18TST7HUH5KPUDOURUPFEQHLUI: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/NKR66GBFP0V32AFKFJTUEN707: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/1VLSA8FK534CHUDOS741LO15F0: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/29DNH03AH53FDAI6E52MA3VLQJ: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/15DB4HEBNFNJ69RN3KCQ8UM0S4: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/7K09QPO3G3QDQM6TEFDV7I55HR: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/69NS7EIG777URAACAMH2T3UCJE: TypeError: NetworkError when attempting to fetch resource.
Fetching image 0
Unable to embed image 0 - moz-extension://61aa4eec-c90c-400e-9f73-53cfd0e95da2/proxy-assets/6C0KC74R89TV0MF6GVNF1BCQOP: TypeError: NetworkError when attempting to fetch resource.
Generating ePub
Zip: 0.00 %, current file = mimetype
Zip: 3.33 %, current file = mimetype
Zip: 3.33 %, current file = META-INF/
Zip: 6.67 %, current file = META-INF/container.xml
Zip: 10.00 %, current file = META-INF/container.xml
Zip: 10.00 %, current file = OEBPS/
Zip: 13.33 %, current file = OEBPS/title-page.html
Zip: 16.67 %, current file = OEBPS/title-page.html
Zip: 16.67 %, current file = OEBPS/page-0-sequence_introduction__non_agent_and_multiagent_models_of_mind.html
Zip: 20.00 %, current file = OEBPS/page-0-sequence_introduction__non_agent_and_multiagent_models_of_mind.html
Zip: 20.00 %, current file = OEBPS/page-1-book_summary__consciousness_and_the_brain.html
Zip: 23.33 %, current file = OEBPS/page-1-book_summary__consciousness_and_the_brain.html
Zip: 23.33 %, current file = OEBPS/page-1-book_summary__consciousness_and_the_brain.html
Zip: 23.33 %, current file = OEBPS/page-2-building_up_to_an_internal_family_systems_model.html
Zip: 26.67 %, current file = OEBPS/page-2-building_up_to_an_internal_family_systems_model.html
Zip: 26.67 %, current file = OEBPS/page-2-building_up_to_an_internal_family_systems_model.html
Zip: 26.67 %, current file = OEBPS/page-3-subagents__introspective_awareness__and_blending.html
Zip: 30.00 %, current file = OEBPS/page-3-subagents__introspective_awareness__and_blending.html
Zip: 30.00 %, current file = OEBPS/page-4-subagents__akrasia__and_coherence_in_humans.html
Zip: 33.33 %, current file = OEBPS/page-4-subagents__akrasia__and_coherence_in_humans.html
Zip: 33.33 %, current file = OEBPS/page-5-integrating_disagreeing_subagents.html
Zip: 36.67 %, current file = OEBPS/page-5-integrating_disagreeing_subagents.html
Zip: 36.67 %, current file = OEBPS/page-5-integrating_disagreeing_subagents.html
Zip: 36.67 %, current file = OEBPS/page-6-subagents__neural_turing_machines__thought_selection__and_blindspots.html
Zip: 40.00 %, current file = OEBPS/page-6-subagents__neural_turing_machines__thought_selection__and_blindspots.html
Zip: 40.00 %, current file = OEBPS/page-7-subagents__trauma_and_rationality.html
Zip: 43.33 %, current file = OEBPS/page-7-subagents__trauma_and_rationality.html
Zip: 43.33 %, current file = OEBPS/page-7-subagents__trauma_and_rationality.html
Zip: 43.33 %, current file = OEBPS/page-8-system_2_as_working_memory_augmented_system_1_reasoning.html
Zip: 46.67 %, current file = OEBPS/page-8-system_2_as_working_memory_augmented_system_1_reasoning.html
Zip: 46.67 %, current file = OEBPS/page-9-book_summary__unlocking_the_emotional_brain.html
Zip: 50.00 %, current file = OEBPS/page-9-book_summary__unlocking_the_emotional_brain.html
Zip: 50.00 %, current file = OEBPS/page-9-book_summary__unlocking_the_emotional_brain.html
Zip: 50.00 %, current file = OEBPS/page-10-a_mechanistic_model_of_meditation.html
Zip: 53.33 %, current file = OEBPS/page-10-a_mechanistic_model_of_meditation.html
Zip: 53.33 %, current file = OEBPS/page-10-a_mechanistic_model_of_meditation.html
Zip: 53.33 %, current file = OEBPS/page-11-a_non_mystical_explanation_of_insight_meditation_and_the_three_characteristics_of_existence__introdu.html
Zip: 56.67 %, current file = OEBPS/page-11-a_non_mystical_explanation_of_insight_meditation_and_the_three_characteristics_of_existence__introdu.html
Zip: 56.67 %, current file = OEBPS/page-12-a_non_mystical_explanation_of__no_self___three_characteristics_series_.html
Zip: 60.00 %, current file = OEBPS/page-12-a_non_mystical_explanation_of__no_self___three_characteristics_series_.html
Zip: 60.00 %, current file = OEBPS/page-13-craving__suffering__and_predictive_processing__three_characteristics_series_.html
Zip: 63.33 %, current file = OEBPS/page-13-craving__suffering__and_predictive_processing__three_characteristics_series_.html
Zip: 63.33 %, current file = OEBPS/page-14-from_self_to_craving__three_characteristics_series_.html
Zip: 66.67 %, current file = OEBPS/page-14-from_self_to_craving__three_characteristics_series_.html
Zip: 66.67 %, current file = OEBPS/page-15-on_the_construction_of_the_self.html
Zip: 70.00 %, current file = OEBPS/page-15-on_the_construction_of_the_self.html
Zip: 70.00 %, current file = OEBPS/page-16-three_characteristics__impermanence.html
Zip: 73.33 %, current file = OEBPS/page-16-three_characteristics__impermanence.html
Zip: 73.33 %, current file = OEBPS/page-17-beliefs_as_emotional_strategies.html
Zip: 76.67 %, current file = OEBPS/page-17-beliefs_as_emotional_strategies.html
Zip: 76.67 %, current file = OEBPS/page-18-my_current_take_on_internal_family_systems__parts_.html
Zip: 80.00 %, current file = OEBPS/page-18-my_current_take_on_internal_family_systems__parts_.html
Zip: 80.00 %, current file = OEBPS/page-19-goodhart_s_law_inside_the_human_mind.html
Zip: 83.33 %, current file = OEBPS/page-19-goodhart_s_law_inside_the_human_mind.html
Zip: 83.33 %, current file = OEBPS/page-20-romance__misunderstanding__social_stances__and_the_human_llm.html
Zip: 86.67 %, current file = OEBPS/page-20-romance__misunderstanding__social_stances__and_the_human_llm.html
Zip: 86.67 %, current file = OEBPS/page-21-quick_thoughts_on_the_implications_of_multi_agent_views_of_mind_on_ai_takeover.html
Zip: 90.00 %, current file = OEBPS/page-21-quick_thoughts_on_the_implications_of_multi_agent_views_of_mind_on_ai_takeover.html
Zip: 90.00 %, current file = book.opf
Zip: 93.33 %, current file = book.opf
Zip: 93.33 %, current file = OEBPS/table-of-contents.html
Zip: 96.67 %, current file = OEBPS/table-of-contents.html
Zip: 96.67 %, current file = toc.ncx
Zip: 100.00 %, current file = toc.ncx
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
Zip: 100.00 %
maoserr commented 4 months ago

I see what the issue is. I forgot to prepend base URL in situations where the img url is relative.

maoserr commented 4 months ago

this is fixed in the next release