dernorberto / confluenceDumpWithPython

Download Confluence pages including attachments and emoticons using Atlassian API and Python
MIT License
14 stars 6 forks source link

Attachment files with long filenames or unsupported characters #3

Closed dernorberto closed 1 year ago

dernorberto commented 1 year ago

Issue

! Package pdftex.def Error: File `/private/var/folders/jm/76v60lk51sb3_cvn2kpzb
sch0000gr/T/tex2pdf.-f81a8d7c883e45e2/attachments/2021-07-28 14_18_57-Statuspag
e - New realtime incident and 10 more pages - Work - Microsofthspace {0pt} Edge
.png' not found: using draft setting.

See the pdftex.def package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.849 ... - Work - Microsoft\hspace{0pt} Edge.png}

Solution

dernorberto commented 1 year ago

Some files have finenames with colons, which git does not support. Replace every tricky character with a hyphen.

dernorberto commented 1 year ago

added to files downloaded: .replace(":","-").replace(" ","_").replace("%20","_")

dernorberto commented 1 year ago

fixed for now