diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-19 22:02:07 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-19 22:02:07 +0600 |
commit | 10464af5d1d03a3461286a601ae7db91c5a8141c (patch) | |
tree | 1fcf417ccd259b89cfe591551343c1d1d71ad846 /youtube_dl | |
parent | cbcd1a5474dd8b39e68b0d2bbc493701c655a2d9 (diff) |
[dramafever:series] Fix extraction while authenticated
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/dramafever.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/dramafever.py b/youtube_dl/extractor/dramafever.py index cfbcddcef..ca41a3abf 100644 --- a/youtube_dl/extractor/dramafever.py +++ b/youtube_dl/extractor/dramafever.py @@ -185,8 +185,11 @@ class DramaFeverSeriesIE(DramaFeverBaseIE): % (consumer_secret, series_id, self._PAGE_SIZE, page_num), series_id, 'Downloading episodes JSON page #%d' % page_num) for episode in episodes.get('value', []): + episode_url = episode.get('episode_url') + if not episode_url: + continue entries.append(self.url_result( - compat_urlparse.urljoin(url, episode['episode_url']), + compat_urlparse.urljoin(url, episode_url), 'DramaFever', episode.get('guid'))) if page_num == episodes['num_pages']: break |