Closed mhqschen closed 4 years ago
是Python2的兼容问题。建议你使用Python3。
On Sat, 25 Jul 2020, 21:28 mhqschen, notifications@github.com wrote:
[07/25 21:25:31]-[INFO]: Black.Mirror.S03E01.PROPER.1080p.WEBRip.X264-DEFLATE.mkv:开始使用 搜索字幕 [07/25 21:25:31]-[DEBUG]: keyword: Black.Mirror.S03.E01 [07/25 21:25:31]-[DEBUG]: videoinfo: {u'episode': 1, u'video_encoding': u'', u'title': u'Black.Mirror', u'season': 3, u'source': u'', u'audio_encoding': u'', u'resolution': u'1080p'} [07/25 21:25:31]-[ERROR]: Black.Mirror.S03E01.PROPER.1080p.WEBRip.X264-DEFLATE.mkv:搜索字幕发生错误: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/subfinder/subfinder.py", line 175, in _download videofile, self.languages, self.exts, self.keyword) File "/usr/local/lib/python2.7/site-packages/subfinder/subsearcher/subsearcher.py", line 383, in search_subs return self._search_subs(videofile, languages, exts, keyword) File "/usr/local/lib/python2.7/site-packages/subfinder/subsearcher/subhd.py", line 183, in _search_subs subinfo_list, referer = self._get_subinfo_list(keyword) File "/usr/local/lib/python2.7/site-packages/subfinder/subsearcher/subhd.py", line 93, in _get_subinfo_list url += urllib.parse.quote(videoname) AttributeError: 'module' object has no attribute 'parse'
[07/25 21:25:31]-[INFO]: Black.Mirror.S03E01.PROPER.1080p.WEBRip.X264-DEFLATE.mkv:找到 0 个字幕, 准备下载
[07/25 21:25:31]-[INFO]: Black.Mirror.S03E01.PROPER.1080p.WEBRip.X264-DEFLATE.mkv: 下载 0 个字幕
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ausaki/subfinder/issues/60, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRCK5Y6DFPVASOOY7SG2PLR5LMZBANCNFSM4PHOVBGA .
用Python3后正常了。谢谢。
[07/25 21:25:31]-[INFO]: Black.Mirror.S03E01.PROPER.1080p.WEBRip.X264-DEFLATE.mkv:开始使用 搜索字幕
[07/25 21:25:31]-[DEBUG]: keyword: Black.Mirror.S03.E01
[07/25 21:25:31]-[DEBUG]: videoinfo: {u'episode': 1, u'video_encoding': u'', u'title': u'Black.Mirror', u'season': 3, u'source': u'', u'audio_encoding': u'', u'resolution': u'1080p'}
[07/25 21:25:31]-[ERROR]: Black.Mirror.S03E01.PROPER.1080p.WEBRip.X264-DEFLATE.mkv:搜索字幕发生错误: Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/subfinder/subfinder.py", line 175, in _download
videofile, self.languages, self.exts, self.keyword)
File "/usr/local/lib/python2.7/site-packages/subfinder/subsearcher/subsearcher.py", line 383, in search_subs
return self._search_subs(videofile, languages, exts, keyword)
File "/usr/local/lib/python2.7/site-packages/subfinder/subsearcher/subhd.py", line 183, in _search_subs
subinfo_list, referer = self._get_subinfo_list(keyword)
File "/usr/local/lib/python2.7/site-packages/subfinder/subsearcher/subhd.py", line 93, in _get_subinfo_list
url += urllib.parse.quote(videoname)
AttributeError: 'module' object has no attribute 'parse'
[07/25 21:25:31]-[INFO]: Black.Mirror.S03E01.PROPER.1080p.WEBRip.X264-DEFLATE.mkv:找到 0 个字幕, 准备下载
[07/25 21:25:31]-[INFO]: Black.Mirror.S03E01.PROPER.1080p.WEBRip.X264-DEFLATE.mkv: 下载 0 个字幕