File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -294,8 +294,12 @@ function parseTiktok (header, data) {
294
294
}
295
295
296
296
authStats = 0 ;
297
+ likes = 0 ;
298
+ videos = 0 ;
297
299
if ( 'authorStats' in row [ 'data' ] && row [ 'data' ] [ "authorStats" ] != undefined ) {
298
300
authStats = row [ 'data' ] [ "authorStats" ] [ "followerCount" ] ;
301
+ likes = row [ 'data' ] [ "authorStats" ] [ "diggCount" ] ;
302
+ videos = row [ 'data' ] [ "authorStats" ] [ "videoCount" ]
299
303
}
300
304
301
305
const rows = {
@@ -304,8 +308,8 @@ function parseTiktok (header, data) {
304
308
"author" : `"${ user_nickname } "` ,
305
309
"author_full" : `"${ user_fullname } "` ,
306
310
"author_followers" : authStats ,
307
- "author_likes" : row [ 'data' ] [ "authorStats" ] [ "diggCount" ] ,
308
- "author_videos" : row [ 'data' ] [ "authorStats" ] [ "videoCount" ] ,
311
+ "author_likes" : likes ,
312
+ "author_videos" : videos ,
309
313
"author_avatar" : row [ 'data' ] [ 'author' ] [ "avatarThumb" ] ,
310
314
"body" : `"${ escapeHTML ( row [ 'data' ] [ "desc" ] ) } "` ,
311
315
"timestamp" : new Date ( parseInt ( row [ 'data' ] [ "createTime" ] * 1000 ) ) . toDateString ( ) ,
You can’t perform that action at this time.
0 commit comments