Skip to content

Commit

Permalink
Added duration to media items (#112)
Browse files Browse the repository at this point in the history
- Fixed `MediaPresenter.java` to return episode duration when it exists
- Fixed `MediaOverview.graphql` to include missing `duration` graphql field
  • Loading branch information
switchswap authored and wax911 committed May 26, 2019
1 parent e645c0d commit 4e599f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ query MediaOverview($id: Int!, $type: MediaType, $isAdult: Boolean = false, $isM
site
}
}
duration
season
episodes
chapters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public List<BarEntry> getMediaScoreDistribution(List<ScoreDistribution> scoreDis

public String getEpisodeDuration(Media media) {
if(media != null && media.getDuration() > 0)
getContext().getString(R.string.text_anime_length, media.getDuration());
return getContext().getString(R.string.text_anime_length, media.getDuration());
return getContext().getString(R.string.TBA);
}

Expand Down

0 comments on commit 4e599f4

Please sign in to comment.