Fix some typos
This commit is contained in:
parent
013b902535
commit
3017dde67e
5 changed files with 6 additions and 9 deletions
|
@ -138,7 +138,7 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
|
|||
final byte[] body = JsonWriter.string(prepareJsonBuilder(getExtractorLocalization(),
|
||||
getExtractorContentCountry())
|
||||
.value("browseId", id)
|
||||
.value("params", "EgZ2aWRlb3M%3D") // equals to videos
|
||||
.value("params", "EgZ2aWRlb3M%3D") // Equal to videos
|
||||
.done())
|
||||
.getBytes(UTF_8);
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ public class YoutubePlaylistExtractor extends PlaylistExtractor {
|
|||
final byte[] body = JsonWriter.string(prepareJsonBuilder(localization,
|
||||
getExtractorContentCountry())
|
||||
.value("browseId", "VL" + getId())
|
||||
.value("params", "wgYCCAA%3D") // show unavailable videos
|
||||
.value("params", "wgYCCAA%3D") // Show unavailable videos
|
||||
.done())
|
||||
.getBytes(UTF_8);
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ public class YoutubeSearchExtractor extends SearchExtractor {
|
|||
ParsingException {
|
||||
final TimeAgoParser timeAgoParser = getTimeAgoParser();
|
||||
|
||||
for (Object content : contents) {
|
||||
for (final Object content : contents) {
|
||||
final JsonObject item = (JsonObject) content;
|
||||
if (item.has("backgroundPromoRenderer")) {
|
||||
throw new NothingFoundException(getTextFromObject(
|
||||
|
|
|
@ -25,8 +25,8 @@ public class YoutubeParsingHelperTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testIsHardcodedClientVersionValid() throws IOException, ExtractionException {
|
||||
assertTrue("Hardcoded client version is not valid anymore",
|
||||
public void testareHardcodedClientVersionAndKeyValid() throws IOException, ExtractionException {
|
||||
assertTrue("Hardcoded client version and key are not valid anymore",
|
||||
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.youtube.YoutubeParsingHelper;
|
||||
import org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor;
|
||||
import org.schabi.newpipe.extractor.stream.Description;
|
||||
import org.schabi.newpipe.extractor.stream.StreamExtractor;
|
||||
import org.schabi.newpipe.extractor.stream.StreamSegment;
|
||||
import org.schabi.newpipe.extractor.stream.StreamType;
|
||||
import org.schabi.newpipe.extractor.stream.*;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
|
|
Loading…
Reference in a new issue