Newpipe: Unable to import really long YouTube subscription list

Created on 17 Mar 2019  路  7Comments  路  Source: TeamNewPipe/NewPipe

Here is the roughly 90KB file I'm trying to import. I simply get the message "Could not import subscriptions." When I remove a large chunk of the list at random from the middle of the file, reducing it to about 40KB, I can get it to import. I'm not sure if it's related to the size of the list or if there happens to be a single entry in it breaking things. I'm happy to provide any other information I can to help track down the issue.

This is when running version 0.16.1 from fdroid on Android 9.0

Thanks!

bug youtube

Most helpful comment

I found where the bug lies: in the NewPipeExtractor repo. The problem is that the youtube extractor explicitely throws an exception when the title is empty. See lines 66-68 at YoutubeSubscriptionExtractor.java.

I opened a pull request: TeamNewPipe/NewPipeExtractor#160

All 7 comments

Same problem here. I had to build 20 lists from the original "subscription_manager" file to import my YouTube subscription list. Running version 0.16.1 from F-Droid on Android 7.1.2 .

Encountered the same problem here too. Running on the 0.16.1 on Android 9

I bisected my subscription_manager file until I found the culprit: It鈥檚 a deleted/suspended channel with empty title and text tags, that YouTube still includes in the exported list but NewPipe apparently can鈥檛 handle.

To reproduce one can try this minimal example:

<opml version="1.1"><body><outline text="YouTube Subscriptions" title="YouTube Subscriptions"><outline text="" title="" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCxCmitIuHqjM_Gl72cu_ylA" /></body></opml>

Obvious workaround: Manually delete the problematic entry.

I bisected my subscription_manager file until I found the culprit: It鈥檚 a deleted/suspended channel with empty title and text tags, that YouTube still includes in the exported list but NewPipe apparently can鈥檛 handle.

To reproduce one can try this minimal example:

<opml version="1.1"><body><outline text="YouTube Subscriptions" title="YouTube Subscriptions"><outline text="" title="" type="rss" xmlUrl="https://www.youtube.com/feeds/videos.xml?channel_id=UCxCmitIuHqjM_Gl72cu_ylA" /></body></opml>

Obvious workaround: Manually delete the problematic entry.

Thank you soooooooooooooo much!!!! That's really helpful

I found where the bug lies: in the NewPipeExtractor repo. The problem is that the youtube extractor explicitely throws an exception when the title is empty. See lines 66-68 at YoutubeSubscriptionExtractor.java.

I opened a pull request: TeamNewPipe/NewPipeExtractor#160

Spot on, @buckket and @Stypox!

It's a little unexpected that YouTube put that in the export (because the title is empty, it "knew" it wasn't available when exporting), but looking at my subscriptions list I can find some channels that were removed as well, but they still show their names, maybe because YouTube don't delete subscriptions because a channel can be reinstated after a suspension (still, a bug in YouTube side).

But it's a problematic check nonetheless, it should only see if the url exists, because that's what matters.

PS: I don't think size matters (maybe in _very_ memory contraint devices?), here it is importing a 6MB file:

Right on for finding the actual cause of this issue! Size alone did seem like an unlikely cause.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Hunter9888x picture Hunter9888x  路  3Comments

mouarfff picture mouarfff  路  3Comments

hassanseoul123 picture hassanseoul123  路  3Comments

fnadde42 picture fnadde42  路  3Comments

danialbehzadi picture danialbehzadi  路  3Comments