Skip to content

Commit b40a1f3

Browse files
committed
Delete Subtitles.java
change class name
1 parent 388f4fd commit b40a1f3

3 files changed

Lines changed: 4 additions & 38 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/stream/Subtitles.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractorAgeRestrictedTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import org.junit.Ignore;
55
import org.junit.Test;
66
import org.schabi.newpipe.Downloader;
7+
import org.schabi.newpipe.extractor.MediaFormat;
78
import org.schabi.newpipe.extractor.NewPipe;
89
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
910
import org.schabi.newpipe.extractor.exceptions.ParsingException;
1011
import org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor;
1112
import org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeStreamLinkHandlerFactory;
1213
import org.schabi.newpipe.extractor.stream.StreamExtractor;
13-
import org.schabi.newpipe.extractor.stream.SubtitlesFormat;
1414
import org.schabi.newpipe.extractor.stream.VideoStream;
1515
import org.schabi.newpipe.extractor.utils.Localization;
1616

@@ -131,6 +131,6 @@ public void testGetSubtitlesListDefault() throws IOException, ExtractionExceptio
131131
@Test
132132
public void testGetSubtitlesList() throws IOException, ExtractionException {
133133
// Video (/view?v=YQHsXMglC9A) set in the setUp() method has no captions => null
134-
assertTrue(extractor.getSubtitles(SubtitlesFormat.TTML).isEmpty());
134+
assertTrue(extractor.getSubtitles(MediaFormat.TTML).isEmpty());
135135
}
136136
}

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeStreamExtractorControversialTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import org.junit.Ignore;
55
import org.junit.Test;
66
import org.schabi.newpipe.Downloader;
7+
import org.schabi.newpipe.extractor.MediaFormat;
78
import org.schabi.newpipe.extractor.NewPipe;
89
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
910
import org.schabi.newpipe.extractor.exceptions.ParsingException;
1011
import org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor;
1112
import org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeStreamLinkHandlerFactory;
1213
import org.schabi.newpipe.extractor.stream.StreamExtractor;
13-
import org.schabi.newpipe.extractor.stream.SubtitlesFormat;
1414
import org.schabi.newpipe.extractor.stream.VideoStream;
1515
import org.schabi.newpipe.extractor.utils.Localization;
1616

@@ -124,6 +124,6 @@ public void testGetSubtitlesListDefault() throws IOException, ExtractionExceptio
124124
@Test
125125
public void testGetSubtitlesList() throws IOException, ExtractionException {
126126
// Video (/view?v=YQHsXMglC9A) set in the setUp() method has no captions => null
127-
assertTrue(!extractor.getSubtitles(SubtitlesFormat.TTML).isEmpty());
127+
assertTrue(!extractor.getSubtitles(MediaFormat.TTML).isEmpty());
128128
}
129129
}

0 commit comments

Comments
 (0)