From 5f3c2f5622928d40c5612152a6e061cb85ab3974 Mon Sep 17 00:00:00 2001 From: kapodamy Date: Mon, 23 Sep 2019 21:10:14 -0300 Subject: [PATCH 1/2] Update ItagItem.java --- .../schabi/newpipe/extractor/services/youtube/ItagItem.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 /// From 12008fc6bb3346f86165f7583f7316d99cf1a1a3 Mon Sep 17 00:00:00 2001 From: kapodamy Date: Mon, 23 Sep 2019 21:14:48 -0300 Subject: [PATCH 2/2] Update MediaFormat.java declare WEBMA_OPUS --- .../src/main/java/org/schabi/newpipe/extractor/MediaFormat.java | 1 + 1 file changed, 1 insertion(+) 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"),