We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc782f6 + d8a5192 commit 9ccf05bCopy full SHA for 9ccf05b
src/main.py
@@ -30,7 +30,9 @@ def run(input_file: Path = typer.Option("./file.pdf",
30
# Iterate over chapters metadata
31
for chapter in metadata.get_chapters():
32
page_range = re.split('-|–', chapter.get("pages"))
33
- output_file_name = chapter.get("doi").split('/')[-1] + '.pdf'
+
34
+ doi_fragments = chapter.get("doi").split('/')
35
+ output_file_name = doi_fragments[-1].lower() + '.pdf'
36
37
# Merge PDFs
38
pdf.merge_pdfs(page_range, output_file_name)
0 commit comments