@Test public void getServiceNameWithId() throws Exception { assertEquals(NewPipe.getNameOfService(YouTube.getServiceId()), YouTube.getServiceInfo().getName()); }
public static String getNameOfService(int id) { try { return getService(id).getServiceInfo().getName(); } catch (Exception e) { System.err.println("Service id not known"); e.printStackTrace(); return "<unknown>"; } }
NewPipe { public static String getNameOfService(int id) { try { return getService(id).getServiceInfo().getName(); } catch (Exception e) { System.err.println("Service id not known"); e.printStackTrace(); return "<unknown>"; } } }
NewPipe { public static String getNameOfService(int id) { try { return getService(id).getServiceInfo().getName(); } catch (Exception e) { System.err.println("Service id not known"); e.printStackTrace(); return "<unknown>"; } } private  NewPipe(); }
NewPipe { public static String getNameOfService(int id) { try { return getService(id).getServiceInfo().getName(); } catch (Exception e) { System.err.println("Service id not known"); e.printStackTrace(); return "<unknown>"; } } private  NewPipe(); static void init(Downloader d); static void init(Downloader d, Localization l); static void init(Downloader d, Localization l, ContentCountry c); static Downloader getDownloader(); static List<StreamingService> getServices(); static StreamingService getService(int serviceId); static StreamingService getService(String serviceName); static StreamingService getServiceByUrl(String url); static int getIdOfService(String serviceName); static String getNameOfService(int id); static void setupLocalization(Localization preferredLocalization); static void setupLocalization(Localization preferredLocalization, @Nullable ContentCountry preferredContentCountry); @Nonnull static Localization getPreferredLocalization(); static void setPreferredLocalization(Localization preferredLocalization); @Nonnull static ContentCountry getPreferredContentCountry(); static void setPreferredContentCountry(ContentCountry preferredContentCountry); }
NewPipe { public static String getNameOfService(int id) { try { return getService(id).getServiceInfo().getName(); } catch (Exception e) { System.err.println("Service id not known"); e.printStackTrace(); return "<unknown>"; } } private  NewPipe(); static void init(Downloader d); static void init(Downloader d, Localization l); static void init(Downloader d, Localization l, ContentCountry c); static Downloader getDownloader(); static List<StreamingService> getServices(); static StreamingService getService(int serviceId); static StreamingService getService(String serviceName); static StreamingService getServiceByUrl(String url); static int getIdOfService(String serviceName); static String getNameOfService(int id); static void setupLocalization(Localization preferredLocalization); static void setupLocalization(Localization preferredLocalization, @Nullable ContentCountry preferredContentCountry); @Nonnull static Localization getPreferredLocalization(); static void setPreferredLocalization(Localization preferredLocalization); @Nonnull static ContentCountry getPreferredContentCountry(); static void setPreferredContentCountry(ContentCountry preferredContentCountry);  }