Newpipe: Deleted Channels Throw An Error When Refreshing Subscription Feed

Created on 30 Mar 2020  路  8Comments  路  Source: TeamNewPipe/NewPipe

Using the latest version. If the user imports a subscription list with a deleted chaneel such as
image
results in a null pointer exception as a snack-bar error.

Exception

  • __User Action:__ requested feed
  • __Request:__ Loading feed
  • __Content Language:__ US
  • __Service:__ none
  • __Version:__ 0.19.0
  • __OS:__ Linux Android 10 - 29

Crash log

org.schabi.newpipe.local.feed.service.FeedLoadService$RequestException: 0:https://www.youtube.com/channel/UCcNE9TRcOCOoOB0Dy5ediPg
    at org.schabi.newpipe.local.feed.service.FeedLoadService$startLoading$7.apply(FeedLoadService.kt:220)
    at org.schabi.newpipe.local.feed.service.FeedLoadService$startLoading$7.apply(FeedLoadService.kt:63)
    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)
    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:923)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.jsoup.nodes.Element.text()' on a null object reference
    at org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeFeedExtractor.getId(YoutubeFeedExtractor.java:53)
    at org.schabi.newpipe.extractor.feed.FeedInfo.getInfo(FeedInfo.java:39)
    at org.schabi.newpipe.util.ExtractorHelper.lambda$getFeedInfoFallbackToChannelInfo$6(ExtractorHelper.java:149)
    at org.schabi.newpipe.util.-$$Lambda$ExtractorHelper$ugdV6CfeDCyyO_ocIIpHyBlriuE.call(Unknown Source:4)
    at io.reactivex.internal.operators.maybe.MaybeFromCallable.subscribeActual(MaybeFromCallable.java:46)
    at io.reactivex.Maybe.subscribe(Maybe.java:4154)
    at io.reactivex.internal.operators.maybe.MaybeSwitchIfEmptySingle.subscribeActual(MaybeSwitchIfEmptySingle.java:45)
    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:210)
    ... 11 more



bug feed requires extractor change

Most helpful comment

Expected behavior is to notify the user and ask them to delete the channel from their subscriptions.

All 8 comments

Expected behavior is to notify the user and ask them to delete the channel from their subscriptions.

@mauriciocolli Have a look.

I have the same problem. I have 2 or 3 nonexistent channels without any easy way to remove them.

@Mhowser you can long press on channels you want to unsubscribe from in the subscription tab

I know that, it gives no clear indication if the channel is deleted on YouTube. I would need to manually check all 200+ channels that I have.

https://github.com/TeamNewPipe/NewPipe/issues/3313#issuecomment-606268478 this is a preferred solution. Another solution would be displaying a warning sign next to the deleted channel in the channel list.

Another solution would be displaying a warning sign next to the deleted channel in the channel list.

I was about to suggest this. Feed refresh is the only time when the app queries all the channels for new videos one by one. That is the optimal way to alert the user about deleted channels.

I don't think it's easily possible to add a banned channel to NewPipe in order to test this issue. If anyone would like to reproduce this issue, I've attached a NewPipe configuration zip that contains two banned channels that should trigger this error.
NewPipeData-TwoBannedChannels-20201113_142545.zip

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tty4242 picture tty4242  路  3Comments

mouarfff picture mouarfff  路  3Comments

ghost picture ghost  路  3Comments

Aevann picture Aevann  路  3Comments

Hunter9888x picture Hunter9888x  路  3Comments