From dad2a630c758dfe6a1dede8105acbca7bf0491f2 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Wed, 26 Mar 2014 21:48:09 +0000 Subject: [PATCH] fix strip et al. with no thumbnail git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1827 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 2 +- var/mongoose/html/browse/crop/execute.jim | 1 + var/mongoose/html/browse/decrypt/execute.jim | 1 + var/mongoose/html/browse/strip/execute.jim | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTROL/control b/CONTROL/control index 3ee37f6..74866fe 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 1.0.10-2 +Version: 1.0.10-3 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif-channelicons(>=1.1.10),mongoose(>=3.0.11),jim(>=0.75-1),jim-oo,jim-sqlite3(>=0.75),jim-cgi(>=0.7),jim-binary(>=0.75),service-control(>=1.2),busybox(>=1.20.2-1),lsof,epg(>=1.0.13),hmt(>=1.1.14),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.05),ffmpeg,id3v2,multienv(>=1.6) diff --git a/var/mongoose/html/browse/crop/execute.jim b/var/mongoose/html/browse/crop/execute.jim index 3614b72..2d8fa0f 100755 --- a/var/mongoose/html/browse/crop/execute.jim +++ b/var/mongoose/html/browse/crop/execute.jim @@ -37,6 +37,7 @@ puts "Moving recording to $origdir" set tail [file tail $base] foreach ext $tsgroup { + if {![file exists "$base.$ext"]} continue puts " $tail.$ext" file rename "$base.$ext" "${origdir}/$tail.$ext" } diff --git a/var/mongoose/html/browse/decrypt/execute.jim b/var/mongoose/html/browse/decrypt/execute.jim index 46dafff..6c7acd7 100755 --- a/var/mongoose/html/browse/decrypt/execute.jim +++ b/var/mongoose/html/browse/decrypt/execute.jim @@ -44,6 +44,7 @@ puts "Moving recording to $origdir" set tail [file tail $base] foreach ext $tsgroup { + if {![file exists "$base.$ext"]} continue puts " $tail.$ext" file rename "$base.$ext" "${origdir}/$tail.$ext" } diff --git a/var/mongoose/html/browse/strip/execute.jim b/var/mongoose/html/browse/strip/execute.jim index 1a11736..d29f42f 100755 --- a/var/mongoose/html/browse/strip/execute.jim +++ b/var/mongoose/html/browse/strip/execute.jim @@ -30,6 +30,7 @@ if {[file exists "$origdir/$shname.ts"]} { puts "Moving recording to $origdir" set tail [file tail $base] foreach ext $tsgroup { + if {![file exists "$base.$ext"]} continue puts " $tail.$ext" file rename "$base.$ext" "${origdir}/$tail.$ext" }