Files
youtube-dl/youtube_dl/extractor
phi 097eba019d bug fix for extractor xiami.py
Before applying this patch, when downloading resources from xiami.com, it crashes with these:
Traceback (most recent call last):
  File "/home/phi/.local/bin/youtube-dl", line 11, in <module>
    sys.exit(main())
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/__init__.py", line 433, in main
    _real_main(argv)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/__init__.py", line 423, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1786, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 691, in extract_info
    ie_result = ie.extract(url)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 347, in extract
    return self._real_extract(url)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/extractor/xiami.py", line 116, in _real_extract
    return self._extract_tracks(self._match_id(url))[0]
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/extractor/xiami.py", line 43, in _extract_tracks
    '%s/%s%s' % (self._API_BASE_URL, item_id, '/type/%s' % typ if typ else ''), item_id)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 562, in _download_json
    json_string, video_id, transform_source=transform_source, fatal=fatal)
  File "/home/phi/.local/lib/python3.5/site-packages/youtube_dl/extractor/common.py", line 568, in _parse_json
    return json.loads(json_string)
  File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'NoneType'

This patch solves exactly this problem.
2016-08-14 02:18:59 +08:00
..
2016-08-08 12:52:36 +08:00
2016-08-08 12:59:07 +08:00
2016-08-05 23:16:19 +07:00
2016-08-13 18:02:11 +08:00
2016-08-08 12:57:17 +08:00
2016-08-08 12:59:55 +08:00
2016-08-10 11:38:38 +08:00
2016-08-07 22:58:12 +01:00
2016-08-11 23:47:52 +07:00
2016-08-04 16:34:47 +01:00
2016-08-06 20:53:39 +01:00
2016-08-11 21:42:55 +07:00
2016-08-12 18:05:49 +01:00
2016-08-04 14:54:34 +01:00
2016-08-07 22:59:34 +08:00
2016-08-03 13:12:51 +01:00
2016-08-05 08:12:25 +01:00
2016-08-02 22:56:48 +07:00
2016-08-13 22:50:18 +07:00
2016-08-06 12:08:14 +01:00
2016-07-29 17:20:27 +02:00
2016-08-08 18:48:21 +08:00
2016-08-09 02:16:28 +07:00
2016-07-29 22:01:34 +07:00
2016-07-29 09:01:53 +07:00
2016-08-09 15:13:15 +01:00
2016-08-13 16:45:34 +07:00
2016-08-04 09:39:06 +01:00
2016-08-10 14:20:28 +01:00
2016-08-14 02:18:59 +08:00