channelHandle is absent if user has not created a YouTube channel

This commit is contained in:
Alex Pastel 2024-05-03 13:39:13 -06:00 • committed by sigma67
commit 0425429e4d

View file

@ -440,7 +440,7 @@ class LibraryMixin(MixinProtocol):
ACCOUNT_PHOTO_URL = [*ACCOUNT_INFO, "accountPhoto", "thumbnails", 0, "url"]
account_name = nav(response, ACCOUNT_NAME)
channel_handle = nav(response, ACCOUNT_CHANNEL_HANDLE)
channel_handle = nav(response, ACCOUNT_CHANNEL_HANDLE, none_if_absent=True)
account_photo_url = nav(response, ACCOUNT_PHOTO_URL)
return {