Mercurial > epgrec.yaz
comparison Keyword.class.php @ 87:36ac7c416bd7
merged with upstream
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 01 Mar 2010 20:51:36 +0900 |
parents | cb7da56c4198 |
children | 57676bb30f64 |
comparison
equal
deleted
inserted
replaced
75:11f63ae04a96 | 87:36ac7c416bd7 |
---|---|
41 | 41 |
42 if( $this->channel_id != 0 ) { | 42 if( $this->channel_id != 0 ) { |
43 $options .= " AND channel_id = '".$this->channel_id."'"; | 43 $options .= " AND channel_id = '".$this->channel_id."'"; |
44 } | 44 } |
45 | 45 |
46 if( $this->weekofday != 7 ) { | |
47 $options .= " AND WEEKDAY(starttime) = '".$this->weekofday."'"; | |
48 } | |
49 | |
46 $options .= " ORDER BY starttime ASC"; | 50 $options .= " ORDER BY starttime ASC"; |
47 | 51 |
48 $recs = array(); | 52 $recs = array(); |
49 try { | 53 try { |
50 $recs = DBRecord::createRecords( PROGRAM_TBL, $options ); | 54 $recs = DBRecord::createRecords( PROGRAM_TBL, $options ); |
70 if( count($precs) < 300 ) { | 74 if( count($precs) < 300 ) { |
71 // 一気に録画予約 | 75 // 一気に録画予約 |
72 foreach( $precs as $rec ) { | 76 foreach( $precs as $rec ) { |
73 try { | 77 try { |
74 if( $rec->autorec ) { | 78 if( $rec->autorec ) { |
75 Reservation::simple( $rec->id, $this->id, $this->settings->autorec_mode ); | 79 Reservation::simple( $rec->id, $this->id, $this->autorec_mode ); |
76 usleep( 100 ); // あんまり時間を空けないのもどう? | 80 usleep( 100 ); // あんまり時間を空けないのもどう? |
77 } | 81 } |
78 } | 82 } |
79 catch( Exception $e ) { | 83 catch( Exception $e ) { |
80 // 無視 | 84 // 無視 |