Supprimer l'espace du nom

Support for Windows users
Post Reply
Paolo57120
Posts: 19
Joined: 20 Sep 2023, 13:18

Supprimer l'espace du nom

Post by Paolo57120 »

Bonjour quand je renomme une série et qu'il y a un "-" tirait il me met un espace au nom du dossier série TV, comment supprimer ça automatiquement, merci de votre aide.

ci-joint example :

Image

Image
User avatar
rednoah
The Source
Posts: 24673
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Supprimer l'espace du nom

Post by rednoah »

:?: What is your custom format? You'll want to modify your custom format to generate valid file paths without : colon characters. See [SNIPPET] Replace : colon with - dash for details:

Format: Select all

{ n.colon(' - ') }


:idea: The {plex.id} format takes care of these things implicitly and generates the following kind of file path:

Format: Select all

{ ~plex.id }

Code: Select all

X-Files - Aux frontières du réel {tvdb-77398}/Season 01/X-Files - Aux frontières du réel - S01E01 - Nous ne sommes pas seuls



EDIT:

FileBot r11099 and higher will now also normalize any sequence of (unicode) space characters to a single (ascii) space character when relying on the Validate button to strip invalid characters.
:idea: Please read the FAQ and How to Request Help.
Paolo57120
Posts: 19
Joined: 20 Sep 2023, 13:18

Re: Supprimer l'espace du nom

Post by Paolo57120 »

Merci bien, je vais essayer de le faire
User avatar
rednoah
The Source
Posts: 24673
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Supprimer l'espace du nom

Post by rednoah »

Paolo57120 wrote: 12 Sep 2026, 10:48 Merci bien, je vais essayer de le faire
Make sure to share your custom format to help out the next guy. ;)
:idea: Please read the FAQ and How to Request Help.
Paolo57120
Posts: 19
Joined: 20 Sep 2023, 13:18

Re: Supprimer l'espace du nom

Post by Paolo57120 »

Je n'arrive pas a corriger l'espace en trop après la validation
voilà ce que j'utilise comme format :

Format: Select all

Séries TV/{ ny.upperInitial() } (tvdb-{ tvdbid })/{ 'Saison ' + s00 }/{ plex.name.upperInitial() } ({airdate})

Format: Select all

{ drive }/Films/{ n.colon(' - ').upperInitial() } ({y}){' CD'+pi}{subt} (tmdb-{movie.id})
User avatar
rednoah
The Source
Posts: 24673
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Supprimer l'espace du nom

Post by rednoah »

:idea: You can take care of : colon characters in your episode format like so:

Format: Select all

Séries TV/{ ny.colon(' - ').upperInitial() } (tvdb-{ tvdbid })/{ 'Saison ' + s00 }/{ plex.name.upperInitial() } ({airdate})

:idea: Your movie format already takes care of : colon characters so no changes here:

Format: Select all

{ drive }/Films/{ n.colon(' - ').upperInitial() } ({y}){' CD'+pi}{subt} (tmdb-{movie.id})


:idea: How does it work? The .colon(' - ') bit takes care of replacing : colon characters in the movie file name / series folder name. Since you're using {plex.name} for the episode file name, the : colon characters are implicitly taken care of there.
:idea: Please read the FAQ and How to Request Help.
Paolo57120
Posts: 19
Joined: 20 Sep 2023, 13:18

Re: Supprimer l'espace du nom

Post by Paolo57120 »

Merci beaucoup ça fonctionne très bien ;-) Plex reconnait bien le format, par contre je n'ai pas modifier le format "Film"
Post Reply