Update totalBookDuration computation to account for metadata duration#331
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough
ChangesAudiobook Duration Fallback
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…tion when files lack duration data Resolves: bookorbit#330
8a159e8 to
5b0f5c2
Compare
|
🎉 This PR is included in version 1.11.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Update totalBookDuration computation to account for metadata duration when files lack duration data.
Previously the UI only looked at the total duration by summing all the file durations, however if the file duration is missing and there is one in audio metadata, this was never used.
It could be that there should always be a duration on the file and there is another bug somewhere with extraction of this value, if this is the case, happy to close this PR and investigate that, but would need steer from maintainers!
What does this PR do?
Closes #330
How did you test this?
Tested on a locally running dev server using the provided instructions in the original issue and can see the total duration post fix.
Screenshots
Anything non-obvious in the diff?
I did not add any tests as cannot see an existing test suite for this feature, if I have missed it though, please let me know.
Checklist
.env, personal configs)Summary by CodeRabbit