title: Update dict with extra values
body: <p>I have the following that converts data (show) from 1 format to another, this used to work until trakt.tv updated their api.</p>
  
  <p>What i need now is all episodes numbers for each season inside one season number like so</p>
  
  <p><code>"seasons": [{"number": 1, "episodes": [{"number": 1}, {"number": 2}]}]}]</code></p>
  
  <p>The converted data should finally look like</p>
  
  <p><code>"shows": [{"title": "The Walking Dead", "year": 2010, "ids": {"tvdb": 153021, "imdb": "tt1520211", "tmdb": 1402, "tvrage": 25056}, "seasons": [{"number": 1, "episodes": [{"number": 1}, {"number": 2}]}]}]</code></p>
  
  <p>The original data (show) looks like</p>
  
  <p><code>{'episodes': [{'episode': 0, 'season': 1}, {'episode': 1, 'season': 1}, {'episode': 2, 'season': 1}], 'imdbnumber': '260449', 'title': 'Vikings'}</code></p>
  
  <p>The title, year and ids sections are ok, If i run the code as it is now i end up with multiple season 1 (1 for each episode) </p>
  
  <pre><code>def convert_YAMJ_show_to_trakt(show):
  #"shows": [{"title": "The Walking Dead", "year": 2010, "ids": {"tvdb": 153021, "imdb": "tt1520211", "tmdb": 1402, "tvrage": 25056}, "seasons": [{"number": 1, "episodes": [{"number": 1}, {"number": 2}]}]}]
  trakt_show = {'ids':{}}
  
  if 'imdbnumber' in show:
      if show['imdbnumber'].startswith('tt'):
          trakt_show['ids']['imdb'] = show['imdbnumber']
      else:
          trakt_show['ids']['tvdb'] = show['imdbnumber']
  
  if 'tvdb' in show:
      trakt_show['ids']['tvdb'] = show['tvdb']
  
  if 'imdb' in show:
      trakt_show['ids']['imdb'] = show['imdb']
  
  if 'title' in show:
      trakt_show['title'] = show['title']
  
  if 'episodes' in show and show['episodes']:
      for episode in show['episodes']:
          if 'date' in episode:
              #ep = {'episode': episode['episode'], 'season': episode['season'], 'watched_at': episode['date']}
              ep = {"seasons": [{"number": episode['season'], "episodes": [{"number": episode['episode']}]}]}
          else:
              #ep = {'episode': episode['episode'], 'season': episode['season']}
              ep = {"seasons": [{"number": episode['season'], "episodes": [{"number": episode['episode']}]}]}
  
          #if 'playcount' in episode:
          #     ep['plays'] = episode['playcount']
  
          #trakt_show['seasons'].append(ep)
          trakt_show.append(ep)
  return trakt_show
  </code></pre>