From 9a38aff03dbbea6aa52d0ca8d49c9bd922342597 Mon Sep 17 00:00:00 2001 From: Matthew Glinski Date: Thu, 27 Apr 2023 23:20:49 -0400 Subject: [PATCH] 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. --- tubearchivist/home/src/ta/urlparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/ta/urlparser.py b/tubearchivist/home/src/ta/urlparser.py index 24dfc68..04429fa 100644 --- a/tubearchivist/home/src/ta/urlparser.py +++ b/tubearchivist/home/src/ta/urlparser.py @@ -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}")