Open mognia opened 6 years ago
Hi @mognia,
At the time i wrote this library, Adm-zip: a library that extracts .zip data, didn't have the option to unzip without first writing to disk, and due to that constraint all exported functions only dealt with writing the file to disk :( . I'll have to re-structure the library interface and make it more suitable for general cases, since it's only a library.
@mognia Check out the new branch: 1.4.0 passiveDownloader now support 2 cases.
1- Calling the function with 2 arguments - path not specified:
subscene_scraper.passiveDownloader('interstellar','english')
.then(function(subtitleFiles){
/*subtitleFiles is an array, where each element is an object containing a name
and a buffer */
console.log('subtitles',subtitleFiles);
})
2- Calling the function with 3 arguments - path specified:
subscene_scraper.passiveDownloader('interstellar','english',path)
.then(function(savedFiles){
console.log('subtitle saved to ',savedFiles);
})
Either use that branch, or wait until 1.4.0 is released !
hi jodevsa..!
i wanna use your package in a rest api and in case of downloading subtitles i wanna use stream subtitle from server to client and i wanna ask if this posible to do? i mean directly download from subscene and send it to client not download and save it!
becuse subcene is banned in my country and i want use reverse proxy to access ! so i wanna upload a server to get names of films and send subtitles to client....