def write_tvshow(fulltitle, description, link, settings, path): parser = DescriptionParserRSSTVShows(fulltitle, link, settings) if parser.parsed(): tvshowapi.write_tvshow(fulltitle, link, settings, parser, path, skip_nfo_exists=True)
def make_search_strms(result, settings, type, path, path_out): count = 0 for item in result: link = item['link'] parser = item['parser'] settings.progress_dialog.update(count * 100 / len(result), 'NNM-Club', parser.get_value('full_title')) if link: if type == 'movie': _path = movieapi.write_movie(parser.get_value('full_title'), link, settings, parser, path, skip_nfo_exists=True) if _path: path_out.append(_path) count += 1 if type == 'tvshow': _path = tvshowapi.write_tvshow(parser.get_value('full_title'), link, settings, parser, path, skip_nfo_exists=True) if _path: path_out.append(_path) count += 1 return count
def write_tvshow(item, settings): full_title = item.title debug("full_title: " + full_title.encode("utf-8")) parser = DescriptionParser(full_title, item.description, item.link, settings) debug("-------------------------------------------------------------------------") if parser.need_skipped(full_title): return if parser.parsed(): import tvshowapi tvshowapi.write_tvshow(full_title, item.link, settings, parser) del parser
def make_search_strms(result, settings, type): count = 0 for item in result: link = item['link'] parser = item['parser'] if link: if type == 'movie': import movieapi movieapi.write_movie(parser.get_value('full_title'), link, settings, parser) count += 1 if type == 'tvshow': import tvshowapi tvshowapi.write_tvshow(parser.get_value('full_title'), link, settings, parser) count += 1 return count
def write_tvshow(item, settings): full_title = item.title debug('full_title: ' + full_title.encode('utf-8')) parser = DescriptionParser(full_title, item.description, item.link, settings) debug( '-------------------------------------------------------------------------' ) if parser.need_skipped(full_title): return if parser.parsed(): import tvshowapi tvshowapi.write_tvshow(full_title, item.link, settings, parser) del parser
def make_search_strms(result, settings, type): count = 0 for item in result: link = item["link"] parser = item["parser"] if link: if type == "movie": import movieapi movieapi.write_movie(parser.get_value("full_title"), link, settings, parser) count += 1 if type == "tvshow": import tvshowapi tvshowapi.write_tvshow(parser.get_value("full_title"), link, settings, parser) count += 1 return count
def process_tvshow(self, url, parser): import tvshowapi import filesystem api = parser.movie_api() genre = api['genres'] if u'мультфильм' in genre: if not self.settings.animation_tvshows_save: return base_path = self.settings.animation_tvshow_path() elif u'документальный' in genre: if not self.settings.documentary_tvshows_save: return base_path = self.settings.documentary_tvshow_path() else: if not self.settings.tvshows_save: return base_path = self.settings.tvshow_path() with filesystem.save_make_chdir_context(base_path, 'kinohd_tvshow'): return tvshowapi.write_tvshow(parser.get_value('full_title'), url, self.settings, parser, path=base_path)
def write_tvshow(fulltitle, description, link, settings, path): parser = DescriptionParserRSSTVShows(fulltitle, description, settings) if parser.parsed(): #if link: # save_download_link(parser, settings, link) tvshowapi.write_tvshow(fulltitle, link, settings, parser, path)
def write_tvshow(fulltitle, description, link, settings): parser = DescriptionParserRSSTVShows(fulltitle, description, settings) if parser.parsed(): if link: save_download_link(parser, settings, link) tvshowapi.write_tvshow(fulltitle, link, settings, parser)
def write_tvshow(fulltitle, description, link, settings): parser = DescriptionParserRSSTVShows(fulltitle, link, settings) if parser.parsed(): tvshowapi.write_tvshow(fulltitle, link, settings, parser)