Skip to content

slugify() function of PyTrakt seems to not rename exactly as Trakt does #165

@typhoe

Description

@typhoe

Hi,

this issue is a follow up from an issue I have on PlexTraktSync available here: Taxel/PlexTraktSync#615

Two examples of shows that are not slugified correctly:
https://trakt.tv/shows/re-zero-starting-life-in-another-world
https://trakt.tv/shows/so-i-m-a-spider-so-what

I will quote the collaborator from PlexTraktSync:

On RE-Zero:

That's a very specific issue because of this show's name using - symbol : Re:ZERO -Starting Life in Another World-
The trailing dash has been removed in Trakt slug version : re-zero-starting-life-in-another-world whereas the pytrakt module does not remove it with its own slugify() function : re-zero-starting-life-in-another-world- so it doesn't match and trakt API returns 404 error.

On So-I'm-a-spider:

it's the i'm slugified into im by PyTrakt module and into i-m in trakt database.
It's clearly a problem in slugify() function of PyTrakt module. It does not slugify exactly as official trakt.tv does.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions