#11 Added log before file-existence check, to try spot error.

This commit is contained in:
Barold 2021-01-24 13:43:21 +02:00
parent f95c6c3d8d
commit f8e1305c08
4 changed files with 22 additions and 21 deletions

View File

@ -100,6 +100,7 @@ func main() {
issueName := RemoveBadCharacters(issue.Name) issueName := RemoveBadCharacters(issue.Name)
completeName := mydir + "/issue/" + publicationName + " - " + issueName + ".pdf" completeName := mydir + "/issue/" + publicationName + " - " + issueName + ".pdf"
fmt.Println("Checking if issue exists: " + completeName)
if fileExists(completeName) { if fileExists(completeName) {
fmt.Println("Issue already found: " + completeName) fmt.Println("Issue already found: " + completeName)
continue continue

BIN
built/Zinigo_Linux_AMD64 Normal file

Binary file not shown.

Binary file not shown.

View File

@ -24,7 +24,7 @@ margin-left:auto;
</style> </style>
</head> </head>
<body> <body>
<object type="image/svg+xml" data="SVG_PATH" ></object> <object type="image/svg+xml" data="SVG_PATH</object>
<script> <script>
window.onload = fixpage; window.onload = fixpage;
@ -37,7 +37,7 @@ margin-left:auto;
// fix chrome page bug // fix chrome page bug
fixHeight = parseInt(renderBlockInfo.height) + 1 + "px" fixHeight = parseInt(renderBlockInfo.height) + 1 + "px"
pageCss = `@page { size: \${renderBlockInfo.width} \${fixHeight} ; margin:0;}` pageCss = "@page { size: " + renderBlockInfo.width + " " + fixHeight +" ; margin:0;}"
document.getElementById("page_style").innerHTML = pageCss document.getElementById("page_style").innerHTML = pageCss
} }
</script> </script>