Example #1
0
 def run(self):
     if self.type == 'movies':
         for imdb_id in self.missing_meta:
             download_movie_meta(imdb_id, META_PATH)
     if self.type == 'tv shows':
         for imdb_id in self.missing_meta:
             download_tv_show_meta(imdb_id, META_PATH)
     xbmc.executebuiltin("Container.Refresh")
Example #2
0
def get_all_meta():
    genres = ['Action', 'Adventure', 'Animation', 'Comedy', 'Crime', 'Documentary', 'Drama', 'Family',
          'Fantasy', 'History', 'Horror', 'Romance', 'Sci-Fi', 'Thriller', 'War', 'Western']
    xbmc.log("[What the Furk] Downloading movies_all_menu...")
    items, missing_meta = movies_all_menu()
    for imdb_id in missing_meta:
            download_movie_meta(imdb_id, META_PATH)
    xbmc.log("[What the Furk] ...complete!")
    
    for genre in genres:  
        xbmc.log("[What the Furk] Downloading movies_genre_menu %s..." % genre)
        items, missing_meta = movies_genre_menu(str(genre).lower())
        for imdb_id in missing_meta:
            download_movie_meta(imdb_id, META_PATH)
        xbmc.log("[What the Furk] ...complete!")
        
    xbmc.log("[What the Furk] Downloading movies_new_menu...")
    items, missing_meta = movies_new_menu()
    for imdb_id in missing_meta:
                download_tv_show_meta(imdb_id, META_PATH)
    xbmc.log("[What the Furk] ...complete!")
    
    xbmc.log("[What the Furk] Downloading tv_shows_all_menu...")
    items, missing_meta = tv_shows_all_menu()
    for imdb_id in missing_meta:
                download_tv_show_meta(imdb_id, META_PATH)
    xbmc.log("[What the Furk] ...complete!")
    
    for genre in genres:
        xbmc.log("[What the Furk] Downloading tv_shows_genre_menu %s..." % genre)
        items, missing_meta = tv_shows_genre_menu(str(genre).lower())
        for imdb_id in missing_meta:
                download_tv_show_meta(imdb_id, META_PATH)
        xbmc.log("[What the Furk] ...complete!")
     
    xbmc.log("[What the Furk] Downloading tv_shows_active_menu...")
    items, missing_meta = tv_shows_active_menu()
    for imdb_id in missing_meta:
                download_tv_show_meta(imdb_id, META_PATH)
    xbmc.log("[What the Furk] ...complete!")
    xbmc.log("[What the Furk] META DOWNLOAD COMPLETE!")