Page 1 of 1

[SOLVED] Why aren't my BDMV folder structures getting recognized?

Posted: 10 Dec 2018, 03:39
by hansooloo
I have a sense that I am missing something very basic, but I can't seem to get FileBot to recognize a Blu-ray disc structure that has the `./BDMV` directory in it.

The only thing of interest might be that I had moved this directory using FileBot in the past, but I have, since then, run a `filebot -clear-cache`.

Here is the FileBot command I am running:

Code: Select all

filebot --action test -rename /mnt/Movies/Star\ Wars\ \(1977\)/ --log ALL -non-strict -no-xattr --format @/usr/local/JDownloader/FormatMovie.txt --output /tmp
Error:

Code: Select all

Rename movies using [TheMovieDB]
No media files: [/mnt/Movies/Star Wars (1977)/Star Wars (1977).mkve]
Failure (°_°)

Code: Select all

FormatMovie.txt
Movies/{f.directory ? n.sortName('$2, $1')+' ('+y+') ['+vf+']' : n.sortName('$2, $1')+' ('+y+')'/n.sortName('$2, $1')+' ('+y+') ['+vf+']'}
The directory structure:

Code: Select all

/mnt/Movies/Star Wars (1977)/
/mnt/Movies/Star Wars (1977)/CERTIFICATE
/mnt/Movies/Star Wars (1977)/CERTIFICATE/BACKUP
/mnt/Movies/Star Wars (1977)/BDMV
/mnt/Movies/Star Wars (1977)/BDMV/JAR
/mnt/Movies/Star Wars (1977)/BDMV/JAR/88888
/mnt/Movies/Star Wars (1977)/BDMV/JAR/88888/rus
/mnt/Movies/Star Wars (1977)/BDMV/JAR/88888/ita
/mnt/Movies/Star Wars (1977)/BDMV/JAR/88888/eng
/mnt/Movies/Star Wars (1977)/BDMV/JAR/89020
/mnt/Movies/Star Wars (1977)/BDMV/JAR/89005
/mnt/Movies/Star Wars (1977)/BDMV/JAR/89000
/mnt/Movies/Star Wars (1977)/BDMV/JAR/99999
/mnt/Movies/Star Wars (1977)/BDMV/JAR/01001
/mnt/Movies/Star Wars (1977)/BDMV/JAR/88889
/mnt/Movies/Star Wars (1977)/BDMV/PLAYLIST
/mnt/Movies/Star Wars (1977)/BDMV/AUXDATA
/mnt/Movies/Star Wars (1977)/BDMV/CLIPINF
/mnt/Movies/Star Wars (1977)/BDMV/BACKUP
/mnt/Movies/Star Wars (1977)/BDMV/BACKUP/JAR
/mnt/Movies/Star Wars (1977)/BDMV/BACKUP/BDJO
/mnt/Movies/Star Wars (1977)/BDMV/BACKUP/PLAYLIST
/mnt/Movies/Star Wars (1977)/BDMV/BACKUP/CLIPINF
/mnt/Movies/Star Wars (1977)/BDMV/BDJO
/mnt/Movies/Star Wars (1977)/BDMV/STREAM
/mnt/Movies/Star Wars (1977)/BDMV/META
/mnt/Movies/Star Wars (1977)/BDMV/META/DL
/mnt/Movies/Star Wars (1977)/BDMV/META/ES
/mnt/Movies/Star Wars (1977)/BDMV/META/TN

Re: Why aren't my BDMV folder structures getting recognized?

Posted: 10 Dec 2018, 08:43
by rednoah
The command does not seem to correspond to the console log.

The log indicates that you're passing in this file or folder path, and since you probably don't have any *.mkve files, you're effectively telling FileBot to process non-existing files:

Code: Select all

/mnt/Movies/Star Wars (1977)/Star Wars (1977).mkve

:idea: The BDMV structure looks good though. Since the Star Wars (1977) folder contains a BDMV folder, the Star Wars (1977) folder should be interpreted as disk folder.

Re: Why aren't my BDMV folder structures getting recognized?

Posted: 10 Dec 2018, 14:21
by hansooloo
My bad ... that was an actual MKV file that I wanted to exclude from processing by changing the extension.

Re-ran with same results, with the `mkve` file removed from that directory structure.

I was hoping to see more logging dumped to the console with `--log ALL`, but maybe there is somewhere else I can look to see what the program is doing as it goes through the directory structure?

Code: Select all

plex@plex:~$ filebot --action test -rename /mnt/Movies/Star\ Wars\ \(1977\)/ --log ALL -non-strict -no-xattr --format @/usr/local/JDownloader/FormatMovie.txt --output /mnt
Failed to identify or process any files
Failure (°_°)

Re: Why aren't my BDMV folder structures getting recognized?

Posted: 10 Dec 2018, 18:14
by rednoah
Oh, never mind... Looks like disk folder support has never been implemented for -rename commands.

:arrow: You can use the amc script for this particular use case, as it will check for disk folder patterns when collecting input files and folders.


EDIT:

Replacing -rename with -script fn:renall should work as well, since the renall script will also consider disk folders when interpreting input arguments.

Re: Why aren't my BDMV folder structures getting recognized?

Posted: 11 Dec 2018, 02:23
by hansooloo
Much appreciated ... I recall this working in amc script as well ... but for simple rename actions, I will go the -script fn:renall route.