summaryrefslogtreecommitdiff
path: root/cmd/getpipelinebook/main.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2020-12-07 16:53:58 +0000
committerNick White <git@njw.name>2020-12-07 16:53:58 +0000
commit068ad0b666705a49ab22d7b48cd6a7d67b37f234 (patch)
tree36a422929c7d53f49a0f549fc4781e99b1d9423d /cmd/getpipelinebook/main.go
parent4fcbfba65689dc5e8ad46ba467343d3da376d92a (diff)
[rescribe] Allow saving of results to somewhere other than a directory named after the book being processed
Diffstat (limited to 'cmd/getpipelinebook/main.go')
-rw-r--r--cmd/getpipelinebook/main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/getpipelinebook/main.go b/cmd/getpipelinebook/main.go
index 5116414..ccedd72 100644
--- a/cmd/getpipelinebook/main.go
+++ b/cmd/getpipelinebook/main.go
@@ -87,7 +87,7 @@ func main() {
if *all {
verboselog.Println("Downloading all files for", bookname)
- err = pipeline.DownloadAll(bookname, conn)
+ err = pipeline.DownloadAll(bookname, bookname, conn)
if err != nil {
log.Fatalln(err)
}
@@ -122,7 +122,7 @@ func main() {
if *pdf {
verboselog.Println("Downloading PDFs")
- pipeline.DownloadPdfs(bookname, conn)
+ pipeline.DownloadPdfs(bookname, bookname, conn)
}
if *binarisedpdf || *colourpdf || *graph || *pdf {
@@ -130,19 +130,19 @@ func main() {
}
verboselog.Println("Downloading best pages")
- err = pipeline.DownloadBestPages(bookname, conn, *png)
+ err = pipeline.DownloadBestPages(bookname, bookname, conn, *png)
if err != nil {
log.Fatalln(err)
}
verboselog.Println("Downloading PDFs")
- pipeline.DownloadPdfs(bookname, conn)
+ pipeline.DownloadPdfs(bookname, bookname, conn)
if err != nil {
log.Fatalln(err)
}
verboselog.Println("Downloading analyses")
- err = pipeline.DownloadAnalyses(bookname, conn)
+ err = pipeline.DownloadAnalyses(bookname, bookname, conn)
if err != nil {
log.Fatalln(err)
}