Fix subscriber count extraction

This commit is contained in:
Cadence Ember 2021-01-17 14:56:17 +13:00
parent f1ddf66f50
commit 39425f994a
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ def extract_channel(ucid):
author = channel_metadata["title"]
author_id = channel_metadata["externalId"]
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"]
allowed_regions = channel_metadata["availableCountryCodes"]