Peertube: Add ability to create friendly url for video links

Created on 4 May 2018  路  5Comments  路  Source: Chocobozzz/PeerTube

I created this issue after reading this french comment about peertube on framacolibri.

I think it would be create to add the ability to create friendly url for an uploaded.

Something similar as you could find on a CMS like wordpress.

Be able to create link like https://peertube.video/videos/watch/my-super-video

Of course, if an url is already taken, then the upload interface tell the user to choose another url.

  • What do you see instead?

Only link like https://peertube.video/videos/watch/10c1c52f-82f4-42b7-918b-93e3ad8760fc

Type

Most helpful comment

@DavidLibeau It's already the case (in develop for now) https://github.com/Chocobozzz/PeerTube/issues/584#issuecomment-391985410

All 5 comments

Might need some permission checking to prevent abuse, but this is a good idea. If there is a risk of conflict, simply require that the path is prefixed with the username.

We should add friendly url for accounts to (http://peertube.video/@username and/or http://peertube.video/accounts/username) !

@DavidLibeau It's already the case (in develop for now) https://github.com/Chocobozzz/PeerTube/issues/584#issuecomment-391985410

its really a very big URL for sharing a link from peertube.. and ugly.. can't we just create an automatic slug from the title of the video? or have a smaller identifier? this hash is huge and ugly

@Chocobozzz at least my MR/PR was not useless if this 'bad practice' will be fixed now ;)
Would it be an option to use (the first x characters of) a salted hash of that interal ID in the URL? We'd need a reverse lookup table for that, not pretty, but maybe required. Or, as @rigelk suggested:

But if you add another field for videos, a very short random string could do (but would require adding it to the API, which is a bit more work)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sschueller picture sschueller  路  3Comments

milleniumbug picture milleniumbug  路  3Comments

XenonFiber picture XenonFiber  路  3Comments

filmaidykai picture filmaidykai  路  3Comments

JohnXLivingston picture JohnXLivingston  路  3Comments