Filebot ID3 tags failing on jpg (media) files

Any questions? Need some help?
Post Reply
mattie432
Posts: 5
Joined: 04 Jul 2017, 00:47

Filebot ID3 tags failing on jpg (media) files

Post by mattie432 »

Hi,
I am attempting to use filebot to rename music albums using the ID3 tags.This seems to work with audio files (confirmed working with mp3, flac) but appears to try to search TheMovieDB for the artwork in the folder.

I am running this through deluge-filebot-tool which I used to have working fine (circa 6 months ago) but now fails. Ive tested this with movie files (with artwork in the folder) and these seem to be ignored (as I was expecting to happen here)

Code: Select all

root@PC:Eminem - Greatest Songs (2017) Mp3 (320kbps) [Hunter]/Eminem - Greatest Songs (2017)# filebot -rename * --db "ID3 Tags" --action test --format "{plex}" --conflict override --log all

Rename music using ID3
[TEST] From [Eminem - Greatest Songs (2017) Mp3 (320kbps) [Hunter]/Eminem - Greatest Songs (2017)/01 - Sing For The Moment.mp3] to [Eminem - Greatest Songs (2017) Mp3 (320kbps) [Hunter]/Eminem - Greatest Songs (2017)/Music/Eminem/Greatest Songs/01 - Sing For The Moment.mp3]
Processed 1 files
Rename movies using [TheMovieDB]
No media files: [Eminem - Greatest Songs (2017) Mp3 (320kbps) [Hunter]/Eminem - Greatest Songs (2017)/Cover.jpg]
Failure (°_°)

Code: Select all

FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.93
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-11-21 (r512)
Groovy: 2.4.10
JRE: OpenJDK Runtime Environment 1.8.0_151
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 26 MB Used Memory
OS: Linux (amd64)
Package: DEB
uname: Linux zion 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Thanks,
Matt
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot ID3 tags failing on jpg (media) files

Post by rednoah »

Unfortunately, there's no solution. Image files don't have ID3 tags that match those of nearby audio files, and FileBot doesn't have special logic to deal with companion artwork files when processing music files.
:idea: Please read the FAQ and How to Request Help.
mattie432
Posts: 5
Joined: 04 Jul 2017, 00:47

Re: Filebot ID3 tags failing on jpg (media) files

Post by mattie432 »

Interesting, then this must be something to do with my format string. I was previously able to obtain the below file/directory structure automatically:

Code: Select all

Music/
└── Linkin Park - One More Light/
        ├── 00-linkin_park-one_more_light-cd-flac-2017.m3u
        ├── 00-linkin_park-one_more_light-cd-flac-2017.nfo
        ├── 00-linkin_park-one_more_light-cd-flac-2017-proof.jpg
        ├── 00-linkin_park-one_more_light-cd-flac-2017.sfv
        ├── 01 - Linkin Park - Nobody Can Save Me.flac
        ├── 02 - Linkin Park - Good Goodbye (feat. Pusha T and Stormzy).flac
        ├── 03 - Linkin Park - Talking to Myself.flac
        ├── 04 - Linkin Park - Battle Symphony.flac
        ├── 05 - Linkin Park - Invisible.flac
        ├── 06 - Linkin Park - Heavy (feat. Kiiara).flac
        ├── 07 - Linkin Park - Sorry for Now.flac
        ├── 08 - Linkin Park - Halfway Right.flac
        ├── 09 - Linkin Park - One More Light.flac
        └── 10 - Linkin Park - Sharp Edges.flac

1 directories, 14 files
Do you have any suggestions how as I cannot work out how to get the non-audio files into the {artist} - {album} directory/
mattie432
Posts: 5
Joined: 04 Jul 2017, 00:47

Re: Filebot ID3 tags failing on jpg (media) files

Post by mattie432 »

Actually, the problem is that FileBot is trying to search for the jpg using TheMovieDB and subsequently fails.

Code: Select all

No media files: [Eminem - Greatest Songs (2017) Mp3 (320kbps) [Hunter]/Eminem - Greatest Songs (2017)/Cover.jpg]
However jpg files (and similar) are ignored for movie/tv show files as shown in the example below.

Code: Select all

root@PC:Birdman (2014) - [Alejandro González Iñárritu]$ ls -al
total 1932904
drwxrwx---  2 deluge deluge       4096 Sep  4 00:55 .
drwxrwx--- 36 deluge deluge       4096 Nov 26 21:06 ..
-rw-rw----  1 deluge deluge 1979046668 Sep  2 20:38 Birdman (2014).mp4
-rw-rw----  1 deluge deluge     117611 Sep  2 20:59 Birdman (2014).srt
-rw-rw----  1 deluge deluge     110514 Sep  2 20:38 WWW.YTS.RE.jpg

root@PC:Birdman (2014) - [Alejandro González Iñárritu]$ filebot -rename * --db "TMDB" --action test --format "{plex}" --conflict override --log all
Rename movies using [TheMovieDB]
Auto-detect movie from context: [Birdman (2014) - [Alejandro González Iñárritu]/Birdman (2014).mp4]
[TEST] From [Birdman (2014) - [Alejandro González Iñárritu]/Birdman (2014).mp4] to [Birdman (2014) - [Alejandro González Iñárritu]/Movies/Birdman (2014)/Birdman (2014).mp4]
[TEST] From [Birdman (2014) - [Alejandro González Iñárritu]/Birdman (2014).srt] to [Birdman (2014) - [Alejandro González Iñárritu]/Movies/Birdman (2014)/Birdman (2014).eng.srt]
Processed 2 files

root@PC:Birdman (2014) - [Alejandro González Iñárritu]$
mattie432
Posts: 5
Joined: 04 Jul 2017, 00:47

Re: Filebot ID3 tags failing on jpg (media) files

Post by mattie432 »

Can confirm a change in functionality, I reverted to filebot 4.7 and the original command (renaming of music files) now ignores the JPG as expected.

Code: Select all

root@PC:Eminem - Greatest Songs (2017) Mp3 (320kbps) [Hunter]/Eminem - Greatest Songs (2017)# sudo filebot -rename 01\ -\ Sing\ For\ The\ Moment.mp3 Cover.jpg --db "ID3 Tags" --action test --format "{plex}" --conflict override --log all
Rename music using ID3
[TEST] Rename [Eminem - Greatest Songs (2017) Mp3 (320kbps) [Hunter]/Eminem - Greatest Songs (2017)/01 - Sing For The Moment.mp3] to [Eminem - Greatest Songs (2017) Mp3 (320kbps) [Hunter]/Eminem - Greatest Songs (2017)/Music/Eminem/Greatest Songs/01. Eminem - Sing For The Moment.mp3]
Processed 1 files
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot ID3 tags failing on jpg (media) files

Post by rednoah »

Yes, but that doesn't change the fact that it can't process companion artwork files. In previous versions it silently ignored the files, and now you'll get a warning in the console output, but the result is the same.

If you want to process only mp3 files, then you can pass in only mp3 files by using *.mp3 instead of * on your command-line.

Companion files such as artwork or playlists are not supported, because they format can yield different values for individual files, so a nice folder structure is the result of each input file having the same album, but this isn't necessarily the case.

It's easy if you know the input structure and if you know the output structure, but FileBot can't know either, so guessing the correct way of processing companion files would be extremely difficult, and somewhat arbitrary, if values such as {album} are based on the next best music file.
:idea: Please read the FAQ and How to Request Help.
mattie432
Posts: 5
Joined: 04 Jul 2017, 00:47

Re: Filebot ID3 tags failing on jpg (media) files

Post by mattie432 »

Thanks for the reply.
Yes, but that doesn't change the fact that it can't process companion artwork files. In previous versions it silently ignored the files, and now you'll get a warning in the console output, but the result is the same.
Previously we would ignore, now we fail, it appears not to be a warning because the failure stops the whole operation when performing the rename on a directory. I am using deluge-filebot-tool which now fails to process due to this no longer being ignored.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot ID3 tags failing on jpg (media) files

Post by rednoah »

So I've tried to reproduce the logs in the OP myself, but it seems to work correctly for me.

Test Case: Process 1 music file and 1 image file using the latest version of FileBot:

Code: Select all

$ filebot -version
FileBot 4.7.14 (r5241) / Java(TM) SE Runtime Environment 1.8.0_151 / Mac OS X 10.13.2 (x86_64)
$ ls
Cover.jpg
Metal Gear Solid - The Best Is Yet To Come.mp3
Result: music files are processed, image files are ignored, process returns with success exit code:

Code: Select all

$ filebot -rename * --db ID3 --format {plex} --action TEST
Rename music using ID3
[TEST] from [Metal Gear Solid - The Best Is Yet To Come.mp3] to [Music/Aoife Ní Fhearraigh/Metal Gear Solid/18 - End Title The Best Is Yet to Come.mp3]
Processed 1 files
$ echo $?
0
:idea: Please read the FAQ and How to Request Help.
Post Reply