Support start= timestamps for YouTube

This commit is contained in:
wb9688
2020-07-06 14:08:40 +02:00
parent 54d9e5a2f8
commit 156a26b64b
2 changed files with 3 additions and 1 deletions

View File

@@ -48,6 +48,8 @@ public class YoutubeStreamExtractorAgeRestrictedTest {
public void testGetValidTimeStamp() throws IOException, ExtractionException {
StreamExtractor extractor = YouTube.getStreamExtractor("https://youtu.be/FmG385_uUys?t=174");
assertEquals(extractor.getTimeStamp() + "", "174");
extractor = YouTube.getStreamExtractor("https://youtube.com/embed/FmG385_uUys?start=174");
assertEquals(extractor.getTimeStamp() + "", "174");
}
@Test