I find it odd here to use `data.get("youtube_id", "")`, which is very "soft", then pass into a function that will throw an exception.  I would suggest you only "get" items that are OK to be missing, and either explicitly check and fail, or just index and fail, for required items.