-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
boostBoosting Lizo'nikahBoosting Lizo'nikah
Description
When listing videos, we can pass the query param ?isLocal=true to filter out federated videos. See API docs here: https://docs.joinpeertube.org/api-rest-reference.html#tag/Video/operation/getVideos
For implementing OwnTube-tv/web-client#131 & OwnTube-tv/web-client#137, it would be beneficial include only local video Channels on the PeerTube server-side, instead of filtering client-side. Can we please update the root-level GET /api/v1/video-channels API endpoint to support passing the same isLocal filter as for videos?
As a concrete example of the problem it causes, let's query PeerTube Nightly for channels:
# Local channels found within the first 100:
curl -s 'https://peertube2.cpy.re/api/v1/video-channels?count=100&start=0' | jq '.data.[] | select(.isLocal) | .name'
"wicklow2"
"ngi_test"
"ngi_channel"
"ngi_accessibility_channel"
# Non-local channels found within the first 100:
curl -s 'https://peertube2.cpy.re/api/v1/video-channels?count=100&start=0' | jq '.data.[] | select(.isLocal == false) | .name' | wc -l
96Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
boostBoosting Lizo'nikahBoosting Lizo'nikah
Type
Projects
Status
Todo