We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f02c0e + 82746d1 commit 564a965Copy full SHA for 564a965
1 file changed
extractor/src/main/java/org/schabi/newpipe/extractor/utils/DonationLinkHelper.java
@@ -15,16 +15,14 @@ public enum AffiliateService {
15
AMAZON,
16
}
17
18
- public static DonationService getDonatoinServiceByLink(String link) throws MalformedURLException {
+ public static DonationService getDonationServiceByLink(String link) throws MalformedURLException {
19
URL url = new URL(fixLink(link));
20
switch (url.getHost()) {
21
case "www.patreon.com":
22
- return DonationService.PATREON;
23
case "patreon.com":
24
return DonationService.PATREON;
25
- case "paypal.me":
26
- return DonationService.PAYPAL;
27
case "www.paypal.me":
+ case "paypal.me":
28
return DonationService.PAYPAL;
29
default:
30
return DonationService.NO_DONATION;
0 commit comments