futo-org / grayjay-android

Read-only mirror of Grayjay repo for issue tracking
https://gitlab.futo.org/videostreaming/grayjay
Other
620 stars 40 forks source link

Importing Newpipe json file is not possible #1125

Open Eiion opened 1 month ago

Eiion commented 1 month ago

What happened?

In Newpipe I've reported the subscriptions as a json file and saved it on the downloads folder. When trying to import the file via grayjay's subscriptions tab - import - import newpipe subscriptions (.json) the file manager opens in the recently used files windows. Going to downloads the json file is listed (along with all other files in downloads) but is grayed out and cannot be selected to import.

The json file is called its original title: newpipe_subscriptions_2024070100508.json. Grayjay version: 236 downloaded today from the play store. Only plugging installed is YouTube - only newpipe subscriptions are for Youtube.

Grayjay Version

236

What plugins are you seeing the problem on?

Youtube

Plugin Version

No response

When do you experience the issue?

Relevant log output

None

Edit: I've uninstalled the app from the play store and instead downloaded and installed version 249 release from github. The issue persists - importing the file is not possible.

Eiion commented 1 month ago

I've managed to import the json file - but not directly from within the app. Also not via the Tablet's standard file explorer that didn't provide the option to open the json file with GrayJay. With the help of a third party file explorer I could select GrayJay to open the file - which then imported the subscribed channels in a very long and even slower fashion.

I'm not sure about how the importing process works that would explain why it is such a very slow process (I'm talking about 5-10 minutes) that slowed down even more relatively quickly at the beginning but I see no reason for it and a change in how subscriptions are imported should be implemented as soon as possible, where subscriptions are simply populated into GrayJay database from the json file and nothing else but that. The importing process should be a matter of seconds (like NewPipe is able to do it from google's exported takeout file), not minutes.

Anyways, the importing process from a NewPipe subscription only export (rather than from a NewPipe backup file) does not work from within the app as it is advertised in the app - neither with release version 236 nor with release version 249 which leads me to believe that it also doesn't work for any version in between the two.

laravandyken commented 1 month ago

Same problem: all files are greyed out. Tried using total commander as file explorer. Same issue

laravandyken commented 1 month ago

Solved the issue with Total Commander: Select the json file created by newpipe. Long press. In the drop box select send to star/star to open the whole list of apps. Select grayjay The transfer is immediate 👍👍👍

EvilGremlin commented 1 month ago

For me import is completely broken. Opening from nextcloud, it just crashes, both json and txt formats. It's only 180 channels. Opening from local fs, json is greyed, txt is available but does nothing at all, not even crash or error message. Can confirm that only json and Ghost commander and "open with" works, but this is one extremely roundabout way. Doesn't work for txt. version 249