1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-05-27 18:30:38 +08:00

[skillshare:course] Missed one change

Improved JSON download message.
This commit is contained in:
Unknown
2018-06-02 09:44:27 +01:00
Unverified
parent c90aa852c2
commit 7b48736c3f
+2 -2
View File
@@ -68,8 +68,8 @@ class SkillshareCourseIE(SkillshareBaseIE):
class_id = self._match_id(url)
class_json = self._download_json(self._CLASS_URL % class_id,
None,
note="Getting class details",
errnote="Downloading class JSON")
note="Downloading class JSON",
errnote="Error downloading class JSON")
if class_json.get("enrollment_type", 0) > self._user_type:
raise ExtractorError("This course requires a premium account and thus can't be downloaded")