migrated to new mod type support
This commit is contained in:
@@ -84,8 +84,11 @@ export class ElectronService {
|
||||
for (let i = 0; i < body.data.apps.length; i++) {
|
||||
let app = body.data.apps[i];
|
||||
if (Number(app.app_categories_id) === 1) {
|
||||
let urls = app.urls.filter(l => l && ~['Github Release', 'APK', 'OBB'].indexOf(l.provider));
|
||||
let urls = app.urls.filter(l => l && ~['Github Release', 'APK', 'OBB', 'Mod'].indexOf(l.provider));
|
||||
for (let i = 0; i < urls.length; i++) {
|
||||
if (urls[i].provider === 'Mod') {
|
||||
this.beatonService.downloadSong(urls[i].link_url, this.adbService);
|
||||
} else {
|
||||
const etx = urls[i].link_url
|
||||
.split('?')[0]
|
||||
.split('.')
|
||||
@@ -111,6 +114,7 @@ export class ElectronService {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user