mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-09-09 22:35:59 +00:00
Don't fetch uneeded stream info for live streams
Co-authored-by: Stypox <stypox@pm.me>
This commit is contained in:
@@ -221,7 +221,7 @@ public enum StreamDialogEntry {
|
|||||||
private static void fetchItemInfoIfSparse(final Fragment fragment,
|
private static void fetchItemInfoIfSparse(final Fragment fragment,
|
||||||
final StreamInfoItem item,
|
final StreamInfoItem item,
|
||||||
final InfoCallback callback) {
|
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
|
// Sparse item: fetched by fast fetch
|
||||||
final Disposable currentWorker = ExtractorHelper.getStreamInfo(
|
final Disposable currentWorker = ExtractorHelper.getStreamInfo(
|
||||||
item.getServiceId(),
|
item.getServiceId(),
|
||||||
|
Reference in New Issue
Block a user