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

@ -56,6 +56,7 @@ func MovieListingFromID(crunchy *Crunchyroll, id string) (*MovieListing, error)
movieListing := &MovieListing{
crunchy: crunchy,
ID: id,
}
if err = decodeMapToStruct(jsonBody, movieListing); err != nil {
return nil, err