how can i discard accents?

Support for Ubuntu and other Desktop Linux distributions
Post Reply
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

how can i discard accents?

Post by manias21 »

[DUPLICATE] from [/STORAGE/SERIES/8 TAGE/Temporada 1/8 TAGE 1x01.mkv] to [/STORAGE/SERIES2/SERIES/8 Días/Temporada1/8 Días - 1x01 - Pánico.mkv]

/STORAGE/SERIES2/SERIES/8 Días/Temporada1/8 Días - 1x01 - Pánico.mkv

how can i discard accents?

filebot -script 'fn:amc' /STORAGE/SERIES/ --output /STORAGE/SERIES2/ --action duplicate -non-strict --order Airdate --conflict fail --lang es --format "SERIES/{n}/Temporada{s}/{n} - {sxe} - {t}" --def 'ut_label=TV' 'music=y' 'unsorted=y' 'skipExtract=y' 'excludeList=.excludes' --apply refresh --log info --log-file '/STORAGE/SERIES2/filebot.log'
kim
Power User
Posts: 1049
Joined: 15 May 2014, 16:17

Re: how can i discard accents?

Post by kim »

Code: Select all

{'/STORAGE/SERIES2/SERIES/8 Días/Temporada1/8 Días - 1x01 - Pánico.mkv'.transliterate('Latin-ASCII') }
output: /STORAGE/SERIES2/SERIES/8 DA-as/Temporada1/8 DA-as - 1x01 - PA¡nico.mkv

Code: Select all

{'/STORAGE/SERIES2/SERIES/8 Días/Temporada1/8 Días - 1x01 - Pánico.mkv'.ascii() }
output: /STORAGE/SERIES2/SERIES/8 DA-as/Temporada1/8 DA-as - 1x01 - PA nico.mkv

Code: Select all

{n.ascii()}
https://www.filebot.net/naming.html
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

Re: how can i discard accents?

Post by manias21 »

Mr. Kim, thanks for your reply,
but the truth is that I am very basic in this, I have read several times the post it mentions, but the changes it mentions do not apply.

Can you help me a little more and tell me how it is applied?
the characters and the lowercase I am also trying and I cannot.
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

Re: how can i discard accents?

Post by manias21 »

edit.
Last edited by manias21 on 25 Mar 2020, 03:11, edited 1 time in total.
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

Re: how can i discard accents?

Post by manias21 »

mmmmm.....? fail... help..

filebot -script 'fn:amc' /STORAGE/SERIES-TMP/ --output /STORAGE/ --action duplicate -non-strict --order Airdate --conflict fail --lang es --format "SERIES/{n}/Temporada{s}/{n.replaceTrailingBrackets()} - {s+'x'}{e.pad(2)} - {t.removeAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'")" --def 'ut_label=TV' 'music=y' 'unsorted=y' 'skipExtract=y' 'excludeList=.excludes' --apply refresh --log info --log-file '/STORAGE/SERIES-TMP/filebot.log'
kim
Power User
Posts: 1049
Joined: 15 May 2014, 16:17

Re: how can i discard accents?

Post by kim »

Something like this:

Code: Select all

-format "SERIES/{n.ascii()}/Temporada{s}/{n.replaceTrailingBrackets().ascii()} - {s+'x'}{e.pad(2)} - {t.removeAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, "'").ascii()"
(I did not test it)
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how can i discard accents?

Post by rednoah »

@manias21

Step 1: Prototype your format in the GUI.

Image

Step 2: Do not skimp on Step 1. If and when you have thoroughly tested your custom format in the GUI, then and only then move forward to integrating your custom format into the CLI.

Step 3: Integrate your custom format into your filebot command.


:idea: Use the @file syntax for reading command-line arguments from external text files so you don't have to worry about the intricacies of Cmdline and Argument Passing.
:idea: Please read the FAQ and How to Request Help.
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

Re: how can i discard accents?

Post by manias21 »

--format /SERIE/{n}/Temporada{s}/{n} - {sxe} - {t}

I have continued the mentioned steps.
attached image...
But surely I have not explained myself well,
when I perform tests ... the names of some series and the resulting information is managed with tildes and some characters, how can I define that it does not happen.
  In which parameter can characters and accents be avoided?

Image
http://img4.imagetitan.com/img.php?image=21_test322.jpg


without using a sh ..

Code: Select all

FILES=$1
convmv --notest -f latin1 -t utf8 -r $FILES > /dev/null 2>&1
convmv --notest -f iso8859-1 -t utf8 -r $FILES > /dev/null 2>&1

find $FILES -type f -name '*.mkv' -exec sh -c '
  for f do
    echo Processing "$f"
    rename "s/à/a/g" "$f"
    rename "s/á/a/g" "$f"
    rename "s/è/e/g" "$f"
    rename "s/é/e/g" "$f"
    rename "s/ì/i/g" "$f"
    rename "s/í/i/g" "$f"
    rename "s/ò/o/g" "$f"
    rename "s/ó/o/g" "$f"
    rename "s/ù/u/g" "$f"
    rename "s/ú/u/g" "$f"
    rename "s/ü/u/g" "$f"
    rename "s/ñ/n/g" "$f"
    rename "s/À/A/g" "$f"
    rename "s/Á/A/g" "$f"
    rename "s/È/E/g" "$f"
    rename "s/É/E/g" "$f"
    rename "s/Ì/I/g" "$f"
    rename "s/Í/I/g" "$f"
    rename "s/Ò/O/g" "$f"
    rename "s/Ó/O/g" "$f"
    rename "s/Ù/U/g" "$f"
    rename "s/Ù/U/g" "$f"
    rename "s/Ü/U/g" "$f"
    rename "s/Ñ/N/g" "$f"
    rename "s/Ç/C/g" "$f"
    rename "s/ç/c/g" "$f"
    rename "s/[@\{\}\¿\?\€]//g" "$f"
    rename "s/(    )/ /g" "$f"
    rename "s/(   )/ /g" "$f"
    rename "s/(  )/ /g" "$f"
  done
' sh {} +
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

Re: how can i discard accents?

Post by manias21 »

With help everything is accomplished. (salva)

Code: Select all

#!/bin/bash

CONFLICT="skip"
EXCLUDE_FILE="/STORAGE/.excludes"
OUT_FILES="/STORAGE/TMP/"
OUT_FILES2="/STORAGE/TMP/"
R0=".removeAll(/[¡!?¿#,@'{}.]/)"
R1=".replaceAll(/[á]/,'a').replaceAll(/[é]/,'e').replaceAll(/[í]/,'i').replaceAll(/[ó]/,'o').replaceAll(/[ú]/,'u').replaceAll(/[ü]/,'u')"
R2=".replaceAll(/[Á]/,'A').replaceAll(/[É]/,'E').replaceAll(/[Í]/,'I').replaceAll(/[Ó]/,'O').replaceAll(/[Ú]/,'U').replaceAll(/[Ü]/,'U')"
R3=".replaceAll(/[à]/,'a').replaceAll(/[è]/,'e').replaceAll(/[ì]/,'i').replaceAll(/[ò]/,'o').replaceAll(/[ù]/,'u').replaceAll(/[û]/,'u')"
R4=".replaceAll(/[À]/,'A').replaceAll(/[È]/,'E').replaceAll(/[Ì]/,'I').replaceAll(/[Ò]/,'O').replaceAll(/[Ù]/,'U').replaceAll(/[Û]/,'U')"
R5=".replaceAll(/[Ñ]/,'N').replaceAll(/[ñ]/,'n').replaceAll(/[&]/,'y')"
RPL=$R0$R1$R2$R3$R4$R5

PARAMS="-non-strict --order Airdate --conflict $CONFLICT --lang es --encoding utf8 --apply refresh --log fine --log-file 'filebot.log' --def skipExtract=y excludeList=$EXCLUDE_FILE"

filebot -script "fn:amc" "$1" -no-xattr --output $OUT_FILES2 $PARAMS --format "$OUT_fILES/{n$RPL}/Temporada {s}/{n$RPL} - {sxe} - {t$RPL}" --action duplicate

#--action TEST
#--action move
#--action duplicate
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how can i discard accents?

Post by rednoah »

Use {plex} or {kodi} because those generally take care of normalizing and validating the file path:

Code: Select all

{plex}
viewtopic.php?t=4116


Alternatively, the String.ascii() function can be used to strip and normalize non-ASCII characters:

Code: Select all

{n.ascii()}
https://www.filebot.net/naming.html
:idea: Please read the FAQ and How to Request Help.
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

Re: how can i discard accents?

Post by manias21 »

Help.
I fail.
synology and filebot.node i can't apply this in gui.
how to do these jobs with the synology filebot.node program.

Code: Select all

#!/bin/bash

CONFLICT="skip"
EXCLUDE_FILE="/volume1/scripts/.excludes"
OUT_FILES="/volume2/SERIES3/"
OUT_FILES2="/volume2/SERIES3/"
R0=".removeAll(/[¡!?¿#,@'{}.]/)"
R1=".replaceAll(/[á]/,'a').replaceAll(/[é]/,'e').replaceAll(/[í]/,'i').replaceAll(/[ó]/,'o').replaceAll(/[ú]/,'u').replaceAll(/[ü]/,'u')"
R2=".replaceAll(/[Á]/,'A').replaceAll(/[É]/,'E').replaceAll(/[Í]/,'I').replaceAll(/[Ó]/,'O').replaceAll(/[Ú]/,'U').replaceAll(/[Ü]/,'U')"
R3=".replaceAll(/[à]/,'a').replaceAll(/[è]/,'e').replaceAll(/[ì]/,'i').replaceAll(/[ò]/,'o').replaceAll(/[ù]/,'u').replaceAll(/[û]/,'u')"
R4=".replaceAll(/[À]/,'A').replaceAll(/[È]/,'E').replaceAll(/[Ì]/,'I').replaceAll(/[Ò]/,'O').replaceAll(/[Ù]/,'U').replaceAll(/[Û]/,'U')"
R5=".replaceAll(/[Ñ]/,'N').replaceAll(/[ñ]/,'n').replaceAll(/[&]/,'y')"
RPL=$R0$R1$R2$R3$R4$R5

PARAMS="-non-strict --order Airdate --conflict $CONFLICT --lang es --encoding utf8 --apply refresh --log fine --log-file 'filebot.log' --def skipExtract=y excludeList=$EXCLUDE_FILE"

filebot -script "fn:amc" "$1" -no-xattr --output $OUT_FILES2 $PARAMS --format "$OUT_FILES/{n$RPL}/Temporada {s}/{n$RPL} - {sxe} - {t$RPL}" --log info --log-file '/volume1/scripts/filebot.log' --action duplicate

#--action TEST
#--action move
#--action duplicate
#--action symlink
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how can i discard accents?

Post by rednoah »

1.
Your shell script uses bash code to build a format expression, and then passes the result into filebot via the --format option. Take that result, copy & paste it into the Format Editor GUI, just for testing to make sure everything works as expected, and once you have a format expression you're happy with, then you can paste it into the FileBot Node WebUI.


2.
That being said, your format is unmaintainable. Throw it away and use this instead:

Code: Select all

{kodi.path.ascii()}
:idea: Please read the FAQ and How to Request Help.
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

Re: how can i discard accents?

Post by manias21 »

I have managed as you comment, but the result doesn't seem to work.
What have I done wrong?

Code: Select all

filebot -script 'fn:amc' /volume2/SERIES/Revolution --output /volume2/SERIES3/ --action duplicate --order AbsoluteAirdate --conflict override --lang es --def 'ut_label=TV' 'music=y' 'unsorted=y' 'artwork=y' 'clean=y' 'ignore=¡!?¿#,@'\' 'minLengthMS=0' 'minFileSize=0' 'seriesFormat={kodi.path.ascii()}' 'excludeList=/volume1/scripts/.excludes' --apply refresh --log info --log-file '/usr/local/filebot-node/data/filebot.log'
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how can i discard accents?

Post by rednoah »

What's wrong? What does the log say?
:idea: Please read the FAQ and How to Request Help.
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

Re: how can i discard accents?

Post by manias21 »

Code: Select all

filebot -script 'fn:amc' /volume2/SERIES/Revolution --output /volume2/SERIES3/ --action duplicate --order AbsoluteAirdate --conflict override --lang es --def 'ut_label=TV' 'music=y' 'unsorted=y' 'artwork=y' 'clean=y' 'ignore=¡!?¿#,@'\' 'minLengthMS=0' 'minFileSize=0' 'seriesFormat={kodi.path.ascii()}' 'excludeList=/volume1/scripts/.excludes' --apply refresh --log info --log-file '/usr/local/filebot-node/data/filebot.log'

------------------------------------------

Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x01.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x02.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x03.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x04.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x05.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x06.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x07.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x08.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x09.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x10.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x11.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x12.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x13.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x14.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x15.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x16.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x17.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x18.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x19.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x20.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution 2x01.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution 2x02.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution 2x03.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution 2x04.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution 2x05.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution 2x06.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution 2x07.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution 2x08.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution 2x09.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E10.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E11.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E12.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E13.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E14.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E15.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E16.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E17.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E18.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E19.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E20.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E21.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
Multiple Options: /volume2/SERIES/Revolution/Season 2/Revolution S02E22 Final.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
CmdlineException: Failed to identify or process any files
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x01.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x01.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x02.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x02.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x03.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x03.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x04.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x04.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x05.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x05.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x06.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x06.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x07.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x07.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x08.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x08.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x09.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x09.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x10.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x10.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x11.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x11.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x12.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x12.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x13.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x13.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x14.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x14.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x15.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x15.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x16.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x16.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x17.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x17.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x18.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x18.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x19.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x19.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x20.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 1/Revolution 1x20.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x01.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution 2x01.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x02.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution 2x02.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x03.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution 2x03.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x04.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution 2x04.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x05.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution 2x05.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x06.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution 2x06.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x07.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution 2x07.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x08.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution 2x08.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x09.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution 2x09.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E10.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E10.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E11.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E11.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E12.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E12.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E13.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E13.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E14.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E14.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E15.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E15.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E16.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E16.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E17.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E17.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E18.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E18.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E19.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E19.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E20.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E20.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E21.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E21.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E22 Final.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E22 Final.mkv]

------------------------------------------

[Process completed]
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

Re: how can i discard accents?

Post by manias21 »

Code: Select all

[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x09.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution 2x09.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E10.mkv] to [/volume2/SERIES3/Unsorted/Revolution/Season 2/Revolution S02E10.mkv]
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how can i discard accents?

Post by rednoah »

Code: Select all

Multiple Options: /volume2/SERIES/Revolution/Season 1/Revolution 1x01.mkv: [Alienators: Evolution Continues, Revolution, The Revolution, Evolución, Revolution Z, The Nano Revolution, The Next Revolution, The Irish Revolution, Sex: The Revolution]
:arrow: You must enable -non-strict if you want to process these files.


:idea: The default strict behaviour works correctly in that it doesn't process these files, since it can't guarantee the correct match when there's lots of similarly named TV Shows.
:idea: Please read the FAQ and How to Request Help.
manias21
Posts: 11
Joined: 22 Mar 2020, 21:32

Re: how can i discard accents?

Post by manias21 »

Code: Select all

filebot -script 'fn:amc' /volume2/SERIES/Revolution --output /volume2/SERIES3/ --action duplicate -non-strict --order AbsoluteAirdate --conflict override --lang es --def 'ut_label=TV' 'music=y' 'unsorted=y' 'artwork=y' 'clean=y' 'ignore=¡!?¿#,@'\' 'minLengthMS=0' 'minFileSize=0' 'seriesFormat={kodi.path.ascii()}' 'excludeList=/volume1/scripts/.excludes' --apply refresh --log info --log-file '/usr/local/filebot-node/data/filebot.log'

------------------------------------------

[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x01.mkv] to [/volume2/SERIES3/TV Shows/The Nano Revolution/Season 01/The Nano Revolution - 1x01 - More Than Human.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x02.mkv] to [/volume2/SERIES3/TV Shows/The Nano Revolution/Season 01/The Nano Revolution - 1x02 - Will Nano Save the Planet.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x03.mkv] to [/volume2/SERIES3/TV Shows/The Nano Revolution/Season 01/The Nano Revolution - 1x03 - Welcome to Nano City.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x04.mkv] to [/volume2/SERIES3/TV Shows/Alienators - Evolution Continues/Season 01/Alienators - Evolution Continues - 1x26 - End Game.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x05.mkv] to [/volume2/SERIES3/TV Shows/Alienators - Evolution Continues/Season 01/Alienators - Evolution Continues - 1x25 - Meltdown.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x06.mkv] to [/volume2/SERIES3/TV Shows/Alienators - Evolution Continues/Season 01/Alienators - Evolution Continues - 1x24 - Fire and Ice.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x07.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20120917 - Revolution Revealed 01.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x08.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121008 - Revolution Revealed 04.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x09.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20120924 - Revolution Revealed 02.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x10.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121029 - Revolution Revealed 06.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x11.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121105 - Revolution Revealed 07.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x12.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121001 - Revolution Revealed 03.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x13.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130408 - La misma cancion.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x14.mkv] to [/volume2/SERIES3/TV Shows/The Revolution/Season 01/The Revolution - 1x14 - Extras - Behind The Scenes Featurette.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x15.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130513 - Revolution Revealed 17.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x16.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121112 - Revolution Revealed 08.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x17.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130527 - Revolution Revealed 19.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x18.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130603 - Revolution Revealed 20.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x19.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121119 - Revolution Revealed 09.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 1/Revolution 1x20.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130520 - Revolution Revealed 18.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x01.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20120917 - Piloto.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x02.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20120924 - Calor encadenado.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x03.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121001 - Sin cuartel.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x04.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121008 - La plaga de perros.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x05.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121015 - El tren del alma.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x06.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121029 - Sexo y drogas.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x07.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121105 - La cruzada de los ninos.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x08.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121112 - Lazos que atan.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution 2x09.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121119 - Kashmir.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E10.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20121126 - Nadie tiene la culpa.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E11.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130325 - La defensa.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E12.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130401 - Fantasmas.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E13.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20140312 - Avenida Exposicion.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E14.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130422 - La noche que las luces se apagaron en Georgia.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E15.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130429 - Hogar.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E16.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130506 - El barco del amor.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E17.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130513 - El dia mas largo.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E18.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130520 - Pista.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E19.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130527 - Hijos de los hombres.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E20.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130603 - La torre oscura.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E21.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20130925 - Nacido en USA.mkv]
[DUPLICATE] from [/volume2/SERIES/Revolution/Season 2/Revolution S02E22 Final.mkv] to [/volume2/SERIES3/TV Shows/Revolution/Revolution - 20131002 - Habra sangre.mkv]

------------------------------------------

[Process completed]

It doe not work...

it manages series that have nothing to do with files and name distribution the same.
TV Shows / Revolution
  =
TV Shows / The Nano Revolution
TV Shows / Alienators - Evolution Continues
TV Shows / Revolution / Revolution

when it's all the same TV Shows
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: how can i discard accents?

Post by rednoah »

Looks like strict mode meant well in avoiding those files. Best to deal with those files manually.


:idea: Read FAQ #2 for various alternative approach of dealing with tricky files.


:!: Note that this thread is completely off-topic now. Please create a new topic relevant to the problem at hand.


EDIT:

Works out of the box for me though:

Code: Select all

$ filebot -rename *.mkv -non-strict --action TEST --log INFO
[TEST] from [Revolution 1x01.mkv] to [Revolution - 1x01 - Pilot.mkv]
[TEST] from [Revolution 1x04.mkv] to [Revolution - 1x04 - The Plague Dogs.mkv]
:arrow: Your --order AbsoluteAirdate (match by DD-MM-YYYY episode airdate, and not SxE numbers) customization is the most likely culprit. Use --order Airdate (default; match by SxE numbers) instead.
:idea: Please read the FAQ and How to Request Help.
devster
Posts: 388
Joined: 06 Jun 2017, 22:56

Re: how can i discard accents?

Post by devster »

For posterity, I believe you can use the Java unicode block pattern match to remove accents.

Code: Select all

R0=".removeAll(/\p{InLatin-1Supplement}/)
Docs here https://docs.oracle.com/javase/6/docs/a ... n.html#ubc and https://www.compart.com/en/unicode/block/U+0080 the block reference for Latin-1 Supplement.
I only work in black and sometimes very, very dark grey. (Batman)
Post Reply