TeamNewPipe / TeamNewPipe/NewPipeExtractor
Add `edited` and numeric uploaded time as a variable to YouTube comments
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2k
- Forks
- 602
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 6
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsInfoItemExtractor.java and its getTextualUploadDate method. Trace how comment fields are exposed, then define separate edited and numeric uploaded-time values while preserving the existing textual value as appropriate. Done means the comment data supports localisation and frontend use without parsing publishedTimeText.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100