Unverified Commit 69e0624e authored by Tobias Groza's avatar Tobias Groza Committed by GitHub
Browse files

Merge pull request #298 from B0pol/feed_peertube

[peertube] add feed url in channels
parents 647e7cd4 0ae53c1e
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment