Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PeerTube] Fix parsing ID for instances whose domain ends with a or c #1207

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

TobiGr
Copy link
Member

@TobiGr TobiGr commented Aug 2, 2024

  • 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.

The pattern to detect the channel ID was faulty and e.g. the ID detected for https://kolektiva.media/video-channels/documentary_channel was a/video-channels which is wrong. A new pattern is added to distinguish between URLs and potential IDs because IDs must not start with / while IDs inside an URL must.

Fixes TeamNewPipe/NewPipe#11369

@TobiGr TobiGr added bug Issue is related to a bug peertube service, https://joinpeertube.org/ labels Aug 2, 2024
The pattern to detect the channel ID was faulty and e.g. the ID detected for "https://kolektiva.media/video-channels/documentary_channel" was "a/video-channels" which is wrong.  A new pattern is added to distinguish between URLs and potential IDs because IDs must not start with a "/" while IDs inside an URL must.

Fixes TeamNewPipe/NewPipe#11369
@TobiGr TobiGr force-pushed the fix/peertube-certain-domains branch from ff12ee3 to bcacfc5 Compare August 2, 2024 16:19
@AudricV AudricV changed the title [PeerTube] Fix parsing id for instances whose domain ends with a or c [PeerTube] Fix parsing ID for instances whose domain ends with a or c Sep 29, 2024
@TobiGr TobiGr merged commit 743a400 into dev Oct 5, 2024
3 of 4 checks passed
@TobiGr TobiGr deleted the fix/peertube-certain-domains branch October 5, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug peertube service, https://joinpeertube.org/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PeerTube] Unable to view certain channels
2 participants