NewPipeExtractor icon indicating copy to clipboard operation
NewPipeExtractor copied to clipboard

Add `edited` and numeric uploaded time as a variable to YouTube comments

Open thecashewtrader opened this issue 3 years ago • 2 comments

Hi, I was wondering if we could add edited or similar as a variable to a comment, and change the uploaded date return format to a number.

For context, currently the getTextualUploadDate method in YoutubeCommentsInfoItemExtractor just returns the publishedTimeText, which looks something like 1 month ago (edited).

Having a separate edited variable and a numeric uploaded time duration would allow for easier translation/localisation and use by other frontends, for example: https://github.com/TeamPiped/Piped/issues/1583

thecashewtrader avatar Oct 22 '22 11:10 thecashewtrader

We've got getUploadDate for the date/timeago, we just need a way to indicate whether comments have been edited.

FireMasterK avatar Oct 24 '22 10:10 FireMasterK

Could we just check for the string ending with (edited)? I'd have submitted a PR but idk Java and it's build system etc.

thecashewtrader avatar Oct 24 '22 11:10 thecashewtrader