def start(self, hidden=False): if hidden: global HIDE_TOP250 HIDE_TOP250 = True if HIDE_TOP250: util.notification(l("Importing_current_IMDb_Top250")) else: self.progress = util.dialogProgress() self.progress.update(0, l("Importing_current_IMDb_Top250")) self.top250 = self.getTop250() self.notMissing = set() if self.top250 == {}: util.dialogOk(l("Top250"), l("There_was_a_problem_with_the_IMDb_site!")) else: movies = util.getMoviesWith('imdbnumber', 'top250') length = len(movies) if length > 0: self.startProcess(movies, length) else: util.dialogOk(l("Info"), l("The_video_library_is_empty_or_the_IMDb_id_doesn't_exist!")) if not(HIDE_TOP250): self.progress.close() return HIDE_TOP250
def start(self, hidden=False): if hidden: global HIDE_TOP250 HIDE_TOP250 = True if HIDE_TOP250: util.notification(l("Importing_current_IMDb_Top250")) else: self.progress = util.dialogProgress() self.progress.update(0, l("Importing_current_IMDb_Top250")) self.top250 = self.getTop250() self.notMissing = set() if self.top250 == {}: util.dialogOk(l("Top250"), l("There_was_a_problem_with_the_IMDb_site!")) else: movies = util.getMoviesWith('imdbnumber', 'top250') length = len(movies) if length > 0: self.startProcess(movies, length) else: util.dialogOk( l("Info"), l("The_video_library_is_empty_or_the_IMDb_id_doesn't_exist!" )) if not (HIDE_TOP250): self.progress.close() return HIDE_TOP250
def start(self, hidden=False): if hidden: global HIDE_MOVIES HIDE_MOVIES = True movies = util.getMoviesWith('imdbnumber', 'votes', 'rating') total = len(movies) if total > 0: self.startProcess(movies, total) else: util.dialogOk(util.l("Info"), util.l("The_video_library_is_empty_or_the_IMDb_id_doesn't_exist!")) return HIDE_MOVIES
def start(self, hidden=False): if FIRST_RUN: global LANG_MPAA langs = ["us", "de", "nl", "au"] LANG_MPAA = langs[util.dialogSelect(l("Choose_your_MPAA_system"), langs)] util.setting("mpaaLang", LANG_MPAA) util.settingBool("firstMpaaRun", False) if hidden: global HIDE_MPAA HIDE_MPAA = True movies = util.getMoviesWith('imdbnumber', 'mpaa') total = len(movies) if total > 0: self.startProcess(movies, total) else: util.dialogOk(l("Info"), l("The_video_library_is_empty_or_the_IMDb_id_doesn't_exist!")) return HIDE_MPAA
def start(self, hidden=False): if FIRST_RUN: global LANG_MPAA langs = ["us", "de", "nl", "au"] LANG_MPAA = langs[util.dialogSelect(l("Choose_your_MPAA_system"), langs)] util.setting("mpaaLang", LANG_MPAA) util.settingBool("firstMpaaRun", False) if hidden: global HIDE_MPAA HIDE_MPAA = True movies = util.getMoviesWith('imdbnumber', 'mpaa') total = len(movies) if total > 0: self.startProcess(movies, total) else: util.dialogOk( l("Info"), l("The_video_library_is_empty_or_the_IMDb_id_doesn't_exist!")) return HIDE_MPAA