diff --git a/extractors/channel.py b/extractors/channel.py index 1cf35c7..36c96b1 100644 --- a/extractors/channel.py +++ b/extractors/channel.py @@ -35,7 +35,10 @@ def extract_channel(ucid): "identifier": "ACCOUNT_TERMINATED" } else: - print("Seen alert text '{}'".format(alert_text)) + return { + "error": alert_text, + "identifier": "UNKNOWN" + } header = yt_initial_data["header"]["c4TabbedHeaderRenderer"] if "c4TabbedHeaderRenderer" in yt_initial_data["header"] else {} channel_metadata = yt_initial_data["metadata"]["channelMetadataRenderer"]