[MediaCCC] Extract tags

This commit is contained in:
Stypox 2020-04-09 21:28:13 +02:00
parent b461da792f
commit 3b2a1829d4
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 3 additions and 2 deletions

View File

@ -24,6 +24,7 @@ import org.schabi.newpipe.extractor.services.media_ccc.linkHandler.MediaCCCStrea
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
@ -282,8 +283,8 @@ public class MediaCCCStreamExtractor extends StreamExtractor {
@Nonnull
@Override
public List<String> getTags() {
return Collections.emptyList();
public List<String> getTags() throws ParsingException {
return Arrays.asList(data.getArray("tags").toArray(new String[0]));
}
@Nonnull