futo-org / grayjay-android

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

Cannot import playlists from youtube #85

Open Alvaro-sD opened 1 year ago

Alvaro-sD commented 1 year ago

When I click on import playlists on youtube from my youtube account none of them appear.

Edit: I'm using the downloaded .apk not the play store install

SeppNel commented 1 year ago

Same thing happens to me

Luke-L commented 1 year ago

I have the same problem. I wish the Watch Later playlist would auto import, considering one already exists on grayjay

cuzimhappyy commented 1 year ago

same problem here, would load for awhile then hang or crash.

koen-futo commented 1 year ago

The playlist import for each playlist you have will need to request all the pages of the playlist. If you have many long playlists what could happen is before it finished going through all pages, it hits a rate limit and likely due to lack of proper handling of this case, it crashes.

koen-futo commented 1 year ago

Could you give me more information about which playlists you have on your account? mainly the amount of videos in them.

cuzimhappyy commented 1 year ago

i have ~20 playlists most are <15 videos long but i have 3 that are longer (45,80,120 videos)

SeppNel commented 1 year ago

I have 3 big ones of 116, 171 and 88 + Some smallers ones with < 20 videos. Don't know if "saved" playists that I didn`t create count, but if they do I have another big one with 565 videos.

grisevg commented 1 year ago

I think it's caused by non-English Youtube language. I had my Youtube in russian and had same issue. I switched to English and it works now!

Dupes: https://github.com/futo-org/grayjay-android/issues/141 https://github.com/futo-org/grayjay-android/issues/42 https://github.com/futo-org/grayjay-android/issues/241

cuzimhappyy commented 1 year ago

i do have japanese videos in my playlists

koen-futo commented 1 year ago

@grisevg Thank you for figuring that out! That is very helpful.

Mubelotix commented 9 months ago

I think it's caused by non-English Youtube language. I had my Youtube in russian and had same issue. I switched to English and it works now!

Dupes: #141 #42 #241

Switching the language to english didn't help

Luke-L commented 9 months ago

nah, my youtube is in en-us. unless one of the videos in a playlist would break it by being in another language, this doesnt do anything.

Ser-Bul commented 5 months ago

@grisevg Thank you for figuring that out! That is very helpful.

Hi @koen-futo, any news? There's a bunch of similar "can't import playlists" issues reported by multiple people here on Grayjay's GitHub. I've personally just uploaded verbose logs using the Grayjay app today.

Ser-Bul commented 5 months ago

Pinged Koen in chat.futo.org as well. Hope we'll get some reply soon.

Werner1201 commented 5 months ago

Same here, @Ser-Bul, changed the language, didn't work. As I said in that chat: "I even looked into the .js URL script, and It seems the const URL_PLAYLIST and URL_PLAYLISTS_M are not assigned correctly, Youtube "recently" changed the URL_PLAYLIST_M (Which I assume the M is for menu) and the menu link changed to: [which ever youtube base url]/feed/playlists. That's what I think it's the problem" I studied programming and JS programming for a while, but I might be completly and utterly wrong about this issue. I just don't have the time to enter dev mode download youtube plugin source code and test it on my device If anyone has the knowledge to do it, give it a try the tutorial seems fairly easy.

Werner1201 commented 5 months ago

image The URL on the URL_PLAYLISTS_M directs to the image shown above. The gitlab code I'm refering to on the line 21 the const I'm refering to.

The correct playlist menu I see when I click playlist on youtube is this: image https://www.youtube.com/feed/playlists

Ser-Bul commented 5 months ago

"Good news everyone": one of the developers replied in chat.futo.org. The YT plugin update should be published next week, bringing some fixes for the playlists import.

Ser-Bul commented 5 months ago

Plugin v.182, the issue is still there. Pinged devs in futo chat.

Mubelotix commented 5 months ago

Plugin v.182, the issue is still there. Pinged devs in futo chat.

I think you should leave them some space. They also have other issues to work on, maybe this isn't the priority right now. Did you pay for the app?

Ser-Bul commented 5 months ago

I think they are are mature, independent people who make their own decisions and are able to tell us their priorities if necessary.

SupremeLobster commented 4 months ago

As of the latest update, it appears the changing the youtube language to English (US) (during the login page), fixes the issue. It seems I can now import large playlists (a few hundred videos). Importing very large playlists (thousands of videos) does work but it takes a few minutes.

Crckwood commented 4 months ago

As of the latest update, it appears the changing the youtube language to English (US) (during the login page), fixes the issue. It seems I can now import large playlists (a few hundred videos). Importing very large playlists (thousands of videos) does work but it takes a few minutes.

Switching my account from Canadian French to English US after login in the plug-in DID resolved the issue. Thank you !

Ser-Bul commented 4 months ago

Switching the language to english didn't help

Surprisingly it worked for me now. Either the latest update fixed the problem or I tried to switch the language in some wrong way before. My case is that I've been getting message 'Nothing to import' in Grayjay as I was trying to import Youtube playlists. The list of actions that fixed the issue for me today:

SupremeLobster commented 4 months ago

Switching the language to english didn't help

Surprisingly it worked for me now. Either the latest update fixed the problem or I tried to switch the language in some wrong way before. My case is that I've been getting message 'Nothing to import' in Grayjay as I was trying to import Youtube playlists. The list of actions that fixed the issue for me today:

  • [x] In Grayjay app go to Sources > Youtube
  • [x] tap "Logout without Clear"
  • [x] then tap "Login", Youtube webpage opens
  • [x] on the top-right corner of the webpage click on the icon of your profile/account, then pick "Language" and select "English (US)"
  • [x] return back (to Grayjay)
  • [x] tap "Login" again and this time on the webpage just tap your account in the middle of the screen (not on the top-right corner)
  • [x] that brings you back to Grayjay where you can now tap "Import Playlists". That will work. Though it will show some errors if your playlists have videos hidden (deleted?) by Youtube.

Yep it has been fixed in the latest update!

Pdzly commented 3 months ago

Sadly i can not import any playlists again. I tried your solutions but nothing worked. It only shows "Liked Videos" and "Watch Later" playlists.

Logged out and in still nothing.

Zvonimir-FUTO commented 2 weeks ago

Is anyone still experiencing this issue on the latest version of Grayjay and Youtube plugin?

SeppNel commented 2 weeks ago

@Zvonimir-FUTO Still happening to me if the login page is not in english.