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.
1 parent 13f1927 commit 2158ca4Copy full SHA for 2158ca4
1 file changed
extractor/src/main/java/org/schabi/newpipe/extractor/NewPipe.java
@@ -99,7 +99,6 @@ public static StreamingService getServiceByUrl(String url) throws ExtractionExce
99
100
public static int getIdOfService(String serviceName) {
101
try {
102
- //noinspection ConstantConditions
103
return getService(serviceName).getServiceId();
104
} catch (ExtractionException ignored) {
105
return -1;
@@ -108,7 +107,6 @@ public static int getIdOfService(String serviceName) {
108
107
109
public static String getNameOfService(int id) {
110
111
112
return getService(id).getServiceInfo().getName();
113
} catch (Exception e) {
114
System.err.println("Service id not known");
0 commit comments