-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
"Clean" URL when sharing (remove all parameters that are not video ID) #3247
Comments
For some reason the I tested it according to the commit description, and indeed, the url of Peertube videos are pointing to an api url and the original url (used to open it) is what works in this condition. I guess the committer forgot about other services? |
You should not remove timestamps from videos, eg |
Interestingly, that's a side effect of this issue. Though, a proper fix or even a dedicated |
@B0pol I'm not sure that timestamp should be included. IMHO it should be handled by #1556:
EDIT: correct ticket |
@woj-tek Time stamp should definitely be included if it was in the original link. This is best for showing one part of a very long video. |
What? That doesn't mention timestamps at all. |
No, this is a feature. |
My bad - I mixed two issues. You already can share video with timestamp included (see #2000) so why original timestamp should be transferred to the person you want to share it to? In my case, most of the time (always) I'd opt out of including timestamp in shared video. |
I agree with @woj-tek that the primary share button should share a clean video link. We already have a time-stamped share button when playing the video. More than that, it is just unexpected that the app would treat the share button as a clipboard of sorts, instead of generating a link on its own. I think most users would be surprised by this behavior. |
Need help, guys. I'm trying to implement this, but I'm stuck. I can't find a way to check for the service being Youtube. If I could get that, I'd make an if else to share the original URL for other services and a clean URL for Youtube. |
@opusforlife2 No need to check for services or anything, it should be done regardless, just return the clean url instead of what it's done currently (change
Now, if the clean url should include anything other than the essential is another story, it's probably better to introduce another field specifically for these use cases. Maybe open an issue in the extractor repository? Notice that the issue with Peertube should be fixed as well if you do that. |
Oh. I thought you said above that getOriginalUrl needed to stay because of Peertube. Edit: You're sure making this change won't break things? |
Is this issue still open for contribute or already solved by #3262? |
@SydneyDrone It's open. Do you want to be assigned? |
@opusforlife2 Yes, I'd like to, but I'm a little bit confused because it seems that your PR has already fixed this issue. Did I miss something? |
@SydneyDrone I don't actually remember why it was closed. Ignore it and go ahead with a new PR, no worries. |
@opusforlife2 OK, I'm working on it. |
@SydneyDrone See the problem statement:
So the user has stuff like tracking parameters in mind. The basic share button and the timestamp share button should stay as they are. Everything else should be removed from the shared URL. If that means that you only need to write tests, great! |
It would be great, if NewPipe would only use video ID when sharing the link (
v=…
) instead of the whole URL that was used to open the video (often including source from which we got the video).This is somewhat related to #1556
The text was updated successfully, but these errors were encountered: