mirror of
https://git.sr.ht/~cadence/NewLeaf
synced 2024-11-14 12:07:30 +00:00
Fix subscriber count extraction
This commit is contained in:
parent
f1ddf66f50
commit
39425f994a
@ -33,8 +33,8 @@ def extract_channel(ucid):
|
|||||||
author = channel_metadata["title"]
|
author = channel_metadata["title"]
|
||||||
author_id = channel_metadata["externalId"]
|
author_id = channel_metadata["externalId"]
|
||||||
author_url = channel_metadata["channelUrl"]
|
author_url = channel_metadata["channelUrl"]
|
||||||
|
|
||||||
subscriber_count = combine_runs(header["subscriberCountText"]) if "subscribeCountText" in header else "Unknown subscribers"
|
subscriber_count = combine_runs(header["subscriberCountText"]) if "subscriberCountText" in header else "Unknown subscribers"
|
||||||
description = channel_metadata["description"]
|
description = channel_metadata["description"]
|
||||||
allowed_regions = channel_metadata["availableCountryCodes"]
|
allowed_regions = channel_metadata["availableCountryCodes"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user