mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-08-30 13:57:46 +00:00
Fix typo in AffiliateService: rename "NO_AFILIATE" to "NO_AFFILIATE"
This commit is contained in:
@@ -11,7 +11,7 @@ public class DonationLinkHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public enum AffiliateService {
|
public enum AffiliateService {
|
||||||
NO_AFILIATE,
|
NO_AFFILIATE,
|
||||||
AMAZON,
|
AMAZON,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ public class DonationLinkHelper {
|
|||||||
URL url = new URL(fixLink(link));
|
URL url = new URL(fixLink(link));
|
||||||
switch (url.getHost()) {
|
switch (url.getHost()) {
|
||||||
case "amzn.to": return AffiliateService.AMAZON;
|
case "amzn.to": return AffiliateService.AMAZON;
|
||||||
default: return AffiliateService.NO_AFILIATE;
|
default: return AffiliateService.NO_AFFILIATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user