mirror of
https://git.sr.ht/~cadence/NewLeaf
synced 2026-03-07 13:01:37 +00:00
Fix channel extraction when subscribers not available
This commit is contained in:
parent
10f8009101
commit
e95d814709
2 changed files with 3 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ def extract_channel(ucid):
|
|||
author = header["title"]
|
||||
author_id = header["channelId"]
|
||||
author_url = header["navigationEndpoint"]["commandMetadata"]["webCommandMetadata"]["url"]
|
||||
subscriber_count = combine_runs(header["subscriberCountText"])
|
||||
subscriber_count = combine_runs(header["subscriberCountText"]) if "subscribeCountText" in header else "Unknown subscribers"
|
||||
description = yt_initial_data["metadata"]["channelMetadataRenderer"]["description"]
|
||||
allowed_regions = yt_initial_data["metadata"]["channelMetadataRenderer"]["availableCountryCodes"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue