Fix panic while refreshing episode
This commit is contained in:
parent
d4cb2e8993
commit
fa7bdc2a65
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user