move cookies to processing

slight clean up and better example
This commit is contained in:
wukko
2023-08-20 16:51:39 +06:00
parent a2216510b7
commit fd0357e52d
8 changed files with 106 additions and 140 deletions

View File

@ -1,6 +1,6 @@
import { createStream } from "../../stream/manage.js";
import { genericUserAgent } from "../../config.js";
import { getCookie, updateCookie } from '../../cookie/manager.js';
import { getCookie, updateCookie } from '../cookie/manager.js';
export default async function(obj) {
let data;
@ -67,7 +67,11 @@ export default async function(obj) {
}
if (single) {
return { urls: single, filename: `instagram_${obj.id}.mp4`, audioFilename: `instagram_${obj.id}_audio` }
return {
urls: single,
filename: `instagram_${obj.id}.mp4`,
audioFilename: `instagram_${obj.id}_audio`
}
} else if (multiple.length) {
return { picker: multiple }
} else {