From f6dd49b71d80a112f9492f6eec7da227f63a3eae Mon Sep 17 00:00:00 2001 From: Haggai Eran Date: Fri, 2 Aug 2024 13:42:49 +0300 Subject: [PATCH] PlaylistMetadataEntry: add interface method to get the thumbnail Url --- .../schabi/newpipe/database/playlist/PlaylistLocalItem.java | 2 ++ .../newpipe/database/playlist/PlaylistMetadataEntry.java | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/database/playlist/PlaylistLocalItem.java b/app/src/main/java/org/schabi/newpipe/database/playlist/PlaylistLocalItem.java index 072c49e2c..a974a09d0 100644 --- a/app/src/main/java/org/schabi/newpipe/database/playlist/PlaylistLocalItem.java +++ b/app/src/main/java/org/schabi/newpipe/database/playlist/PlaylistLocalItem.java @@ -10,4 +10,6 @@ public interface PlaylistLocalItem extends LocalItem { long getUid(); void setDisplayIndex(long displayIndex); + + String getThumbnailUrl(); } diff --git a/app/src/main/java/org/schabi/newpipe/database/playlist/PlaylistMetadataEntry.java b/app/src/main/java/org/schabi/newpipe/database/playlist/PlaylistMetadataEntry.java index 03a1e1e30..4b0338b39 100644 --- a/app/src/main/java/org/schabi/newpipe/database/playlist/PlaylistMetadataEntry.java +++ b/app/src/main/java/org/schabi/newpipe/database/playlist/PlaylistMetadataEntry.java @@ -71,4 +71,9 @@ public class PlaylistMetadataEntry implements PlaylistLocalItem { public void setDisplayIndex(final long displayIndex) { this.displayIndex = displayIndex; } + + @Override + public String getThumbnailUrl() { + return thumbnailUrl; + } }