Skip to content

Commit

Permalink
Merge pull request #144 from WindyAlexQ/dev-pr
Browse files Browse the repository at this point in the history
Update pull.py
  • Loading branch information
DeppWang authored Jun 7, 2024
2 parents 9984652 + 9bf10b4 commit 0cc7cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pull.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _judge_type(self, file_id, youdao_file_suffix) -> Enum:
if youdao_file_suffix == MARKDOWN_SUFFIX:
file_type = FileType.MARKDOWN
return file_type
elif youdao_file_suffix == ".note" or youdao_file_suffix == ".clip":
elif youdao_file_suffix == ".note" or youdao_file_suffix == ".clip" or youdao_file_suffix == "":
response = self.youdaonote_api.get_file_by_id(file_id)
# 2、如果文件以 `<?xml` 开头
if response.content[:5] == b"<?xml":
Expand Down

0 comments on commit 0cc7cb4

Please sign in to comment.