Fix panic while refreshing episode
Some checks reported errors
continuous-integration/drone/pr Build was killed
continuous-integration/drone/push Build is passing

This commit is contained in:
Grégoire Delattre 2021-08-30 10:34:23 -10:00
parent d4cb2e8993
commit fa7bdc2a65

View File

@ -306,6 +306,10 @@ func RefreshEpisodeHandler(env *web.Env, w http.ResponseWriter, r *http.Request)
env.Log.Warnf("Error getting show %q", err)
}
if pShow == nil {
pShow = &papi.Show{Show: &polochon.Show{ImdbID: id}}
}
s := &Show{
Show: pShow.Show,
client: client,