Skip to content

Commit

Permalink
Fix: use duration for audiobookshelf books too
Browse files Browse the repository at this point in the history
See #4228
  • Loading branch information
shamoon committed Nov 18, 2024
1 parent e730a0c commit 250351f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/widgets/audiobookshelf/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@ export default function Component({ service }) {
<Block label="audiobookshelf.books" value={t("common.number", { value: totalBooks })} />
<Block
label="audiobookshelf.booksDuration"
value={t("common.number", {
value: totalBooksDuration / 60,
maximumFractionDigits: 0,
style: "unit",
unit: "minute",
value={t("common.duration", {
value: totalBooksDuration,
})}
/>
</Container>
Expand Down

0 comments on commit 250351f

Please sign in to comment.