mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-29 00:10:35 +05:30
Fix typo in AffiliateService: rename "NO_AFILIATE" to "NO_AFFILIATE"
This commit is contained in:
parent
865c42e273
commit
942d840624
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user