But this playlist had not one but two values inside the itemSectionRenderer.contents field, and the first value does not contain the usual playlistVideoListRenderer but a new property called playlistShowMetadataRenderer. Please take a look at this schema-like output:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I found a playlist that has a different format than others: https://www.youtube.com/playlist?list=PL2aBZuCeDwlQN4aWkYJlwjjNRr8N5Qtt1
When doing some debug I found out that common playlists have the property
playlistVideoListRenderer
as the first one inside this path:But this playlist had not one but two values inside the
itemSectionRenderer.contents
field, and the first value does not contain the usualplaylistVideoListRenderer
but a new property calledplaylistShowMetadataRenderer
. Please take a look at this schema-like output:This PR simply loops into the itemSectionRenderer property to find the right value to move on. I added one test with this specific playlist.
Thanks in advance!