From a0bb1d8c0d18e18b93afa801b3c1f399b16410ae Mon Sep 17 00:00:00 2001 From: hyeeji Date: Tue, 7 Dec 2021 13:18:15 +0900 Subject: [PATCH] Feat:add Site --- youtube_dl/extractor/nate.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/nate.py b/youtube_dl/extractor/nate.py index b75fe2140..f98005d35 100644 --- a/youtube_dl/extractor/nate.py +++ b/youtube_dl/extractor/nate.py @@ -15,7 +15,7 @@ class NateIE(InfoExtractor): 'title': '[심쿵엔딩] 이준호x이세영, 서로를 기억하며 끌어안는 두 사람!💕, MBC 211204 방송', 'thumbnail': r're:^http?://.*\.jpg$', 'upload_date': '20211204', - 'age_limit' : '15' + 'age_limit' : 15 # TODO more properties, either as: # * A value # * MD5 checksum; start the string with md5: @@ -30,13 +30,13 @@ class NateIE(InfoExtractor): #video_data = self._download_json( # 'https://tv.nate.com/api/v1/clip/% s'%video_id, video_id, headers=self.geo_verification_headers()) - video_data = self._download_json(url, video_id) + video_data = self._download_json('https://tv.nate.com/api/v1/clip/' + str(video_id), video_id) title = video_data.get('clipTitle') thumbnail = video_data.get('contentImg') - upload_date = video_data.get('regData') + upload_date = video_data.get('regDate') age_limit = video_data.get('targetAge') - + url = video_data['smcUriList'][4] # TODO more code goes here, for example ... @@ -45,6 +45,7 @@ class NateIE(InfoExtractor): 'title': title, 'thumbnail' : thumbnail, 'upload_date' : upload_date[:8], - 'age_limit' : age_limit + 'age_limit' : age_limit, + 'url': url # TODO more properties (see youtube_dl/extractor/common.py) }