Skip to content

Commit 070a40e

Browse files
committed
[YouTube] Mix Playlist - Fix getting name
1 parent b029779 commit 070a40e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeMixPlaylistExtractor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
1414
import org.schabi.newpipe.extractor.localization.TimeAgoParser;
1515
import org.schabi.newpipe.extractor.playlist.PlaylistExtractor;
16+
import org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper;
1617
import org.schabi.newpipe.extractor.stream.StreamInfoItem;
1718
import org.schabi.newpipe.extractor.stream.StreamInfoItemsCollector;
1819
import org.schabi.newpipe.extractor.utils.JsonUtils;
@@ -67,8 +68,8 @@ public void onFetchPage(@Nonnull final Downloader downloader)
6768
@Nonnull
6869
@Override
6970
public String getName() throws ParsingException {
70-
final String name = playlistData.getString("title");
71-
if (name == null) {
71+
final String name = YoutubeParsingHelper.getTextAtKey(playlistData, "title");
72+
if (isNullOrEmpty(name)) {
7273
throw new ParsingException("Could not get playlist name");
7374
}
7475
return name;

0 commit comments

Comments
 (0)