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

Update places generating sharable YT video URLs to always return prefix https://youtu.be/ #4547

Conversation

PikachuEXE
Copy link
Collaborator

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Description

Can't really say it's a bug but it's better to return consistent values for sharable video URLs

Screenshots

Places that can copy sharable video URLs
image
image
image

Testing

Find (A) video with online playlist (B) video without online playlist
Ensure all places that can copy youtube URL will copy same working URLs
For places see screenshots

Desktop

  • OS:
  • OS Version:
  • FreeTube version:

Additional context

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 15, 2024
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) January 15, 2024 08:33
@@ -188,11 +188,12 @@ export default defineComponent({
},

youtubeShareUrl: function () {
const videoUrl = `https://youtu.be/${this.id}`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No logic change here just refactor

@@ -127,11 +127,12 @@ export default defineComponent({
if (this.isPlaylist) {
return this.youtubePlaylistUrl
}
const videoUrl = `https://youtu.be/${this.id}`
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actual logic change

absidue
absidue previously approved these changes Jan 15, 2024
@PikachuEXE
Copy link
Collaborator Author

Just fixed URL, I used & instead of ? and got issue using the URL in FT myself

@FreeTubeBot FreeTubeBot merged commit e560a8f into FreeTubeApp:development Jan 25, 2024
5 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jan 25, 2024
@PikachuEXE PikachuEXE deleted the feature/consistent-sharable-video-url-local branch April 2, 2024 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants