Accept members-only/paid-content playlist IDs/URLs (#469)

This adds a new check to the playlist url_id check to allow playlist urls from subscription only content on youtube channels.

The channel I tested on had an ID length of 26 (https://www.youtube.com/playlist?list=UUMOvk0KB4Ue0vfPqvDzjIAwiQ), I am not sure if other lengths are valid here also.

I have tested this on my local install and it is downloading the members only playlist correctly as long as I have valid youtube cookies.
This commit is contained in:
Matthew Glinski 2023-04-27 23:20:49 -04:00 committed by GitHub
parent e385331f6c
commit 9a38aff03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ class Parser:
item_type = "video"
elif len_id_str == 24:
item_type = "channel"
elif len_id_str in (34, 18):
elif len_id_str in (34, 26, 18):
item_type = "playlist"
else:
raise ValueError(f"not a valid id_str: {id_str}")