From 8d5b553ed1cf447ea54d7fee6f3b84d87ea19b46 Mon Sep 17 00:00:00 2001 From: Aniruddh Joshi Date: Sun, 25 Mar 2018 09:46:38 +0530 Subject: [PATCH] [torrins] fixed codes for required metafields --- youtube_dl/extractor/torrins.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/torrins.py b/youtube_dl/extractor/torrins.py index d35ba714a..c573c2455 100644 --- a/youtube_dl/extractor/torrins.py +++ b/youtube_dl/extractor/torrins.py @@ -105,24 +105,24 @@ class TorrinsIE(InfoExtractor): video_json = self._parse_json(video_json, course_id) - title = video_json.get('title') - video_id = video_json.get('id') + title = video_json['title'] + video_id = video_json['id'] formats = [ { - 'url': video_json.get('low'), + 'url': video_json['low'], 'format_id': 'low', 'height': 240, 'ext': 'mp4' }, { - 'url': video_json.get('medium'), + 'url': video_json['medium'], 'format_id': 'medium', 'height': 360, 'ext': 'mp4' }, { - 'url': video_json.get('high'), + 'url': video_json['high'], 'format_id': 'high', 'height': 480, 'ext': 'mp4'