diff --git a/Project.toml b/Project.toml index d9fa92c..bd18d9d 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Remarkable" uuid = "4ac160eb-0277-4e02-b3c6-a4c4623dd812" authors = ["Theo Galy-Fajou and contributors"] -version = "0.1.2" +version = "0.1.3" [deps] AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c" diff --git a/src/api.jl b/src/api.jl index fc05df3..9d18baa 100644 --- a/src/api.jl +++ b/src/api.jl @@ -170,7 +170,7 @@ function download_pdf( isempty(title(doc)) ? doc.ID : (ispdf(doc) ? title(doc)[1:(end - 4)] : title(doc)) z = ZipFile.Reader(file_path) for f in z.files - if endswith(f, ".pdf") + if endswith(f.name, ".pdf") write(joinpath(path_target, file_name * ".pdf"), f) @info "Extracted $(file_name).pdf" return joinpath(path_target, file_name * ".pdf")