add extraction for support info and rename getLanguageInfo function

This commit is contained in:
bopol
2020-01-23 14:19:22 +01:00
parent 1a15c0e750
commit 74439f692a
7 changed files with 66 additions and 9 deletions

View File

@@ -147,4 +147,11 @@ public class PeertubeStreamExtractorDefaultTest {
ageLimit.fetchPage();
assertEquals(18, ageLimit.getAgeLimit());
}
@Test
public void testGetSupportInformation() throws ExtractionException, IOException {
PeertubeStreamExtractor supportInfoExtractor = (PeertubeStreamExtractor) PeerTube.getStreamExtractor("https://framatube.org/videos/watch/ee408ec8-07cd-4e35-b884-fb681a4b9d37");
supportInfoExtractor.fetchPage();
assertEquals("https://utip.io/chatsceptique", supportInfoExtractor.getSupportInfo());
}
}