NewPipe icon indicating copy to clipboard operation
NewPipe copied to clipboard

Error in subscriptions when loading premieres

Open B0pol opened this issue 5 years ago • 8 comments

Version

  • 0.19.3

Steps to reproduce the bug

Well, it's easy to reproduce, but also hard because it's rare. 0. Disable fast mode if enabled

  1. Subscribe to a channel that will have a premiere video.
  2. Refresh before it has started, it's working fine (e.g. the upload date shown is "in 5 minutes").
  3. When it has started, refresh and now you have the error, and the channel is considered as "not loaded"

Expected behavior

The premiere is shown with a specific tag, for example PREMIERE.

Actual behaviour

The channel isn't loaded

Logs

Exception

  • User Action: requested feed
  • Request: Loading feed
  • Content Language: fr_FR
  • Service: none
  • Version: 0.19.3
  • OS: Linux Android 9 - 28
Crash log

org.schabi.newpipe.local.feed.service.FeedLoadService$RequestException: 0:https://www.youtube.com/channel/UCacgofzftbbkUhcftPvUzQg
	at org.schabi.newpipe.local.feed.service.FeedLoadService$RequestException$Companion.wrapList(FeedLoadService.kt:163)
	at org.schabi.newpipe.local.feed.service.FeedLoadService$databaseConsumer$1$1.run(FeedLoadService.kt:312)
	at androidx.room.RoomDatabase.runInTransaction(RoomDatabase.java:386)
	at org.schabi.newpipe.local.feed.service.FeedLoadService$databaseConsumer$1.accept(FeedLoadService.kt:301)
	at org.schabi.newpipe.local.feed.service.FeedLoadService$databaseConsumer$1.accept(FeedLoadService.kt:64)
	at io.reactivex.internal.operators.flowable.FlowableDoOnEach$DoOnEachSubscriber.onNext(FlowableDoOnEach.java:86)
	at io.reactivex.internal.operators.flowable.FlowableBuffer$PublisherBufferExactSubscriber.onNext(FlowableBuffer.java:126)
	at io.reactivex.internal.operators.flowable.FlowableObserveOn$ObserveOnSubscriber.runAsync(FlowableObserveOn.java:407)
	at io.reactivex.internal.operators.flowable.FlowableObserveOn$BaseObserveOnSubscriber.run(FlowableObserveOn.java:176)
	at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
	at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
	at java.lang.Thread.run(Thread.java:764)
Caused by: org.schabi.newpipe.extractor.exceptions.ParsingException: Could not get duration
	at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamInfoItemExtractor.getDuration(YoutubeStreamInfoItemExtractor.java:120)
	at org.schabi.newpipe.extractor.stream.StreamInfoItemsCollector.extract(StreamInfoItemsCollector.java:54)
	at org.schabi.newpipe.extractor.stream.StreamInfoItemsCollector.commit(StreamInfoItemsCollector.java:94)
	at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeChannelExtractor.collectStreamsFrom(YoutubeChannelExtractor.java:277)
	at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeChannelExtractor.getInitialPage(YoutubeChannelExtractor.java:228)
	at org.schabi.newpipe.extractor.utils.ExtractorHelper.getItemsPageOrLogError(ExtractorHelper.java:19)
	at org.schabi.newpipe.extractor.channel.ChannelInfo.getInfo(ChannelInfo.java:82)
	at org.schabi.newpipe.extractor.channel.ChannelInfo.getInfo(ChannelInfo.java:47)
	at org.schabi.newpipe.util.ExtractorHelper.lambda$getChannelInfo$4(ExtractorHelper.java:124)
	at org.schabi.newpipe.util.-$$Lambda$ExtractorHelper$u5W7VszTe8AoEexIsFM9huQfbkM.call(Unknown Source:4)
	at io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)
	at io.reactivex.Single.subscribe(Single.java:3438)
	at io.reactivex.internal.operators.single.SingleDoOnSuccess.subscribeActual(SingleDoOnSuccess.java:35)
	at io.reactivex.Single.subscribe(Single.java:3438)
	at io.reactivex.Single.blockingGet(Single.java:2699)
	at org.schabi.newpipe.local.feed.service.FeedLoadService$startLoading$7.apply(FeedLoadService.kt:215)
	at org.schabi.newpipe.local.feed.service.FeedLoadService$startLoading$7.apply(FeedLoadService.kt:64)
	at io.reactivex.internal.operators.parallel.ParallelMap$ParallelMapSubscriber.onNext(ParallelMap.java:113)
	at io.reactivex.internal.operators.parallel.ParallelFilter$ParallelFilterSubscriber.tryOnNext(ParallelFilter.java:130)
	at io.reactivex.internal.operators.parallel.ParallelRunOn$RunOnConditionalSubscriber.run(ParallelRunOn.java:397)
	... 7 more


B0pol avatar May 06 '20 14:05 B0pol

I guess this can be reproduced by subscribing to 3blue1brown, with keeps doing premieres for math videos

Stypox avatar May 06 '20 16:05 Stypox

Some very old issues are still open, ones which can't be reproduced anymore like this one!

Shouldn't this one be closed?

ShareASmile avatar Sep 04 '23 18:09 ShareASmile

Are you sure? You tried the STR?

opusforlife2 avatar Sep 04 '23 19:09 opusforlife2

I subscribed to Samaa TV Channel which often premieres News items about major events https://www.youtube.com/channel/UCJekW1Vj5fCVEGdye_mBN6Q

Which has (at the time of writing) a video which premieres in 20 hours.. https://www.youtube.com/watch?v=ElCNS8zndXI

and there is no error in Subscriptions feed. Just Content Not Available/ Open in browser page when we click on the video to be premiered in the feed. Screenshot_20230905_130849_NewPipe nightly

ShareASmile avatar Sep 05 '23 07:09 ShareASmile

Other thing I noted in channel page is Play All button fails to skip first video (which premieres in x-time) to play next video in the list like background & Popup button successfully do, but that is an another bug 🐛

Same behavior of above mentioned buttons in history page if video to be premiered is marked as watched in long press menu so it shows in history items.

Screenshot_20230905_132104_NewPipe nightly

ShareASmile avatar Sep 05 '23 08:09 ShareASmile

Thanks. Could you open a new issue for it?

opusforlife2 avatar Sep 05 '23 19:09 opusforlife2

Could you open a new issue for it?

Sorry for very late reply, opus , i will open one when on PC. Actually i was waiting for 0.26.0 to land and then forgot about it entirely.

ShareASmile avatar Jan 27 '24 19:01 ShareASmile

Could you open a new issue for it?

#7119 is already there as i checked before opening new issue.

ShareASmile avatar Feb 17 '24 18:02 ShareASmile

Closing as this was probably fixed during the channel tabs rework. Feel free to reopen if it can still be reproduced (but I have seen various premieres in my feed lately and none of them created errors).

Stypox avatar Mar 29 '24 10:03 Stypox