Skip to content

Commit

Permalink
Merge pull request #10482 from TeamNewPipe/fix-image-crash
Browse files Browse the repository at this point in the history
Fix crash with disabled thumbnails when trying to play a stream
  • Loading branch information
TobiGr authored Oct 15, 2023
2 parents c07fad9 + e46ba0b commit f9e38f3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ default String makeMediaId() {

@NonNull
default MediaItem asMediaItem() {
final String thumbnailUrl = getThumbnailUrl();
final MediaMetadata mediaMetadata = new MediaMetadata.Builder()
.setArtworkUri(Uri.parse(getThumbnailUrl()))
.setArtworkUri(thumbnailUrl == null ? null : Uri.parse(thumbnailUrl))
.setArtist(getUploaderName())
.setDescription(getTitle())
.setDisplayTitle(getTitle())
Expand Down

0 comments on commit f9e38f3

Please sign in to comment.