tikfav icon indicating copy to clipboard operation
tikfav copied to clipboard

Error when attempting to download `liked`

Open ealderman-25 opened this issue 11 months ago • 2 comments

When attempting to download liked videos using tikfav -u <user_data.json> -k <api_key> liked, I am met with the following error: getVideo failed TypeError: Cannot read properties of undefined (reading 'replace') at downloader (file:///usr/local/lib/node_modules/tikfav/index.js:203:27) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Command. (file:///usr/local/lib/node_modules/tikfav/index.js:53:7)

This appears to stem from the following line: let og_Date = video[date];

ealderman-25 avatar Jan 16 '25 01:01 ealderman-25

Fixed in 1.4.4

This was caused by a change in the JSON formatting of the Tiktok user data files. I did a quick fix that will break the liked command for older user data files, so I'll leave this open until I implement a permanent solution.

davidkeipert avatar Jan 18 '25 16:01 davidkeipert

I have tons of older JSON files that I need to download from - what kind of permanent solution are you looking at? I am also using an older version of tikfav as well so hopefully this can be something that I can just edit into the code.

cheese529 avatar Jan 20 '25 22:01 cheese529