lib/gui/normal.rb
# side by side stuff we haven't really factored out yet, also doubles for both normal/create LODO
side by side stuff we haven't really factored out yet, also doubles for both normal/create LODO
side by side stuff we haven ' t really factored out yet also doubles for both normal / create LODO
def choose_file_and_edl_and_create_sxs_or_play just_create_xbmc_dot_edl_file_instead_of_play
      filename_mpg = new_existing_file_selector_and_select_file( "Pick moviefile (like moviename.mp4, moviename.mpg or video_ts/anything.ext)")
      edl_filename = new_existing_file_selector_and_select_file( "Pick an EDL file to use with it (for none yet, right click and create new text file)", EdlParser::EDL_DIR)
      if just_create_xbmc_dot_edl_file_instead_of_play
        descriptors = EdlParser.parse_file edl_filename
        edl_contents = MplayerEdl.convert_to_edl descriptors, add_secs_end = 0.0, begin_buffer_preference, splits = [], extra_time_to_all = 0.0, use_english_timestamps=true
        output_file = filename_mpg.gsub(/\.[^\.]+$/, '') + '.edl' 
        File.write(output_file, edl_contents)
        raise unless File.exist?(output_file) 
        show_blocking_message_dialog("created #{output_file}")
      else
        play_smplayer_edl_non_blocking [filename_mpg, edl_filename]
      end
    end
def choose_file_and_edl_and_create_sxs_or_play just_create_xbmc_dot_edl_file_instead_of_play filename_mpg = new_existing_file_selector_and_select_file ( "Pick moviefile (like moviename.mp4, moviename.mpg or video_ts/anything.ext)" ) edl_filename = new_existing_file_selector_and_select_file ( "Pick an EDL file to use with it (for none yet, right click and create new text file)" , EdlParser :: EDL_DIR ) if just_create_xbmc_dot_edl_file_instead_of_play descriptors = EdlParser . parse_file edl_filename edl_contents = MplayerEdl . convert_to_edl descriptors , add_secs_end = 0.0 , begin_buffer_preference , splits = [ ] , extra_time_to_all = 0.0 , use_english_timestamps = true output_file = filename_mpg . gsub ( / \. [^ \. ]+$ / , '' ) + '.edl' File . write ( output_file , edl_contents ) raise unless File . exist? ( output_file ) show_blocking_message_dialog ( "created #{output_file}" ) else play_smplayer_edl_non_blocking [ filename_mpg , edl_filename ] end end
side by side stuff we haven't really factored out yet, also doubles for both normal/create LODO
side by side stuff we haven ' t really factored out yet also doubles for both normal / create LODO
# XBMC can use english timestamps # sanitize... # sanity
just_create_xbmc_dot_edl_file_instead_of_play