diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/MediaFormat.java b/extractor/src/main/java/org/schabi/newpipe/extractor/MediaFormat.java index bb8366510..286a34cec 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/MediaFormat.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/MediaFormat.java @@ -38,6 +38,7 @@ public enum MediaFormat { MP3 (0x300, "MP3", "mp3", "audio/mpeg"), OPUS (0x400, "opus", "opus", "audio/opus"), OGG (0x500, "ogg", "ogg", "audio/ogg"), + WEBMA_OPUS (0x200, "WebM Opus", "webm", "audio/webm"), // subtitles formats VTT (0x1000, "WebVTT", "vtt", "text/vtt"), TTML (0x2000, "Timed Text Markup Language", "ttml", "application/ttml+xml"), diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/ItagItem.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/ItagItem.java index ba40c2dd5..a3de19e2f 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/ItagItem.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/ItagItem.java @@ -39,9 +39,9 @@ public class ItagItem { new ItagItem(139, AUDIO, M4A, 48), new ItagItem(140, AUDIO, M4A, 128), new ItagItem(141, AUDIO, M4A, 256), - new ItagItem(249, AUDIO, OPUS, 50), - new ItagItem(250, AUDIO, OPUS, 70), - new ItagItem(251, AUDIO, OPUS, 160), + new ItagItem(249, AUDIO, WEBMA_OPUS, 50), + new ItagItem(250, AUDIO, WEBMA_OPUS, 70), + new ItagItem(251, AUDIO, WEBMA_OPUS, 160), /// VIDEO ONLY //////////////////////////////////////////// // ID Type Format Resolution FPS ///