diff --git a/src/Core.elm b/src/Core.elm index 6c021f9..0ccfea9 100644 --- a/src/Core.elm +++ b/src/Core.elm @@ -54,7 +54,7 @@ resultToMsg result = Ok o -> PlaylistsReceived ( o, Time.utc ) - _ -> + Err _ -> Noop diff --git a/src/Twitch.elm b/src/Twitch.elm index 81424e6..d8fa494 100644 --- a/src/Twitch.elm +++ b/src/Twitch.elm @@ -35,7 +35,7 @@ decodeVideo = Decode.map4 Video (Decode.field "title" Decode.string) (Decode.field "url" Decode.string) - (Decode.field "duration" Decode.int) + (Decode.map Basics.round (Decode.field "duration" Decode.float)) (Decode.maybe (Decode.field "date" Iso8601.decoder))