diff --git a/README.md b/README.md index fb6ae5b..f857e3f 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,8 @@ API에선 직접 비트레이트를 설정할 수 있습니다. 물론 해당 정보가 없으면 null입니다. ## Changelog +v1.6.1 + v1.6.0 * API에 format_code를 format로 변경 * API에 temp_path 삭제 diff --git a/info.json b/info.json index 480948b..1ffc490 100644 --- a/info.json +++ b/info.json @@ -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"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/my_youtube_dl.py b/my_youtube_dl.py index 759c42d..fc816eb 100644 --- a/my_youtube_dl.py +++ b/my_youtube_dl.py @@ -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]) diff --git a/plugin.py b/plugin.py index c06c8be..0644ad3 100644 --- a/plugin.py +++ b/plugin.py @@ -34,7 +34,7 @@ menu = { } plugin_info = { - 'version': '1.6.0', + 'version': '1.6.1', 'name': 'youtube-dl', 'category_name': 'vod', 'developer': 'joyfuI',