Skip to content

Commit

Permalink
Fixed the playlist issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhikachhawa24 committed May 30, 2024
1 parent fd2c9ab commit c212264
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/pages/create-playlist/create-playlist.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ export class CreatePlaylistPage implements OnInit {
this.selectedContents.forEach((ele) => {
if (!ele.metaData['thumbnail']) {
if (ele.metaData.mimetype === PlayerType.YOUTUBE) {
ele.metaData['thumbnail'] = this.loadYoutubeImg(ele.metaData);
// ele.metaData['thumbnail'] = this.loadYoutubeImg(ele.metaData);
ele.metaData['thumbnail'] = ele.metaData.thumbnail;
} else {
ele.metaData['thumbnail'] = (ele.metaData.thumbnail && !ele.metaData.identifier.startsWith('do_')) ? ele.metaData.thumbnail : ContentUtil.getImagePath(ele.metaData.mimetype || ele.metaData.mimeType)
}
Expand Down

0 comments on commit c212264

Please sign in to comment.