File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -93,16 +93,6 @@ public static StreamingService getServiceByUrl(final String url) throws Extracti
9393 throw new ExtractionException ("No service can handle the url = \" " + url + "\" " );
9494 }
9595
96- public static String getNameOfService (final int id ) {
97- try {
98- return getService (id ).getServiceInfo ().getName ();
99- } catch (final Exception e ) {
100- System .err .println ("Service id not known" );
101- e .printStackTrace ();
102- return "<unknown>" ;
103- }
104- }
105-
10696 /*//////////////////////////////////////////////////////////////////////////
10797 // Localization
10898 //////////////////////////////////////////////////////////////////////////*/
Original file line number Diff line number Diff line change @@ -43,9 +43,4 @@ public void getServiceWithUrl() throws Exception {
4343 assertEquals (getServiceByUrl ("https://soundcloud.com/pegboardnerds" ), SoundCloud );
4444 assertEquals (getServiceByUrl ("https://www.google.com/url?sa=t&url=https%3A%2F%2Fsoundcloud.com%2Fciaoproduction&rct=j&q=&esrc=s&source=web&cd=" ), SoundCloud );
4545 }
46-
47- @ Test
48- public void getServiceNameWithId () throws Exception {
49- assertEquals (NewPipe .getNameOfService (YouTube .getServiceId ()), YouTube .getServiceInfo ().getName ());
50- }
5146}
You can’t perform that action at this time.
0 commit comments