From 7affd6ca21311d922f22a561160723a5a0d166dd Mon Sep 17 00:00:00 2001 From: PrivateGER Date: Mon, 18 Oct 2021 14:18:56 +0200 Subject: [PATCH] Remove logging breaking progress bar --- .gitlab-ci.yml | 2 +- DirectoryIndexers/DirectoryIndexer.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54ae6b2..c765e6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,7 @@ stages: compile: stage: build script: - - go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/ytdlp-archive-viewer . + - go build -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/ytdlp-archive-viewer . artifacts: paths: - ytdlp-archive-viewer diff --git a/DirectoryIndexers/DirectoryIndexer.go b/DirectoryIndexers/DirectoryIndexer.go index fe97c59..1cbdfc6 100644 --- a/DirectoryIndexers/DirectoryIndexer.go +++ b/DirectoryIndexers/DirectoryIndexer.go @@ -119,8 +119,6 @@ func filenameToID(filename string) string { matches := regexp2FindAllString(r, filename) if len(matches) == 0 { - fmt.Println("Got video without square-bracket ID format. Falling back to youtube-dl 11-char string matching (!THIS MAY CAUSE ISSUES!):", filename) - r = regexp2.MustCompile("-[A-Za-z0-9_-]{11}", regexp2.RegexOptions(0)) matches = regexp2FindAllString(r, filename) if len(matches) == 0 { @@ -130,7 +128,6 @@ func filenameToID(filename string) string { // strips first dash away from the result (yes, I know this is DIRTY. matches = []string{matches[len(matches)-1]} matches[0] = matches[0][1:] - fmt.Println("Recovered ID:", matches[0]) } return matches[len(matches)-1] // last element = the id between square brackets }