1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-11-12 13:13:00 +00:00

Use SubtitlesStream#getUrl instead of getURL

This commit is contained in:
mhmdanas
2020-08-12 22:21:09 +03:00
parent 8a1a42e83b
commit e5ffddfc6b
3 changed files with 3 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ public class VideoPlaybackResolver implements PlaybackResolver {
SELECTION_FLAG_AUTOSELECT,
PlayerHelper.captionLanguageOf(context, subtitle));
final MediaSource textSource = dataSource.getSampleMediaSourceFactory()
.createMediaSource(Uri.parse(subtitle.getURL()), textFormat, TIME_UNSET);
.createMediaSource(Uri.parse(subtitle.getUrl()), textFormat, TIME_UNSET);
mediaSources.add(textSource);
}
}

View File

@@ -155,7 +155,7 @@ public class DownloadMissionRecover extends Thread {
for (SubtitlesStream subtitles : mExtractor.getSubtitles(mRecovery.format)) {
String tag = subtitles.getLanguageTag();
if (tag.equals(mRecovery.desired) && subtitles.isAutoGenerated() == mRecovery.desired2) {
url = subtitles.getURL();
url = subtitles.getUrl();
break;
}
}