Update index.js
Browse files393 unmodified lines394395396397398399400401402403404405406407408409410411412413414415416393 unmodified lines$('.dl-action a').each((index, element) => {const format = $(element).text().trim();const url = $(element).attr('href');if (url !== '#') {downloads.push({ format, url });}});$('a').each((index, element) => {const href = $(element).attr('href');if (href && href !== '/' && href !== '#') {downloads.push(href);}});const result = {downloads};return { result };} catch (error) {return error;}393 unmodified lines394395396397398399400401402403404405406407408409410411412413414415393 unmodified lines$('.dl-action a').each((index, element) => {const format = $(element).text().trim();const url = $(element).attr('href');if (url !== '#') {downloads.push({ format, url });}});// Jika tidak ada unduhan dari load pertama, coba load keduaif (downloads.length === 0) {$('a').each((index, element) => {const href = $(element).attr('href');if (href && href !== '/' && href !== '#') {downloads.push(href);}});}return { downloads };} catch (error) {return error;}
index.js+12-13