Don't fetch uneeded stream info for live streams

Co-authored-by: Stypox <stypox@pm.me>
pull/7036/head
Tom 2021-11-23 15:22:11 +00:00 zatwierdzone przez GitHub
rodzic bc2f0f9f3e
commit 91611fcae4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -221,7 +221,7 @@ public enum StreamDialogEntry {
private static void fetchItemInfoIfSparse(final Fragment fragment,
final StreamInfoItem item,
final InfoCallback callback) {
if (item.getDuration() < 0) {
if ((item.getStreamType() == StreamType.LIVE_STREAM || item.getStreamType() == StreamType.AUDIO_LIVE_STREAM) && item.getDuration() < 0) {
// Sparse item: fetched by fast fetch
final Disposable currentWorker = ExtractorHelper.getStreamInfo(
item.getServiceId(),