Skip to content

[Feature Request]: Accept percent-encoded urls #8304

@Krik658

Description

@Krik658

Guidelines

  • I have searched the issue tracker for open and closed issues that are similar to the feature request I want to file, without success.
  • I have searched the documentation for information that matches the description of the feature request I want to file, without success.
  • This issue contains only one feature request.
  • I have read and agree to follow the rules.

Problem Description

Hi there!

FreeTube does not accept percent-encoded urls and throws a video is available error.

I always get the encoded urls when I copy'n'paste a link with a timestamp from LibreWolf into FreeTube.

Example
original url: https://www.youtube.com/watch?v=b7q2CS8HDHU:2454
encoded url: https://www.youtube.com/watch?v=b7q2CS8HDHU%3A2454

Image

Proposed Solution

FreeTube should check for a percent encoding and pass the url to a converter function before proceeding to load the video.

Alternatives Considered

Are there any other specials characters in YT urls than could be encoded? It's seems only the case of : → %3A is relevant here.
Instead of using a full-fledged function somewhere in the API (if there's one) a simple replace function could be enough.

Issue Labels

new feature

Additional Information

It seems there are only these 18 special characters that can be percent encoded:

! → %21
# → %23
$ → %24
& → %26
' → %27
( → %28
) → %29
* → %2A
+ → %2B
, → %2C
/ → %2F
: → %3A
; → %3B
= → %3D
? → %3F
@ → %40
[ → %5B
] → %5D

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To assign

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions