示例#1
0
文件: edit.py 项目: adamjakab/Beets
    def before_choose_candidate_listener(self, session, task):
        """Append an "Edit" choice and an "edit Candidates" choice (if
        there are candidates) to the interactive importer prompt.
        """
        choices = [PromptChoice('d', 'eDit', self.importer_edit)]
        if task.candidates:
            choices.append(PromptChoice('c', 'edit Candidates',
                                        self.importer_edit_candidate))

        return choices
示例#2
0
    def prompt(self, session, task):

        return [
            PromptChoice('p',
                         'Enter number of other source metadata choice here',
                         self.applychoice)
        ]
示例#3
0
 def before_choose_candidate_event(self, session, task):
     if task.rec <= self.threshold:
         return [PromptChoice('p', 'Print tracks', self.print_tracks)]
示例#4
0
文件: play.py 项目: RobbeeUA/Music
 def before_choose_candidate_listener(self, session, task):
     """Append a "Play" choice to the interactive importer prompt.
     """
     return [PromptChoice('y', 'plaY', self.importer_play)]
示例#5
0
 def before_choose_candidate_listener(self, session, task):
     return [PromptChoice('p', 'Picard', self.run_picard)]
示例#6
0
 def before_choose_candidate_listener(self, session, task):
     if task.candidates:
         return [PromptChoice('n', 'iNspect changes',
                                   self.importer_inspect_candidate)]