Error when attempting to download `liked`
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.
This appears to stem from the following line:
let og_Date = video[date];
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.
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.