Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

Commit

Permalink
Update dependencies and fix download stuck issue on some courses
Browse files Browse the repository at this point in the history
  • Loading branch information
FaisalUmair committed Aug 2, 2018
1 parent 2dfbe70 commit 211a040
Show file tree
Hide file tree
Showing 4 changed files with 557 additions and 574 deletions.
8 changes: 6 additions & 2 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,15 @@ var skipSubtitles = settingsCached.download.skipSubtitles;
function getLecture(lecturename,chapterindex,lectureindex){
$.ajax({
type: 'GET',
url: `https://${subDomain}.udemy.com/api-2.0/users/me/subscribed-courses/${courseid}/lectures/${v.id}?fields[asset]=stream_urls,download_urls,captions,title,filename,data&fields[lecture]=asset,supplementary_assets`,
url: `https://${subDomain}.udemy.com/api-2.0/users/me/subscribed-courses/${courseid}/lectures/${v.id}?fields[asset]=stream_urls,download_urls,captions,title,filename,data,body&fields[lecture]=asset,supplementary_assets`,
headers: headers,
success: function(response) {
if(v.asset.asset_type=="Article"){
var src = response.asset.data.body;
if(response.asset.data){
var src = response.asset.data.body;
}else{
var src = response.asset.body;
}
var videoQuality = v.asset.asset_type;
var type = 'Article';
}else if((v.asset.asset_type=="File"||v.asset.asset_type=="E-Book")){
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let win

function createWindow () {
// Create the browser window.
win = new BrowserWindow({width: 520, height: 680, icon: __dirname+'/assets/images/build/icon.png', resizable: true});
win = new BrowserWindow({width: 520, height: 680, icon: __dirname+'/assets/images/build/icon.png', resizable: false});
// and load the index.html of the app.
win.loadURL(url.format({
pathname: path.join(__dirname, 'index.html'),
Expand Down
Loading

0 comments on commit 211a040

Please sign in to comment.