mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 07:50:34 +05:30
Fix some typos
This commit is contained in:
parent
013b902535
commit
3017dde67e
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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(
|
||||||
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user