public class NewPipe extends Object
Modifier and Type | Method and Description |
---|---|
static Downloader |
getDownloader() |
static int |
getIdOfService(String serviceName) |
static String |
getNameOfService(int id) |
static ContentCountry |
getPreferredContentCountry() |
static Localization |
getPreferredLocalization() |
static StreamingService |
getService(int serviceId) |
static StreamingService |
getService(String serviceName) |
static StreamingService |
getServiceByUrl(String url) |
static List<StreamingService> |
getServices() |
static void |
init(Downloader d) |
static void |
init(Downloader d,
Localization l) |
static void |
init(Downloader d,
Localization l,
ContentCountry c) |
static void |
setPreferredContentCountry(ContentCountry preferredContentCountry) |
static void |
setPreferredLocalization(Localization preferredLocalization) |
static void |
setupLocalization(Localization preferredLocalization) |
static void |
setupLocalization(Localization preferredLocalization,
ContentCountry preferredContentCountry) |
public static void init(Downloader d)
public static void init(Downloader d, Localization l)
public static void init(Downloader d, Localization l, ContentCountry c)
public static Downloader getDownloader()
public static List<StreamingService> getServices()
public static StreamingService getService(int serviceId) throws ExtractionException
ExtractionException
public static StreamingService getService(String serviceName) throws ExtractionException
ExtractionException
public static StreamingService getServiceByUrl(String url) throws ExtractionException
ExtractionException
public static int getIdOfService(String serviceName)
public static String getNameOfService(int id)
public static void setupLocalization(Localization preferredLocalization)
public static void setupLocalization(Localization preferredLocalization, @Nullable ContentCountry preferredContentCountry)
@Nonnull public static Localization getPreferredLocalization()
public static void setPreferredLocalization(Localization preferredLocalization)
@Nonnull public static ContentCountry getPreferredContentCountry()
public static void setPreferredContentCountry(ContentCountry preferredContentCountry)