v1.6.1
This commit is contained in:
@@ -131,6 +131,8 @@ API에선 직접 비트레이트를 설정할 수 있습니다.
|
||||
물론 해당 정보가 없으면 null입니다.
|
||||
|
||||
## Changelog
|
||||
v1.6.1
|
||||
|
||||
v1.6.0
|
||||
* API에 format_code를 format로 변경
|
||||
* API에 temp_path 삭제
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"description": "\uc720\ud29c\ube0c, \ub124\uc774\ubc84TV \ub4f1 \ub3d9\uc601\uc0c1 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub3d9\uc601\uc0c1 \ub2e4\uc6b4\ub85c\ub4dc", "name": "youtube-dl", "more": "", "version": "1.6.0", "home": "https://github.com/joyfuI/youtube-dl", "category_name": "vod", "developer": "joyfuI"}
|
||||
{"description": "\uc720\ud29c\ube0c, \ub124\uc774\ubc84TV \ub4f1 \ub3d9\uc601\uc0c1 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub3d9\uc601\uc0c1 \ub2e4\uc6b4\ub85c\ub4dc", "name": "youtube-dl", "more": "", "version": "1.6.1", "home": "https://github.com/joyfuI/youtube-dl", "category_name": "vod", "developer": "joyfuI"}
|
||||
@@ -108,13 +108,13 @@ class Youtube_dl(object):
|
||||
'ignoreerrors': True,
|
||||
'cachedir': False
|
||||
}
|
||||
if 'format' in self.opts:
|
||||
if self.opts.get('format'):
|
||||
ydl_opts['format'] = self.opts['format']
|
||||
if 'postprocessors' in self.opts:
|
||||
if self.opts.get('postprocessors'):
|
||||
ydl_opts['postprocessors'] = self.opts['postprocessors']
|
||||
if 'proxy' in self.opts:
|
||||
if self.opts.get('proxy'):
|
||||
ydl_opts['proxy'] = self.opts['proxy']
|
||||
if 'download_archive' in self.opts:
|
||||
if self.opts.get('download_archive'):
|
||||
ydl_opts['download_archive'] = self.opts['download_archive']
|
||||
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
||||
ydl.download([self.url])
|
||||
|
||||
Reference in New Issue
Block a user