Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
skymkmk committed Jul 27, 2023
1 parent 4d22bce commit 1f8a129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _detect_cbz(root: str, gid: int) -> bool:
exit(exitcodes.MULTI_GID_IN_DL_DIR_DETECTED)
else:
matched_dir = matched_dir[0]
cbzs = [os.path.join(matched_dir, i) for i in os.listdir(matched_dir) if '.cbz' in i and gid in i]
cbzs = [os.path.join(matched_dir, i) for i in os.listdir(matched_dir) if '.cbz' in i and str(gid) in i]
if len(cbzs) == 0:
return False
elif len(cbzs) > 1:
Expand Down

0 comments on commit 1f8a129

Please sign in to comment.