Repository: pymedusa/Medusa

Issue:
Not enough information to determine what episode this is
James.Corden.2017.04.19.Adam.Sandler.720p.HDTV.x264-CROOKS[rarbg]/james.corden.2017.04.19.adam.sandler.720p.hdtv.x264-crooks.mkv : Processing failed: Not enough information to determine what episode this is]

Seems to me that that's more than enough to determine the episode and, in fact, most of the time it is able to recognize this show properly. This error, though, seems to happen about once a week. I originally thought it was because TVDB wasn't keeping up with newer episodes so I switched to Medusa in order to use TVMaze or the other one, but that didn't help. (BTW, be nice if I could switch indexers via the Edit Show screen. I had to remove and re-add this show to do my testing.) 

However, for this particular episode, both TVDB and TVMaze have the episode listed, so I'm at a loss. Suggestions?

Thank you.


Discussion:
@phraymond 

that episode is listed in Medusa show page?
air by date setting is enabled ?
Yes and yes.
(If it makes a diff, I migrated over from Sickrage recently and did the "point it at the old DB" style migration. For this show, though, trying to fix it, I removed the show from Medusa and re-added, pointing at TVMaze. No luck.)
The episode in the list:

![2017-04-20 11_56_00-medusa - the late late show with james corden](https://cloud.githubusercontent.com/assets/1957542/25247675/5b14a97c-25c0-11e7-8393-fad74c22b4eb.png)

The show:

![2017-04-20 11_56_24-medusa - the late late show with james corden](https://cloud.githubusercontent.com/assets/1957542/25247687/68d9fd3c-25c0-11e7-8eeb-a66890e46b38.png)




looks like guessit its not parsing it correctly:

```
 python tests\report_guessit.py James.Corden.2017.04.19.Adam.Sandler.720p.HDTV.x264-CROOKS[rarbg]/james.corden.2017.04.19.adam.sandler.720p.hdtv.x264-crooks.mkv
# guessit: 2.1.2.dev0  rebulk: 0.8.3.dev0
? James.Corden.2017.04.19.Adam.Sandler.720p.HDTV.x264-CROOKS[rarbg]/james.corden.2017.04.19.adam.sandler.720p.hdtv.x264-crooks.mkv
: date: 2017-04-19
  episode_title: Adam Sandler
  screen_size: 720p
  format: HDTV
  video_codec: h264
  video_encoder: x264
  title: james corden
  alias: james corden 2017
  year: 2017
  episode: 4
  absolute_episode: 4
  release_group: crooks
  container: mkv
  mimetype: video/x-matroska
  type: episode
```

@ratoaq2 @duramato confirm?
@phraymond can you reply this please?


https://github.com/pymedusa/Medusa/issues/2619#issuecomment-295832339

Resolving patch:
diff --git a/medusa/server/web/home/handler.py b/medusa/server/web/home/handler.py
--- a/medusa/server/web/home/handler.py
+++ b/medusa/server/web/home/handler.py
@@ -16,6 +16,7 @@
     db,
     helpers,
     logger,
+    name_cache,
     notifiers,
     providers,
     subtitles,
@@ -1649,6 +1650,7 @@ def editShow(self, show=None, location=None, allowed_qualities=None, preferred_q
             try:
                 update_scene_exceptions(show_obj.indexerid, show_obj.indexer, exceptions)
                 time.sleep(cpu_presets[app.CPU_PRESET])
+                name_cache.build_name_cache(show_obj)
             except CantUpdateShowException:
                 errors += 1
                 logger.log("Unable to force an update on scene exceptions for show '{show}': {error}".format


Test patch: