Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lasers
NewPipeExtractor
Commits
82746d17
Commit
82746d17
authored
Nov 01, 2020
by
Bri@n
Browse files
Fix typo in DonationLinkHelper and rewrote swtich statement
parent
2f02c0e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
extractor/src/main/java/org/schabi/newpipe/extractor/utils/DonationLinkHelper.java
View file @
82746d17
...
...
@@ -15,16 +15,14 @@ public class DonationLinkHelper {
AMAZON
,
}
public
static
DonationService
getDonat
o
inServiceByLink
(
String
link
)
throws
MalformedURLException
{
public
static
DonationService
getDonati
o
nServiceByLink
(
String
link
)
throws
MalformedURLException
{
URL
url
=
new
URL
(
fixLink
(
link
));
switch
(
url
.
getHost
())
{
case
"www.patreon.com"
:
return
DonationService
.
PATREON
;
case
"patreon.com"
:
return
DonationService
.
PATREON
;
case
"paypal.me"
:
return
DonationService
.
PAYPAL
;
case
"www.paypal.me"
:
case
"paypal.me"
:
return
DonationService
.
PAYPAL
;
default
:
return
DonationService
.
NO_DONATION
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment