]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[pluralsight] Fix new player (Closes #8215)
authorSergey M․ <dstftw@gmail.com>
Wed, 13 Jan 2016 02:18:37 +0000 (08:18 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 13 Jan 2016 02:18:37 +0000 (08:18 +0600)
youtube_dl/extractor/pluralsight.py

index 55c11b3bf89be7196c3c95d0a3fb25dae27ce51b..12e1c2862c2a7964b5613d7e207853c80a862b24 100644 (file)
@@ -232,7 +232,7 @@ class PluralsightIE(PluralsightBaseIE):
         # { a = author, cn = clip_id, lc = end, m = name }
 
         return {
-            'id': clip['clipName'],
+            'id': clip.get('clipName') or clip['name'],
             'title': '%s - %s' % (module['title'], clip['title']),
             'duration': int_or_none(clip.get('duration')) or parse_duration(clip.get('formattedDuration')),
             'creator': author,