チェンジセット 97: trunk/install/perl/recwrap.pl
- コミット日時:
- 2010/04/02 22:58:58 (15 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/perl/recwrap.pl
r94 r97 54 54 }else{ 55 55 $extension = ".m2p";#MPEG2の拡張子 56 } 57 if ($recch == -2 ){ #ラジオ局 58 $extension = ".aac";#MPEG2の拡張子 56 59 } 57 60 … … 71 74 } 72 75 } 76 77 if ($recch == -2 ){ #ラジオ局 78 # stationIDからradiko識別子を取得 79 $sth = $dbh->prepare($stmt{'recwrap.8'}); 80 $sth->execute($stationid); 81 @stationline= $sth->fetchrow_array; 82 $radikostationname = $stationline[3]; 83 84 $oserr = system("$toolpath/perl/digitalradiorecording.pl $radikostationname $reclength $outputfilename"); 85 $oserr = $oserr / 256; 86 &writelog("recwrap DEBUG radiko rec finished. $oserr"); 87 88 # aacファイル名をfoltia_subtitlePIDレコードに書き込み 89 $sth = $dbh->prepare($stmt{'recwrap.1'}); 90 $sth->execute($outputfilename, $pid); 91 &writelog("recwrap DEBUG UPDATEDB $stmt{'recwrap.1'}"); 92 &changefilestatus($pid,$FILESTATUSTRANSCODEMP4BOX); 93 94 # aacファイル名をfoltia_m2pfilesPIDレコードに書き込み 95 $sth = $dbh->prepare($stmt{'recwrap.2'}); 96 $sth->execute($outputfilename); 97 &writelog("recwrap DEBUG UPDATEDB $stmt{'recwrap.2'}"); 98 99 100 }else{#非ラジオ局なら 73 101 74 102 if ($usedigital == 1){ … … 96 124 exit ; 97 125 } 98 }else{ 126 }else{ # NOT $usedigital == 1 99 127 #リモコン操作 100 128 # $haveirdaunit = 1;リモコンつないでるかどうか確認 … … 176 204 &changefilestatus($pid,$FILESTATUSCAPEND); 177 205 } 178 206 }#非ラジオ局 179 207 180 208 # MPEG4 ------------------------------------------------------ … … 184 212 @psptrcn= $sth->fetchrow_array; 185 213 if ($psptrcn[0] == 1 ){#トラコン番組 186 &writelog("recwrap Launch ipodtranscode.pl");187 exec ("$toolpath/perl/ipodtranscode.pl");188 exit;214 &writelog("recwrap Launch ipodtranscode.pl"); 215 exec ("$toolpath/perl/ipodtranscode.pl"); 216 exit; 189 217 }#PSPトラコンあり 190 218