チェンジセット 129
- コミット日時:
- 2010/10/22 19:15:11 (14 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/perl/epgimport.pl
r112 r129 44 44 my $usecs = ""; 45 45 my $stationid = "" ; 46 my $rectime = ""; 46 my $rectime = 0; 47 my $bsrectime = 0; 48 my $cs1rectime = 0; 49 my $cs2rectime = 0; 50 47 51 48 52 #引き数がアルか? … … 51 55 $rectime = 60; 52 56 $bsrectime = 120; 57 $cs1rectime = 60; 58 $cs2rectime = 60; 53 59 }elsif( $ARGV[0] > 0 ){ 54 60 $stationid = $ARGV[0]; 55 61 $rectime = 3; 56 62 $bsrectime = 36; 63 $cs1rectime = 15; 64 $cs2rectime = 5; 57 65 }else{ 58 66 #短期番組表取得 59 67 $rectime = 3; 60 68 $bsrectime = 36; 69 $cs1rectime = 15; 70 $cs2rectime = 5; 61 71 } 62 72 #データ量比較 … … 168 178 169 179 #CS---------------------------------------- 170 #CSは取得に時間がかかるがどうしようか 171 #ひとまずlongモードのときだけ取得 172 if ( $ARGV[0] eq "long" ){ 180 #if ( $ARGV[0] eq "long" ){ #短時間録画なら異常に重くはならないことを発見した 173 181 #受信局確認 174 182 if ($channel >= 223 ){#局指定があるなら … … 189 197 &chkrecordingschedule; 190 198 #print "$recpt1path $channela $bsrectime $recfolderpath/__$channela.m2t\n"; 191 $oserr = `$recpt1path $channela $ bsrectime $recfolderpath/__$channela.m2t`;199 $oserr = `$recpt1path $channela $cs1rectime $recfolderpath/__$channela.m2t`; 192 200 193 201 $channelb = "CS24"; 194 202 &chkrecordingschedule; 195 203 #print "$recpt1path $channelb $bsrectime $recfolderpath/__$channelb.m2t\n"; 196 $oserr = `$recpt1path $channelb $ bsrectime $recfolderpath/__$channelb.m2t`;204 $oserr = `$recpt1path $channelb $cs2rectime $recfolderpath/__$channelb.m2t`; 197 205 198 206 #時間のかかるepgdumpまとめてあとまわし 199 207 #print "nice -n 19 $epgdumppath/epgdump /CS $recfolderpath/__$channela.m2t $xmloutpath/__$channela-epg.xml\n"; 200 $oserr = ` nice -n 19$epgdumppath/epgdump /CS $recfolderpath/__$channela.m2t $xmloutpath/__$channela-epg.xml`;208 $oserr = `$epgdumppath/epgdump /CS $recfolderpath/__$channela.m2t $xmloutpath/__$channela-epg.xml`; 201 209 #print "cat $xmloutpath/__$channela-epg.xml | $toolpath/perl/xmltv2foltia.pl\n"; 202 210 $oserr = `cat $xmloutpath/__$channela-epg.xml | $toolpath/perl/xmltv2foltia.pl`; … … 205 213 206 214 #print "nice -n 19 $epgdumppath/epgdump /CS $recfolderpath/__$channelb.m2t $xmloutpath/__$channelb-epg.xml\n"; 207 $oserr = ` nice -n 19$epgdumppath/epgdump /CS $recfolderpath/__$channelb.m2t $xmloutpath/__$channelb-epg.xml`;215 $oserr = `$epgdumppath/epgdump /CS $recfolderpath/__$channelb.m2t $xmloutpath/__$channelb-epg.xml`; 208 216 #print "cat $xmloutpath/__$channelb-epg.xml | $toolpath/perl/xmltv2foltia.pl\n"; 209 217 $oserr = `cat $xmloutpath/__$channelb-epg.xml | $toolpath/perl/xmltv2foltia.pl`; … … 213 221 &writelog("epgimport DEBUG Skip CS."); 214 222 }#endif use 215 }else{216 if ($channel >= 223 ){#局指定があるなら217 &writelog("epgimport ERROR CS Station No. was ignored. CS EPG get long mode only.");218 }219 }#end if long223 #}else{ 224 # if ($channel >= 223 ){#局指定があるなら 225 # &writelog("epgimport ERROR CS Station No. was ignored. CS EPG get long mode only."); 226 # } 227 #}#end if long 220 228 221 229