Rapsys Git
/
youtubedl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Start preparing new release.
[youtubedl]
/
youtube_dl
/
extractor
/
pluralsight.py
diff --git
a/youtube_dl/extractor/pluralsight.py
b/youtube_dl/extractor/pluralsight.py
index e0cbd045e4ad68517b425f9565590ab7a75f9019..e45d9fe552e2c5af4c3f35182aa8063dcca9e390 100644
(file)
--- a/
youtube_dl/extractor/pluralsight.py
+++ b/
youtube_dl/extractor/pluralsight.py
@@
-40,7
+40,7
@@
class PluralsightIE(PluralsightBaseIE):
'info_dict': {
'id': 'hosting-sql-server-windows-azure-iaas-m7-mgmt-04',
'ext': 'mp4',
'info_dict': {
'id': 'hosting-sql-server-windows-azure-iaas-m7-mgmt-04',
'ext': 'mp4',
- 'title': '
Management of SQL Server -
Demo Monitoring',
+ 'title': 'Demo Monitoring',
'duration': 338,
},
'skip': 'Requires pluralsight account credentials',
'duration': 338,
},
'skip': 'Requires pluralsight account credentials',
@@
-169,11
+169,10
@@
class PluralsightIE(PluralsightBaseIE):
collection = course['modules']
collection = course['modules']
-
module, clip = None,
None
+
clip =
None
for module_ in collection:
if name in (module_.get('moduleName'), module_.get('name')):
for module_ in collection:
if name in (module_.get('moduleName'), module_.get('name')):
- module = module_
for clip_ in module_.get('clips', []):
clip_index = clip_.get('clipIndex')
if clip_index is None:
for clip_ in module_.get('clips', []):
clip_index = clip_.get('clipIndex')
if clip_index is None:
@@
-187,7
+186,7
@@
class PluralsightIE(PluralsightBaseIE):
if not clip:
raise ExtractorError('Unable to resolve clip')
if not clip:
raise ExtractorError('Unable to resolve clip')
- title =
'%s - %s' % (module['title'], clip['title'])
+ title =
clip['title']
QUALITIES = {
'low': {'width': 640, 'height': 480},
QUALITIES = {
'low': {'width': 640, 'height': 480},