Skip to content

Commit 69e0624

Browse files
authored
Merge pull request #298 from B0pol/feed_peertube
[peertube] add feed url in channels
2 parents 647e7cd + 0ae53c1 commit 69e0624

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/extractors/PeertubeChannelExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public String getBannerUrl() throws ParsingException {
5757

5858
@Override
5959
public String getFeedUrl() throws ParsingException {
60-
return null;
60+
return getBaseUrl() + "/feeds/videos.xml?accountId=" + json.get("id");
6161
}
6262

6363
@Override

extractor/src/test/java/org/schabi/newpipe/extractor/services/peertube/PeertubeChannelExtractorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void testBannerUrl() throws ParsingException {
9898

9999
@Test
100100
public void testFeedUrl() throws ParsingException {
101-
assertEmpty(extractor.getFeedUrl());
101+
assertEquals("https://peertube.mastodon.host/feeds/videos.xml?accountId=32465", extractor.getFeedUrl());
102102
}
103103

104104
@Test
@@ -195,7 +195,7 @@ public void testBannerUrl() throws ParsingException {
195195

196196
@Test
197197
public void testFeedUrl() throws ParsingException {
198-
assertEmpty(extractor.getFeedUrl());
198+
assertEquals("https://peertube.mastodon.host/feeds/videos.xml?accountId=1753", extractor.getFeedUrl());
199199
}
200200

201201
@Test

0 commit comments

Comments
 (0)