Index: trunk/extensions/MetavidWiki/maintenance/metavid2mvWiki.php |
— | — | @@ -184,6 +184,7 @@ |
185 | 185 | ie: senate_proceeding_04-11-07 |
186 | 186 | options: |
187 | 187 | --noimage will skip image downloading |
| 188 | + --skiptext skips text sync |
188 | 189 | actions: |
189 | 190 | stream_name will proccess that stream name |
190 | 191 | 'all_in_sync' will insert all streams that are tagged in_sync |
— | — | @@ -500,11 +501,11 @@ |
501 | 502 | //print 'do stream desc'."\n"; |
502 | 503 | do_add_stream($mvTitle, $stream); |
503 | 504 | echo "stream " . $mvTitle->getStreamName() . " added \n"; |
504 | | - } else { |
505 | | - do_update_wiki_page($stream->name, mv_semantic_stream_desc($mvTitle, $stream), MV_NS_STREAM); |
| 505 | + } else { |
| 506 | + do_update_wiki_page($stream->name, mv_semantic_stream_desc($mvTitle, $stream), MV_NS_STREAM); |
506 | 507 | //$updated = ' updated' echo "stream " . $mvTitle->getStreamName() . " already present $updated\n"; |
507 | 508 | } |
508 | | - //add duration and start_time attr |
| 509 | + //add duration and start_time attr |
509 | 510 | do_stream_attr_check($stream); |
510 | 511 | |
511 | 512 | //do insert/copy all media images |
— | — | @@ -514,9 +515,11 @@ |
515 | 516 | |
516 | 517 | //check for files (make sure they match with metavid db values |
517 | 518 | do_stream_file_check($stream); |
518 | | - |
519 | | - //proccess all stream text: |
520 | | - do_proccess_text($stream); |
| 519 | + |
| 520 | + if(!isset($options['skiptext'])){ |
| 521 | + //proccess all stream text: |
| 522 | + do_proccess_text($stream); |
| 523 | + } |
521 | 524 | } |
522 | 525 | } |
523 | 526 | function do_proccess_text($stream){ |