[pbs] Improve description extraction
authorSergey M․ <dstftw@gmail.com>
Thu, 11 Feb 2016 15:24:07 +0000 (21:24 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 11 Feb 2016 15:28:09 +0000 (21:28 +0600)
youtube_dl/extractor/pbs.py

index 0d4d709de969dc30fc9e349c46b544e189f90390..0cdae67211c53d3cbbadae2915ca19c1b4d2d80b 100644 (file)
@@ -507,7 +507,7 @@ class PBSIE(InfoExtractor):
             'id': video_id,
             'display_id': display_id,
             'title': info['title'],
-            'description': info['program'].get('description'),
+            'description': info.get('description') or info.get('program', {}).get('description'),
             'thumbnail': info.get('image_url'),
             'duration': int_or_none(info.get('duration')),
             'age_limit': age_limit,