TeamNewPipe / TeamNewPipe/NewPipeExtractor

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

Open
#949 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement YouTube
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.