+ player_talk = talk_info['player_talks'][0]
+
+ external = player_talk.get('external')
+ if isinstance(external, dict):
+ service = external.get('service')
+ if isinstance(service, compat_str):
+ ext_url = None
+ if service.lower() == 'youtube':
+ ext_url = external.get('code')
+ return {
+ '_type': 'url',
+ 'url': ext_url or external['uri'],
+ }
+
+ resources_ = player_talk.get('resources') or talk_info.get('resources')
+