diff --git a/udemy/_compat.py b/udemy/_compat.py index c6214b8..137f736 100644 --- a/udemy/_compat.py +++ b/udemy/_compat.py @@ -68,7 +68,7 @@ LOGOUT_URL = 'https://www.udemy.com/user/logout' MY_COURSES_URL = 'https://www.udemy.com/api-2.0/users/me/subscribed-courses?fields[course]=id,title,published_title,headline,url,num_lectures,num_reviews,num_subscribers,created,enrollment_time,completion_ratio,avg_rating,locale&page=1&page_size=100' -COURSE_URL = 'https://www.udemy.com/api-2.0/courses/{course_id}/cached-subscriber-curriculum-items?fields[asset]=results,external_url,time_estimation,download_urls,slide_urls,filename,asset_type,captions,stream_urls&fields[chapter]=object_index,title,sort_order&fields[lecture]=id,title,object_index,asset,supplementary_assets,view_html&page_size=10000' +COURSE_URL = 'https://www.udemy.com/api-2.0/courses/{course_id}/cached-subscriber-curriculum-items?fields[asset]=results,external_url,time_estimation,download_urls,slide_urls,filename,asset_type,captions,stream_urls,body&fields[chapter]=object_index,title,sort_order&fields[lecture]=id,title,object_index,asset,supplementary_assets,view_html&page_size=10000' HEADERS = { 'User-Agent' : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15', 'X-Requested-With' : 'XMLHttpRequest', diff --git a/udemy/_extract.py b/udemy/_extract.py index c28e0ee..cffb243 100644 --- a/udemy/_extract.py +++ b/udemy/_extract.py @@ -451,7 +451,7 @@ def _real_extract(self, url=''): 'lecture_index' : lecture_index, 'lectures_id' : lecture_id, 'lecture_title' : lecture, - 'html_content' : view_html, + 'html_content' : asset.get('body'), 'extension' : 'html', 'assets' : retVal, 'assets_count' : len(retVal),