(type)
| 417 | return []; |
| 418 | |
| 419 | async function syncLists(type) { |
| 420 | const mode = 'mirror'; |
| 421 | const list = {}; |
| 422 | const missing = []; |
| 423 | |
| 424 | const providerList = getListProvider({ |
| 425 | mal: { |
| 426 | text: 'Init', |
| 427 | list: null, |
| 428 | master: false, |
| 429 | }, |
| 430 | anilist: { |
| 431 | text: 'Init', |
| 432 | list: null, |
| 433 | master: false, |
| 434 | }, |
| 435 | kitsu: { |
| 436 | text: 'Init', |
| 437 | list: null, |
| 438 | master: false, |
| 439 | }, |
| 440 | mangabaka: { |
| 441 | text: 'Init', |
| 442 | list: null, |
| 443 | master: false, |
| 444 | }, |
| 445 | simkl: { |
| 446 | text: 'Init', |
| 447 | list: null, |
| 448 | master: false, |
| 449 | }, |
| 450 | shiki: { |
| 451 | text: 'Init', |
| 452 | list: null, |
| 453 | master: false, |
| 454 | }, |
| 455 | }); |
| 456 | |
| 457 | const listOptions: any = await retriveLists(providerList, type, getList); |
| 458 | |
| 459 | generateSync( |
| 460 | listOptions.master, |
| 461 | listOptions.slaves, |
| 462 | mode, |
| 463 | listOptions.typeArray, |
| 464 | list, |
| 465 | missing, |
| 466 | ); |
| 467 | con.log('Start syncing', list, missing); |
| 468 | await syncList(list, missing); |
| 469 | } |
| 470 | }, |
| 471 | }; |
| 472 |
no test coverage detected