YouTube.js icon indicating copy to clipboard operation
YouTube.js copied to clipboard

[9.3.0] Shelf no longer has icon_type, breaks most of getLibrary

Open iBicha opened this issue 1 year ago • 3 comments

Steps to reproduce

  1. Login
  2. getLibrary()
  3. Try to access any section (library.liked_videos, library.playlists_section, etc)

All of the sections return undefined, because the sections don't have the icon_type property anymore, which is being used to identify the section

Failure Logs

N/A

Expected behavior

Sections in Library work as expected

Current behavior

All sections has no types sections

Version

Default

Anything else?

I guess the ItemSection.target_id (which is target_id or sectionIdentifier) should be used to identify the the id of these special feeds

Checklist

  • [X] I am running the latest version.
  • [X] I checked the documentation and found no answer.
  • [X] I have searched the existing issues and made sure this is not a duplicate.
  • [X] I have provided sufficient information.

iBicha avatar Apr 14 '24 00:04 iBicha

Now that YouTube no longer has a library, just a "You" page, I say we refactor this to something more generic to avoid things breaking like this in the future..

I think simply exposing contents & header should be enough, and perhaps also a few methods (we can identify them using the browseId) to get all content for some of the shelves.

LuanRT avatar Apr 17 '24 17:04 LuanRT

Now that YouTube no longer has a library, just a "You" page

For me https://www.youtube.com/feed/you and https://www.youtube.com/feed/library look exactly the same

iBicha avatar Apr 17 '24 21:04 iBicha

PS: I thought visiting https://www.youtube.com/feed/you would browse FEmy_youtube, but it was doing FElibrary

iBicha avatar Apr 28 '24 18:04 iBicha