Skip to content

Commit 639be7a

Browse files
committed
Minimized some code
1 parent 2bd4299 commit 639be7a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

  • extractor/src/main/java/org/schabi/newpipe/extractor

extractor/src/main/java/org/schabi/newpipe/extractor/NewPipe.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,12 @@ private NewPipe() {
4141
}
4242

4343
public static void init(final Downloader d) {
44-
downloader = d;
45-
preferredLocalization = Localization.DEFAULT;
46-
preferredContentCountry = ContentCountry.DEFAULT;
44+
init(d, Localization.DEFAULT);
4745
}
4846

4947
public static void init(final Downloader d, final Localization l) {
50-
downloader = d;
51-
preferredLocalization = l;
52-
preferredContentCountry = l.getCountryCode().isEmpty()
53-
? ContentCountry.DEFAULT : new ContentCountry(l.getCountryCode());
48+
init(d, l, l.getCountryCode().isEmpty()
49+
? ContentCountry.DEFAULT : new ContentCountry(l.getCountryCode()));
5450
}
5551

5652
public static void init(final Downloader d, final Localization l, final ContentCountry c) {

0 commit comments

Comments
 (0)