Fix some typos

This commit is contained in:
TiA4f8R 2021-05-29 14:43:50 +02:00
parent 013b902535
commit 3017dde67e
No known key found for this signature in database
GPG Key ID: E6D3E7F5949450DD
5 changed files with 6 additions and 9 deletions

View File

@ -138,7 +138,7 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
final byte[] body = JsonWriter.string(prepareJsonBuilder(getExtractorLocalization(), final byte[] body = JsonWriter.string(prepareJsonBuilder(getExtractorLocalization(),
getExtractorContentCountry()) getExtractorContentCountry())
.value("browseId", id) .value("browseId", id)
.value("params", "EgZ2aWRlb3M%3D") // equals to videos .value("params", "EgZ2aWRlb3M%3D") // Equal to videos
.done()) .done())
.getBytes(UTF_8); .getBytes(UTF_8);

View File

@ -50,7 +50,7 @@ public class YoutubePlaylistExtractor extends PlaylistExtractor {
final byte[] body = JsonWriter.string(prepareJsonBuilder(localization, final byte[] body = JsonWriter.string(prepareJsonBuilder(localization,
getExtractorContentCountry()) getExtractorContentCountry())
.value("browseId", "VL" + getId()) .value("browseId", "VL" + getId())
.value("params", "wgYCCAA%3D") // show unavailable videos .value("params", "wgYCCAA%3D") // Show unavailable videos
.done()) .done())
.getBytes(UTF_8); .getBytes(UTF_8);

View File

@ -221,7 +221,7 @@ public class YoutubeSearchExtractor extends SearchExtractor {
ParsingException { ParsingException {
final TimeAgoParser timeAgoParser = getTimeAgoParser(); final TimeAgoParser timeAgoParser = getTimeAgoParser();
for (Object content : contents) { for (final Object content : contents) {
final JsonObject item = (JsonObject) content; final JsonObject item = (JsonObject) content;
if (item.has("backgroundPromoRenderer")) { if (item.has("backgroundPromoRenderer")) {
throw new NothingFoundException(getTextFromObject( throw new NothingFoundException(getTextFromObject(

View File

@ -25,8 +25,8 @@ public class YoutubeParsingHelperTest {
} }
@Test @Test
public void testIsHardcodedClientVersionValid() throws IOException, ExtractionException { public void testareHardcodedClientVersionAndKeyValid() throws IOException, ExtractionException {
assertTrue("Hardcoded client version is not valid anymore", assertTrue("Hardcoded client version and key are not valid anymore",
YoutubeParsingHelper.areHardcodedClientVersionAndKeyValid()); YoutubeParsingHelper.areHardcodedClientVersionAndKeyValid());
} }

View File

@ -17,10 +17,7 @@ import org.schabi.newpipe.extractor.exceptions.YoutubeMusicPremiumContentExcepti
import org.schabi.newpipe.extractor.services.DefaultStreamExtractorTest; import org.schabi.newpipe.extractor.services.DefaultStreamExtractorTest;
import org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper; import org.schabi.newpipe.extractor.services.youtube.YoutubeParsingHelper;
import org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor; import org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor;
import org.schabi.newpipe.extractor.stream.Description; import org.schabi.newpipe.extractor.stream.*;
import org.schabi.newpipe.extractor.stream.StreamExtractor;
import org.schabi.newpipe.extractor.stream.StreamSegment;
import org.schabi.newpipe.extractor.stream.StreamType;
import java.io.IOException; import java.io.IOException;
import java.net.MalformedURLException; import java.net.MalformedURLException;