epub is mising a dot #5784

Closed
opened 2026-02-21 18:12:34 -05:00 by yindo · 1 comment
Owner

Originally created by @taowang1993 on GitHub (Sep 24, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.8.3

Cloud or Self Hosted

Cloud, Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

https://github.com/langgenius/dify/blob/main/api/core/rag/extractor/extract_processor.py

the extention epub should be .epub

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @taowang1993 on GitHub (Sep 24, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.8.3 ### Cloud or Self Hosted Cloud, Self Hosted (Docker), Self Hosted (Source) ### Steps to reproduce https://github.com/langgenius/dify/blob/main/api/core/rag/extractor/extract_processor.py the extention epub should be .epub ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:12:34 -05:00
yindo closed this issue 2026-02-21 18:12:35 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 24, 2024):

Yes, there is a bug in the extract_processor.py file where the extension for EPUB files is not recognized correctly. The code incorrectly checks for the extension as "epub" instead of ".epub".

The current code:

elif file_extension == "epub":
    extractor = UnstructuredEpubExtractor(file_path)

It should be:

elif file_extension == ".epub":
    extractor = UnstructuredEpubExtractor(file_path)

This change will ensure that .epub files are correctly recognized and processed [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 24, 2024): <!-- Answer --> Yes, there is a bug in the `extract_processor.py` file where the extension for EPUB files is not recognized correctly. The code incorrectly checks for the extension as `"epub"` instead of `".epub"`. The current code: ```python elif file_extension == "epub": extractor = UnstructuredEpubExtractor(file_path) ``` It should be: ```python elif file_extension == ".epub": extractor = UnstructuredEpubExtractor(file_path) ``` This change will ensure that `.epub` files are correctly recognized and processed <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/rag/extractor/extract_processor.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5784