def open_filemanager(self, widg):#pylint: disable=W0613 """ Opens a Nautilus Window on current season directory""" command_launch = CommandExecuter() command_gen = CommandLineGenerator("xdg-open") rep = self.serie_model.get_current_serie().get_path_to_current_season() command_gen.add_option_single(rep) command_launch.get_output(command_gen.get_command())
def get_candidates(self, nom_serie, num_saison, num_ep, option): """ dummy """ path = self.get_path_to_season(nom_serie, num_saison) if os.path.exists(path): command_g = CommandLineGenerator("play") command_g.add_option_param("-e", unicode(num_ep)) command_g.add_option_single(unicode(option)) return self.executer.get_list_output(command_g.get_command(), cwd=path) else: return []
def test_video_play(self): """ Testing system mplayer presence """ command = CommandLineGenerator("mplayer") command.add_option_single(__VideoPath__) CommandExecuter().get_output(command.get_command()) return True