UNPKG

newpipe-extractor-js

Version:
158 lines 6.3 kB
"use strict"; // Core Types and Interfaces for NewPipe Extractor JS Object.defineProperty(exports, "__esModule", { value: true }); exports.SoundCloudGoPlusContentException = exports.NetworkException = exports.ReCaptchaException = exports.ContentNotSupportedException = exports.AccountTerminatedException = exports.YoutubeMusicPremiumContentException = exports.PrivateContentException = exports.PaidContentException = exports.AgeRestrictedException = exports.GeographicallyRestrictedException = exports.ContentNotAvailableException = exports.ParsingException = exports.ExtractorException = exports.InfoType = exports.Privacy = exports.StreamType = exports.AudioTrackType = exports.MediaFormat = exports.ResolutionLevel = void 0; var ResolutionLevel; (function (ResolutionLevel) { ResolutionLevel[ResolutionLevel["UNKNOWN"] = 0] = "UNKNOWN"; ResolutionLevel[ResolutionLevel["LOW"] = 1] = "LOW"; ResolutionLevel[ResolutionLevel["MEDIUM"] = 2] = "MEDIUM"; ResolutionLevel[ResolutionLevel["HIGH"] = 3] = "HIGH"; })(ResolutionLevel || (exports.ResolutionLevel = ResolutionLevel = {})); var MediaFormat; (function (MediaFormat) { // Video formats MediaFormat["MPEG_4"] = "mp4"; MediaFormat["v3GPP"] = "3gp"; MediaFormat["WEBM"] = "webm"; // Audio formats MediaFormat["MP3"] = "mp3"; MediaFormat["M4A"] = "m4a"; MediaFormat["WEBMA"] = "webma"; MediaFormat["WEBMA_OPUS"] = "webm"; MediaFormat["OGG"] = "ogg"; MediaFormat["OPUS"] = "opus"; MediaFormat["FLAC"] = "flac"; MediaFormat["WAV"] = "wav"; // Subtitle formats MediaFormat["SRT"] = "srt"; MediaFormat["TRANSCRIPT1"] = "transcript1"; MediaFormat["TRANSCRIPT2"] = "transcript2"; MediaFormat["TRANSCRIPT3"] = "transcript3"; MediaFormat["TTML"] = "ttml"; MediaFormat["VTT"] = "vtt"; })(MediaFormat || (exports.MediaFormat = MediaFormat = {})); var AudioTrackType; (function (AudioTrackType) { AudioTrackType["ORIGINAL"] = "ORIGINAL"; AudioTrackType["DUBBED"] = "DUBBED"; AudioTrackType["DESCRIPTIVE"] = "DESCRIPTIVE"; })(AudioTrackType || (exports.AudioTrackType = AudioTrackType = {})); var StreamType; (function (StreamType) { StreamType["NONE"] = "NONE"; StreamType["VIDEO_STREAM"] = "VIDEO_STREAM"; StreamType["AUDIO_STREAM"] = "AUDIO_STREAM"; StreamType["LIVE_STREAM"] = "LIVE_STREAM"; StreamType["AUDIO_LIVE_STREAM"] = "AUDIO_LIVE_STREAM"; StreamType["POST"] = "POST"; })(StreamType || (exports.StreamType = StreamType = {})); var Privacy; (function (Privacy) { Privacy["PUBLIC"] = "PUBLIC"; Privacy["UNLISTED"] = "UNLISTED"; Privacy["PRIVATE"] = "PRIVATE"; Privacy["INTERNAL"] = "INTERNAL"; Privacy["OTHER"] = "OTHER"; })(Privacy || (exports.Privacy = Privacy = {})); var InfoType; (function (InfoType) { InfoType["STREAM"] = "STREAM"; InfoType["PLAYLIST"] = "PLAYLIST"; InfoType["CHANNEL"] = "CHANNEL"; InfoType["COMMENT"] = "COMMENT"; })(InfoType || (exports.InfoType = InfoType = {})); class ExtractorException extends Error { constructor(message, cause) { super(message); this.cause = cause; this.name = 'ExtractorException'; } } exports.ExtractorException = ExtractorException; class ParsingException extends ExtractorException { constructor(message, cause) { super(message, cause); this.name = 'ParsingException'; } } exports.ParsingException = ParsingException; class ContentNotAvailableException extends ParsingException { constructor(message, cause) { super(message, cause); this.name = 'ContentNotAvailableException'; } } exports.ContentNotAvailableException = ContentNotAvailableException; class GeographicallyRestrictedException extends ContentNotAvailableException { constructor(message, cause) { super(message, cause); this.name = 'GeographicallyRestrictedException'; } } exports.GeographicallyRestrictedException = GeographicallyRestrictedException; class AgeRestrictedException extends ContentNotAvailableException { constructor(message, cause) { super(message, cause); this.name = 'AgeRestrictedException'; } } exports.AgeRestrictedException = AgeRestrictedException; class PaidContentException extends ContentNotAvailableException { constructor(message, cause) { super(message, cause); this.name = 'PaidContentException'; } } exports.PaidContentException = PaidContentException; class PrivateContentException extends ContentNotAvailableException { constructor(message, cause) { super(message, cause); this.name = 'PrivateContentException'; } } exports.PrivateContentException = PrivateContentException; class YoutubeMusicPremiumContentException extends ContentNotAvailableException { constructor(message, cause) { super(message, cause); this.name = 'YoutubeMusicPremiumContentException'; } } exports.YoutubeMusicPremiumContentException = YoutubeMusicPremiumContentException; class AccountTerminatedException extends ContentNotAvailableException { constructor(message, cause) { super(message, cause); this.name = 'AccountTerminatedException'; } } exports.AccountTerminatedException = AccountTerminatedException; class ContentNotSupportedException extends ParsingException { constructor(message, cause) { super(message, cause); this.name = 'ContentNotSupportedException'; } } exports.ContentNotSupportedException = ContentNotSupportedException; class ReCaptchaException extends ParsingException { constructor(message, url, cause) { super(message, cause); this.url = url; this.name = 'ReCaptchaException'; } } exports.ReCaptchaException = ReCaptchaException; class NetworkException extends ExtractorException { constructor(message, cause) { super(message, cause); this.name = 'NetworkException'; } } exports.NetworkException = NetworkException; class SoundCloudGoPlusContentException extends ContentNotAvailableException { constructor(message, cause) { super(message, cause); this.name = 'SoundCloudGoPlusContentException'; } } exports.SoundCloudGoPlusContentException = SoundCloudGoPlusContentException; //# sourceMappingURL=index.js.map