Skip to content

Commit

Permalink
Merge pull request #676 from vitzli/master
Browse files Browse the repository at this point in the history
Fixes #675: itemlist is already a file-like object
  • Loading branch information
jjjake authored Jan 22, 2025
2 parents 042b1c7 + 828e633 commit e7edd92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internetarchive/cli/ia_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,7 @@ def main(args: argparse.Namespace, parser: argparse.ArgumentParser) -> None:
ids: list[File | str] | Search | TextIO

if args.itemlist:
with open(args.itemlist) as fp:
ids = [x.strip() for x in fp]
ids = [x.strip() for x in args.itemlist]
total_ids = len(ids)
elif args.search:
try:
Expand Down

0 comments on commit e7edd92

Please sign in to comment.