Skip to content

Commit f806725

Browse files
committed
Bug (logging) in libmerge
1 parent bd9c049 commit f806725

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
1414

1515
# Project version number
1616
set(PRJ_VERSION_MAJOR 8)
17-
set(PRJ_VERSION_MINOR 61)
17+
set(PRJ_VERSION_MINOR 62)
1818
configure_file("${PROJECT_SOURCE_DIR}/cmake/version.h.in" "${PROJECT_BINARY_DIR}/version.h")
1919
include_directories("${PROJECT_BINARY_DIR}")
2020

libmerge/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ func main() {
287287
name := filepath.Join(u.dir, u.info.Name())
288288
rc, err := zip.OpenReader(name)
289289
if err != nil {
290-
log.Print("\tError opening update file %s, skipping: %v", filepath.Join(u.dir, u.info.Name()), err)
290+
log.Printf("\tError opening update file %s, skipping: %v", filepath.Join(u.dir, u.info.Name()), err)
291291
continue
292292
}
293293
fmt.Printf("\tProcessing update: %s\n", filepath.Join(u.dir, u.info.Name()))

scripts/fb2_flibusta.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ $host.UI.RawUI.BufferSize = new-object System.Management.Automation.Host.Size(51
3535

3636
$name = "flibusta"
3737
$retries = 10
38-
$timeout = 90
38+
$timeout = 300
39+
$chunksize = 1
3940

4041
$mydir = Get-ScriptDirectory
4142
$wdir = Join-Path $archive_path ($name + (get-date -format "_yyyyMMdd_HHmmss"))
@@ -58,7 +59,7 @@ Wake-Synology
5859

5960
Write-Output "Downloading $name ..."
6061

61-
& $mydir/libget2 --verbose --library is_$name --retry $retries --timeout $timeout --continue --to $udir --tosql $wdir --config $mydir/libget2.conf 2>&1 | Write-Host
62+
& $mydir/libget2 --verbose --library is_$name --retry $retries --timeout $timeout --chunksize $chunksize --continue --to $udir --tosql $wdir --config $mydir/libget2.conf 2>&1 | Write-Host
6263

6364
if( $LASTEXITCODE -eq 1 ) { Write-Error "LIBGET error!"; Power-Balanced; exit 0 }
6465
if( $LASTEXITCODE -eq 0 ) { Write-Output "No archive updates..."; Power-Balanced; exit 0 }

scripts/fb2_flibusta.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ fi
1515

1616
name="flibusta"
1717
retries=10
18-
timeout=90
18+
timeout=300
19+
chunksize = 1
1920

2021
# -----------------------------------------------------------------------------
2122
# Main body
@@ -40,6 +41,7 @@ ${mydir}/libget2 \
4041
--library is_${name} \
4142
--retry ${retries} \
4243
--timeout ${timeout} \
44+
--chunksize ${chunksize} \
4345
--continue --to ${udir} \
4446
--tosql ${wdir} \
4547
--config ${mydir}/libget2.conf
@@ -79,6 +81,7 @@ ${mydir}/lib2inpx \
7981
--db-name=${name} \
8082
--process=fb2 \
8183
--read-fb2=all \
84+
--prefer-fb2=complement \
8285
--out-dir=${odir} \
8386
--quick-fix \
8487
--clean-when-done \

scripts/fb2_index.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ ${mydir}/lib2inpx \
3535
--db-name=${name} \
3636
--process=fb2 \
3737
--read-fb2=all \
38+
--prefer-fb2=complement \
3839
--out-dir=${odir} \
3940
--quick-fix \
4041
--clean-when-done \

0 commit comments

Comments
 (0)