SRGSSR / pillarbox-web

Pillarbox is a versatile media playback ecosystem engineered for the web.
http://web.pillarbox.ch/api
MIT License
14 stars 1 forks source link

fix(data-provider): onlyChapters parameter default value #112

Closed amtins closed 11 months ago

amtins commented 11 months ago

Description

When a chapter's URN is loaded, the entire media is played instead of just the requested chapter.

This fix allows a chapter to be played outside the context of the media it belongs to.

Additionally, setting the onlyChapters parameter to true ensures compliance with the initial decision and follows the same behavior as Pillarbox Android and iOS.

Changes made

github-actions[bot] commented 11 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 98.36% 481/489
🟒 Branches 93.42% 227/243
🟒 Functions 100% 137/137
🟒 Lines 99.15% 464/468

Test suite run success

142 tests passing in 9 suites.

Report generated by πŸ§ͺjest coverage report action from a96805b16e66ffbba6f13da9ec76d3595179e874