Merge branch 'master' of github.com-rndusr:rg3/youtube-dl into fix/str-item-assignment
authorRandom User <rndusr@posteo.de>
Sat, 25 Mar 2017 20:36:59 +0000 (21:36 +0100)
committerRandom User <rndusr@posteo.de>
Sat, 25 Mar 2017 20:36:59 +0000 (21:36 +0100)
1  2 
youtube_dl/extractor/common.py
youtube_dl/extractor/generic.py

Simple merge
index 3fe0237b6ebb2c6821660f4cd671304be5768ee8,4fff93efe2859b541e34a4f09647417fffcf940d..274f817384d65a6287427ad35f97d3126cea7cd0
@@@ -2518,10 -2550,18 +2564,14 @@@ class GenericIE(InfoExtractor)
                  self._sort_formats(entry['formats'])
              return self.playlist_result(entries)
  
 -        jwplayer_data_str = self._find_jwplayer_data(webpage)
 -        if jwplayer_data_str:
 -            try:
 -                jwplayer_data = self._parse_json(
 -                    jwplayer_data_str, video_id, transform_source=js_to_json)
 -                info = self._parse_jwplayer_data(
 -                    jwplayer_data, video_id, require_title=False)
 -                if not info.get('title'):
 -                    info['title'] = video_title
 -                return info
 -            except ExtractorError:
 -                pass
 +        jwplayer_data = self._find_jwplayer_data(
 +            webpage, video_id, transform_source=js_to_json)
 +        if jwplayer_data:
-             return self._parse_jwplayer_data(jwplayer_data, video_id)
++            info = self._parse_jwplayer_data(
++                jwplayer_data, video_id, require_title=False)
++            if not info.get('title'):
++                info['title'] = video_title
++            return info
  
          def check_video(vurl):
              if YoutubeIE.suitable(vurl):