[skillshare:course] Missed one change
Improved JSON download message.
This commit is contained in:
parent
c90aa852c2
commit
7b48736c3f
@ -68,8 +68,8 @@ class SkillshareCourseIE(SkillshareBaseIE):
|
|||||||
class_id = self._match_id(url)
|
class_id = self._match_id(url)
|
||||||
class_json = self._download_json(self._CLASS_URL % class_id,
|
class_json = self._download_json(self._CLASS_URL % class_id,
|
||||||
None,
|
None,
|
||||||
note="Getting class details",
|
note="Downloading class JSON",
|
||||||
errnote="Downloading class JSON")
|
errnote="Error downloading class JSON")
|
||||||
|
|
||||||
if class_json.get("enrollment_type", 0) > self._user_type:
|
if class_json.get("enrollment_type", 0) > self._user_type:
|
||||||
raise ExtractorError("This course requires a premium account and thus can't be downloaded")
|
raise ExtractorError("This course requires a premium account and thus can't be downloaded")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user