-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to import really long YouTube subscription list #2226
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 To reproduce one can try this minimal example:
Obvious workaround: Manually delete the problematic entry. |
Thank you soooooooooooooo much!!!! That's really helpful |
(in the youtube subscription extractor) Ignore subscriptions that have an empty title instead of throwing an error: the youtube subscription_manager XML file can sometimes contain those (i.e. deleted channels).
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. |
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!
The text was updated successfully, but these errors were encountered: