mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Added ids to ...FromID functions (how did this work before??)
This commit is contained in:
parent
aa1d72868b
commit
3ee5f7a538
4 changed files with 5 additions and 0 deletions
2
video.go
2
video.go
|
|
@ -86,6 +86,7 @@ func MovieFromID(crunchy *Crunchyroll, id string) (*Movie, error) {
|
|||
movieListing := &Movie{
|
||||
crunchy: crunchy,
|
||||
}
|
||||
movieListing.ID = id
|
||||
if err = decodeMapToStruct(jsonBody, movieListing); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
@ -182,6 +183,7 @@ func SeriesFromID(crunchy *Crunchyroll, id string) (*Series, error) {
|
|||
series := &Series{
|
||||
crunchy: crunchy,
|
||||
}
|
||||
series.ID = id
|
||||
if err = decodeMapToStruct(jsonBody, series); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue