lib/gui/base.rb
# allow for switching tapes but still cache EDL loc. :P
allow for switching tapes but still cache EDL loc. :P
allow for switching tapes but still cache EDL loc . : P
def choose_dvd_or_file_and_edl_for_it force_choose_edl_file_if_no_easy_match = true
      drive_or_file, dvd_volume_name, dvd_id = choose_dvd_drive_or_file false
      edl_path = EdlFilesChosen[dvd_id]
      if !edl_path
        edl_path = EdlParser.single_edit_list_matches_dvd(dvd_id)
        if !edl_path && force_choose_edl_file_if_no_easy_match
  		    message = "Please pick a DVD Edit List File (none or more than one were found that seem to match #{dvd_volume_name})--may need to create one, if one doesn't exist yet"
		      show_blocking_message_dialog message
          edl_path = new_existing_file_selector_and_select_file(message, EdlParser::EDL_DIR)
        end
      end
      p 're/loading ' + edl_path 
      if edl_path 
        descriptors = nil
        begin
          descriptors = parse_edl edl_path
        rescue SyntaxError => e
          show_non_blocking_message_dialog("this file has an error--please fix then hit ok: \n" + edl_path + "\n " + e)
          raise e
        end
      end
      EdlFilesChosen[dvd_id] ||= edl_path
      [drive_or_file, dvd_volume_name, dvd_id, edl_path, descriptors]
    end
def choose_dvd_or_file_and_edl_for_it force_choose_edl_file_if_no_easy_match = true drive_or_file , dvd_volume_name , dvd_id = choose_dvd_drive_or_file false edl_path = EdlFilesChosen [ dvd_id ] if ! edl_path edl_path = EdlParser . single_edit_list_matches_dvd ( dvd_id ) if ! edl_path && force_choose_edl_file_if_no_easy_match message = "Please pick a DVD Edit List File (none or more than one were found that seem to match #{dvd_volume_name})--may need to create one, if one doesn't exist yet" show_blocking_message_dialog message edl_path = new_existing_file_selector_and_select_file ( message , EdlParser :: EDL_DIR ) end end p 're/loading ' + edl_path if edl_path descriptors = nil begin descriptors = parse_edl edl_path rescue SyntaxError => e show_non_blocking_message_dialog ( "this file has an error--please fix then hit ok: \n" + edl_path + "\n " + e ) raise e end end EdlFilesChosen [ dvd_id ] ||= edl_path [ drive_or_file , dvd_volume_name , dvd_id , edl_path , descriptors ] end
allow for switching tapes but still cache EDL loc.
allow for switching tapes but still cache EDL loc .
# in case it has changed on disk # sometimes they don't have to choose one [?]
force_choose_edl_file_if_no_easy_match