NewPipeExtractor icon indicating copy to clipboard operation
NewPipeExtractor copied to clipboard

[YouTube] Implement support for collaborators

Open FineFindus opened this issue 2 months ago • 3 comments

Implements support for extracting the collaborators of a video. This allows client apps to display them, if they wish so. The first collaborator is equivalent to the creator/uploader of the video.

Ref: https://github.com/TeamNewPipe/NewPipeExtractor/pull/1397

  • [x] I carefully read the contribution guidelines and agree to them.
  • [ ] I have tested the API against NewPipe.
  • [ ] I agree to create a pull request for NewPipe as soon as possible to make it compatible with the changed API.

FineFindus avatar Nov 04 '25 20:11 FineFindus

There's currently naturally a lot of duplicate code between extracting all the collaborators details, and extracting just a single detail (e.g. the URL). Maybe it would be better to extract them into separate functions? Or maybe it would be even better deprecated the singular uploader methods and always return at least one creator? That may have a small performance cost, though in our use-case we are always accessing all of them.

FineFindus avatar Nov 05 '25 21:11 FineFindus

There's currently naturally a lot of duplicate code between extracting all the collaborators details, and extracting just a single detail (e.g. the URL). Maybe it would be better to extract them into separate functions? Or maybe it would be even better deprecated the singular uploader methods and always return at least one creator? That may have a small performance cost, though in our use-case we are always accessing all of them.

https://github.com/TeamNewPipe/NewPipeExtractor/issues/1360#issuecomment-3170556986 perhaps related

absurdlylongusername avatar Nov 05 '25 23:11 absurdlylongusername

@Stypox @AudricV I'd be okay with deprecating the singular uploader methods. We should also think about using the Creator class for all the other attributes as well and could deprecate those, too. What do you think?

TobiGr avatar Nov 30 '25 11:11 TobiGr