Skip to content

Commit

Permalink
Update livestream mocks and add instructions how to run YoutubeStream…
Browse files Browse the repository at this point in the history
…LiveExtractor test with the recording downloader successfully
  • Loading branch information
AudricV committed Jul 8, 2021
1 parent 5a7bf67 commit d8ccc7c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public Response execute(@Nonnull final Request request) throws IOException,
response.responseCode(),
response.responseMessage(),
response.responseHeaders(),
// Uncomment this when running with the RecordingDownloader YoutubeLiveStreamExtractorTest
// response.responseBody(),
cleanedResponseBody,
response.latestUrl()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class YoutubeStreamExtractorLivestreamTest extends DefaultStreamExtractor
private static final String URL = YoutubeStreamExtractorDefaultTest.BASE_URL + ID + "&t=" + TIMESTAMP;
private static StreamExtractor extractor;

// When you run this test with the RecordingDownloader, please uncomment line 80 and comment
// line 81. Otherwise, the test will fail because parsing the DASH manifest requires your IP
// address. You will have to remove it manually in the mocks.
@BeforeClass
public static void setUp() throws Exception {
YoutubeParsingHelper.resetClientVersionAndKey();
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit d8ccc7c

Please sign in to comment.