Fix HlsMediaPlaylist download using HlsDownloadHelper

Issue: #4396

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=201324467
This commit is contained in:
eguven 2018-06-20 02:53:26 -07:00 committed by Oliver Woodman
parent a75b5fb6a9
commit 01ce549e8f

View File

@ -74,6 +74,7 @@ public final class HlsDownloadHelper extends DownloadHelper {
public TrackGroupArray getTrackGroups(int periodIndex) {
Assertions.checkNotNull(playlist);
if (playlist instanceof HlsMediaPlaylist) {
renditionGroups = new int[0];
return TrackGroupArray.EMPTY;
}
// TODO: Generate track groups as in playback. Reverse the mapping in getDownloadAction.