OSDN Git Service

in mode=suggest, add a queue with convert_b25_ts if asked to move after dec/rec
authorlonginus <longinus@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 4 Jan 2013 14:09:50 +0000 (14:09 +0000)
committerlonginus <longinus@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 4 Jan 2013 14:09:50 +0000 (14:09 +0000)
(override convert_ts_mp4 -> convert_b25_ts)

git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@950 4e526526-5e11-4fc0-8910-f8fd03428081

rectool/trunk/rectool.pl

index d3e9ae1..ca661ee 100755 (executable)
@@ -907,6 +907,9 @@ if ( $mode eq 'change' ) {
                $datetime_now = $datetime_now->add( minutes => 60 );
                my $end = $datetime_now->strftime( '%Y-%m-%d %H:%M:%S' );
 
+               # 録画後/解読後移動ならば、解読予約にオーバーライドする
+               $sql_type = 'convert_b25_ts' if ( $opt =~ /R|D/ );
+
                $dbh->do( 
                        "INSERT INTO timeline ( type, chtxt, title, btime, etime, opt ) 
                        VALUES ( '$sql_type', '$chtxt', '$title', '$begin', '$end', '$opt' )"