[YouTube] Implement support for collaborators
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.
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.
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
@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?