Fix panic while refreshing episode #49

Merged
PouuleT merged 1 commits from fix-panic into master 2021-08-30 20:36:38 +00:00

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) env.Log.Warnf("Error getting show %q", err)
} }
if pShow == nil {
pShow = &papi.Show{Show: &polochon.Show{ImdbID: id}}
}
s := &Show{ s := &Show{
Show: pShow.Show, Show: pShow.Show,
client: client, client: client,