diff --git a/README.md b/README.md index f66acd3..c84904f 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,9 @@ API를 제공합니다. 다른 플러그인에서 동영상 정보나 다운로 물론 해당 정보가 없으면 null입니다. ## Changelog +v2.1.2 +* youtube-dlc 호환 문제 수정 + v2.1.1 v2.1.0 diff --git a/info.json b/info.json index 2301ae4..003f388 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": "2.1.1", "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": "2.1.2", "home": "https://github.com/joyfuI/youtube-dl", "category_name": "vod", "developer": "joyfuI"} \ No newline at end of file diff --git a/logic_normal.py b/logic_normal.py index fe0b8b8..da16bb2 100644 --- a/logic_normal.py +++ b/logic_normal.py @@ -113,7 +113,7 @@ class LogicNormal(object): if 'cookiefile' in kwagrs and kwagrs['cookiefile']: opts['cookiefile'] = kwagrs['cookiefile'] dateafter = kwagrs.get('dateafter') - headers = kwagrs.get('headers') + headers = kwagrs.get('headers', {}) youtube_dl = MyYoutubeDL(plugin, url, filename, temp_path, save_path, opts, dateafter, headers=headers) youtube_dl.key = kwagrs.get('key') LogicNormal.youtube_dl_list.append(youtube_dl) # 리스트 추가 diff --git a/my_youtube_dl.py b/my_youtube_dl.py index 4f230e4..23617ac 100644 --- a/my_youtube_dl.py +++ b/my_youtube_dl.py @@ -118,7 +118,7 @@ class MyYoutubeDL(object): self.status = Status.ERROR return self.info_dict['extractor'] = info_dict['extractor'] - self.info_dict['title'] = info_dict['title'] + self.info_dict['title'] = info_dict.get('title', info_dict['id']) self.info_dict['uploader'] = info_dict.get('uploader', '') self.info_dict['uploader_url'] = info_dict.get('uploader_url', '') ydl_opts = { diff --git a/plugin.py b/plugin.py index fc8cc47..39a3807 100644 --- a/plugin.py +++ b/plugin.py @@ -45,7 +45,7 @@ menu = { } plugin_info = { - 'version': '2.1.1', + 'version': '2.1.2', 'name': 'youtube-dl', 'category_name': 'vod', 'developer': 'joyfuI',