Added ids to ...FromID functions (how did this work before??)

This commit is contained in:
bytedream 2022-03-15 13:41:39 +01:00
parent aa1d72868b
commit 3ee5f7a538
4 changed files with 5 additions and 0 deletions

View file

@ -94,6 +94,7 @@ func EpisodeFromID(crunchy *Crunchyroll, id string) (*Episode, error) {
episode := &Episode{
crunchy: crunchy,
ID: id,
}
if err := decodeMapToStruct(jsonBody, episode); err != nil {
return nil, err