stop logging invalid ts file

This commit is contained in:
hummypkg 2014-02-23 16:11:15 +00:00
parent acf8c2c4b4
commit 9d5603f1e3
2 changed files with 6 additions and 4 deletions

View File

@ -1,9 +1,9 @@
Package: sweeper
Priority: optional
Section: misc
Version: 1.0.9-2
Version: 1.0.9-3
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: webif(>=1.0.9)
Description: Automatically manage single recording files. [Fix for recordings with unicode characters in their name]
Description: Automatically manage single recording files. [Fix for spurious Invalid TS File messages]
Tags: http://hummy.tv/forum/threads/3843/

View File

@ -191,13 +191,15 @@ proc ::sweeper:folder_merge {src dst} {
if {![string match {*.ts} $e]} continue
set entry "$src/$e"
log "+ Sweeper processing $entry" 2
if {[catch {set ts [ts fetch $entry]} msg} {
log "Error reading TS file, $msg" 0
continue
}
if {$ts == "0"} {
log "Invalid TS file." 0
log "Invalid TS file." 2
continue
}
@ -339,7 +341,7 @@ proc ::sweeper::apply {dir cf} {
}
if {$ts == "0"} {
log "Invalid TS file." 0
log "Invalid TS file." 2
continue
}