Skip to content

Fallback to contentUrl if no mediaId is provided#927

Merged
StaehliJ merged 1 commit intomainfrom
improve-srg-media-item-converter
Mar 13, 2025
Merged

Fallback to contentUrl if no mediaId is provided#927
StaehliJ merged 1 commit intomainfrom
improve-srg-media-item-converter

Conversation

@StaehliJ
Copy link
Contributor

@StaehliJ StaehliJ commented Mar 7, 2025

Pull request

Description

In order to have list of media item with url only, media id has to be set and unique in the playlist. So if it is not set we fallback to the media url.

Changes made

  • SRGMediaItemConverter fallback on the content url for content id.

Checklist

  • APIs have been properly documented (if relevant).
  • The documentation has been updated (if relevant).
  • New unit tests have been written (if relevant).
  • The demo has been updated (if relevant).

@github-project-automation github-project-automation bot moved this to ✏️ Draft in Pillarbox Mar 7, 2025
@StaehliJ StaehliJ requested a review from MGaetan89 March 7, 2025 10:30
@github-actions
Copy link

github-actions bot commented Mar 7, 2025

Code Coverage

Overall Project 51.04% -0.01% 🟢
Files changed 89.74% 🟢

Module Coverage
:pillarbox-core-business-cast 85.21% -0.78% 🟢
Files
Module File Coverage
:pillarbox-core-business-cast SRGMediaItemConverter.kt 87.95% -0.8% 🟢

@MGaetan89 MGaetan89 moved this from ✏️ Draft to 🍿 Code Review in Pillarbox Mar 7, 2025
@MGaetan89 MGaetan89 added this to the Cast milestone Mar 10, 2025
@StaehliJ StaehliJ added this pull request to the merge queue Mar 13, 2025
Merged via the queue into main with commit 0e6337d Mar 13, 2025
10 checks passed
@StaehliJ StaehliJ deleted the improve-srg-media-item-converter branch March 13, 2025 07:57
@github-project-automation github-project-automation bot moved this from 🍿 Code Review to ✅ Done in Pillarbox Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants