Merge pull request #298 from B0pol/feed_peertube

[peertube] add feed url in channels
This commit is contained in:
Tobias Groza 2020-03-28 12:53:47 +01:00 committed by GitHub
commit 69e0624e35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ public class PeertubeChannelExtractor extends ChannelExtractor {
@Override
public String getFeedUrl() throws ParsingException {
return null;
return getBaseUrl() + "/feeds/videos.xml?accountId=" + json.get("id");
}
@Override

View File

@ -98,7 +98,7 @@ public class PeertubeChannelExtractorTest {
@Test
public void testFeedUrl() throws ParsingException {
assertEmpty(extractor.getFeedUrl());
assertEquals("https://peertube.mastodon.host/feeds/videos.xml?accountId=32465", extractor.getFeedUrl());
}
@Test
@ -195,7 +195,7 @@ public class PeertubeChannelExtractorTest {
@Test
public void testFeedUrl() throws ParsingException {
assertEmpty(extractor.getFeedUrl());
assertEquals("https://peertube.mastodon.host/feeds/videos.xml?accountId=1753", extractor.getFeedUrl());
}
@Test