Docker-compose filebot-watcher

Support for Ubuntu and other Desktop Linux distributions
Post Reply
juanpitoca
Posts: 11
Joined: 28 Mar 2020, 14:08

Docker-compose filebot-watcher

Post by juanpitoca »

Hi team,

I am migrating filebot to Docker and I am having problems renaming tv shows.
My docker-compose is as follows (I will have one for series and one for movies).

Code: Select all

---
version: '3'
services:
  filebot:
    image: rednoah/filebot:watcher
    container_name: filebot-series
    volumes:
      - /mnt/DESCARGAS/completados/series:/watch
      - /mnt/plex_lvm/series:/destiny
      - ./data:/data
      - ./serial:/serial
    command: /watch --output /destiny -script fn:amc --def seriesFormat="{n}/Season {s}/{n} - {s00e00} - {t}" ut_label="Series" clean=y -no-xattr --log-file "/tmp/series.log" --action copy -non-strict --conflict skip --lang es --license /serial/serial.psm
    restart: unless-stopped

Code: Select all

[root@titan filebot]# docker-compose up
Recreating filebot-series ... done
Attaching to filebot-series
filebot-series | Setting up watches.
filebot-series | Watches established.
filebot-series | Waiting 600 seconds for changes to settle down...
filebot-series | /usr/bin/filebot-watcher: 11: [: /watch/Anatomia: unexpected operator
filebot-series | /watch/Anatomia de Grey 16x10 Quedate conmigo esta noche m720p AMZN WEB-DL DD2 0 H 264.mkv: video/x-matroska
filebot-series | Write [FileBot License P13468071 (Valid-Until: 2021-04-04)] to [/data/.filebot/license.txt]
filebot-series | FileBot License P13468071 (Valid-Until: 2021-04-04) has been activated successfully.
The name of file is:

Code: Select all

'Anatomia de Grey 16x10 Quedate conmigo esta noche m720p AMZN WEB-DL DD2 0 H 264.mkv'
This line:

Code: Select all

filebot-series | /usr/bin/filebot-watcher: 11: [: /watch/Anatomia: unexpected operator
It is as if in the name of the chapter you were taking it by separate strings and not as one, right?

Thank you very much for your help.

Greetings.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker-compose filebot-watcher

Post by rednoah »

1.
If you use filebot --license then FileBot will activate your license and then quit and so it will never ever do anything else:

Code: Select all

filebot-series | Write [FileBot License P13468071 (Valid-Until: 2021-04-04)] to [/data/.filebot/license.txt]
filebot-series | FileBot License P13468071 (Valid-Until: 2021-04-04) has been activated successfully.
:idea: https://github.com/filebot/filebot-dock ... my-license

:!: viewtopic.php?t=9594


2.

Code: Select all

/usr/bin/filebot-watcher: 11: [: /watch/Anatomia: unexpected operator
There seems to be an issue here, not sure what's going on:
https://github.com/filebot/filebot-dock ... atcher#L11
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker-compose filebot-watcher

Post by rednoah »

1.
If you use filebot --license then FileBot will activate your license and then quit and so it will never ever do anything else:

Code: Select all

filebot-series | Write [FileBot License P13468071 (Valid-Until: 2021-04-04)] to [/data/.filebot/license.txt]
filebot-series | FileBot License P13468071 (Valid-Until: 2021-04-04) has been activated successfully.
:idea: https://github.com/filebot/filebot-dock ... my-license :!: viewtopic.php?t=9594


2.

Code: Select all

/usr/bin/filebot-watcher: 11: [: /watch/Anatomia: unexpected operator
There seems to be an issue here, not sure what's going on:
https://github.com/filebot/filebot-dock ... atcher#L11


EDIT:

Maybe fixed: https://github.com/filebot/filebot-dock ... cd910272c5
:idea: Please read the FAQ and How to Request Help.
juanpitoca
Posts: 11
Joined: 28 Mar 2020, 14:08

Re: Docker-compose filebot-watcher

Post by juanpitoca »

rednoah wrote: 28 Mar 2020, 15:30 2.

Code: Select all

/usr/bin/filebot-watcher: 11: [: /watch/Anatomia: unexpected operator
There seems to be an issue here, not sure what's going on:
https://github.com/filebot/filebot-dock ... atcher#L11
Thanks a lot rednoah, I follow near this fix.
How can I know this issue will be fixed?

PD: Filebot cannot work with this error
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker-compose filebot-watcher

Post by rednoah »

Update to the latest build via docker pull and then play with it:
https://github.com/filebot/filebot-dock ... ot-watcher

:arrow: Use docker. If you and when you are satisfied with the docker after testing a few use cases, then you can move on to docker-compose.
:idea: Please read the FAQ and How to Request Help.
juanpitoca
Posts: 11
Joined: 28 Mar 2020, 14:08

Re: Docker-compose filebot-watcher

Post by juanpitoca »

rednoah wrote: 28 Mar 2020, 16:35 :arrow: Use docker. If you and when you are satisfied with the docker after testing a few use cases, then you can move on to docker-compose.
I dont know what i am doing bad rednoah. I invoke docker like this:
  • /mnt/DESCARGAS/completados/series -> Input files
  • /mnt/plex_lvm/series -> Destiny folder

Code: Select all

docker run --rm -it -v /mnt/DESCARGAS/completados/series:/watch -v /mnt/plex_lvm/series:/destiny -v dat/data rednoah/filebot:watcher /watch --output /destiny -script fn:amc --def seriesFormat="{n}/Season {s}/{n} - {s00e00} - {t}" ut_label="Series" clean=y -no-xattr --log-file "/tmp/series.log" --action copy -non-strict --conflict skip --lang es
Setting up watches.
Watches established.

Waiting 600 seconds for changes to settle down...
Then I move a video to test, and I can see in the log the next info:

Code: Select all

/usr/bin/filebot-watcher: 11: [: /watch/Anatomia: unexpected operator
/watch/Anatomia de Grey 16x10 Quedate conmigo esta noche m720p AMZN WEB-DL DD2 0 H 264.mkv: video/x-matroska
Run script [fn:amc] at [Sat Mar 28 17:59:50 GMT 2020]
Parameter: excludeList = .excludes
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: seriesFormat = {n}/Season {s}/{n} - {s00e00} - {t}
Parameter: ut_label = Series
Parameter: clean = y
Argument[0]: /watch
Use excludes: /destiny/.excludes (1)
No files selected for processing
Done ¯\_(ツ)_/¯
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker-compose filebot-watcher

Post by rednoah »

1.

Code: Select all

/usr/bin/filebot-watcher: 11: [: /watch/Anatomia: unexpected operator
Strange. This error is still there. Looks like your docker didn't updated. Try docker pull again.

:idea: https://hub.docker.com/r/rednoah/filebot/builds


2.
Does /watch contain any files that aren't yet on the exclude list?

Code: Select all

Argument[0]: /watch
Use excludes: /destiny/.excludes (1)
:idea: If you're repeatedly testing with the same file name, then it will only work the first time around, then added to the exclude list, and subsequently ignored.
:idea: Please read the FAQ and How to Request Help.
juanpitoca
Posts: 11
Joined: 28 Mar 2020, 14:08

Re: Docker-compose filebot-watcher

Post by juanpitoca »

rednoah wrote: 28 Mar 2020, 19:35 1.

Code: Select all

/usr/bin/filebot-watcher: 11: [: /watch/Anatomia: unexpected operator
Strange. This error is still there. Looks like your docker didn't updated. Try docker pull again.

:idea: https://hub.docker.com/r/rednoah/filebot/builds
I confirm that I have updated the image.

Code: Select all

rednoah/filebot               watcher             836cbb3ff29a        22 hours ago        643MB
But the problem continue. I had check with other names (files) but it always appears.

Code: Select all

filebot-peliculas    | /usr/bin/filebot-watcher: 11: /usr/bin/filebot-watcher: [[: not found
filebot-peliculas    | /watch/Adios (2019) [BDrip 1080p x264 DTS-HD MA 5.1 Subs][GrupoHDS].mkv: video/x-matroska
filebot-peliculas    | Run script [fn:amc] at [Sun Mar 29 14:26:26 GMT 2020]
....
another

Code: Select all

filebot-peliculas    | /usr/bin/filebot-watcher: 11: /usr/bin/filebot-watcher: [[: not found
filebot-peliculas    | /watch/Vengadores - Endgame (2019) [UHDRip 1080p HDR x265 Dual DTS-HD MA 7.1 Subs][GrupoHDS][AudioEditado dabaka].mkv: video/x-matroska
...
one more

Code: Select all

filebot-peliculas    | /usr/bin/filebot-watcher: 11: /usr/bin/filebot-watcher: [[: not found
filebot-peliculas    | /watch/Puñales por la espalda (2019) [UHDRip 1080p HDR x265 Dual DTS-HD MA 5.1 TrueHD Atmos 7.1 Subs][GrupoHDS].mkv: video/x-matroska
rednoah wrote: 28 Mar 2020, 19:35 2.
Does /watch contain any files that aren't yet on the exclude list?

Code: Select all

Argument[0]: /watch
Use excludes: /destiny/.excludes (1)
:idea: If you're repeatedly testing with the same file name, then it will only work the first time around, then added to the exclude list, and subsequently ignored.
Yeah, rednoah. You are right, this was de problem. Delete de file in /destiny/.excludes solved this.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Docker-compose filebot-watcher

Post by rednoah »

/usr/bin/filebot-watcher: [[: not found should be fixed with the latest revision. Apparently /bin/sh isn't bash so [ and [[ don't work inside the container. I've updated to script to require bash to make things behave as expected.
:idea: Please read the FAQ and How to Request Help.
juanpitoca
Posts: 11
Joined: 28 Mar 2020, 14:08

Re: Docker-compose filebot-watcher

Post by juanpitoca »

rednoah wrote: 29 Mar 2020, 15:44 /usr/bin/filebot-watcher: [[: not found should be fixed with the latest revision. Apparently /bin/sh isn't bash so [ and [[ don't work inside the container. I've updated to script to require bash to make things behave as expected.
All right rednoah. Working perfectly.

Solved, thank you for the support
Post Reply