FileBot matches the wrong TMDB ID from Emby generated NFO files

All your suggestions, requests and ideas for future development
Post Reply
loracweb
Posts: 9
Joined: 23 Jul 2023, 01:16

FileBot matches the wrong TMDB ID from Emby generated NFO files

Post by loracweb »

I have a new issue.

For movies with existing NFO files filebot seems to be looking for the movie on TMDB based on the first info it finds, which in this case is the actors name.

Code: Select all

Rename movies using [TheMovieDB]
Failed to retrieve localized movie information: TheMovieDB::1708936: Invalid Lookup: TMDB ID not found [movie/1708936]
Auto-detect movie from context [D:\Media\Movies\QXR\Topside (2022) (1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole)\Topside (2022) (1080p BluRay x265 10bit Tigole).mkv]
D:\Media\Movies\QXR\Topside (2022) (1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole)\Topside (2022) (1080p BluRay x265 10bit Tigole).nfo: Invalid Lookup: TMDB ID not found [movie/1708936]
[TEST] from [D:\Media\Movies\QXR\Topside (2022) (1080p BluRay x265 HEVC 10bit AAC 5.1 Tigole)\Topside (2022) (1080p BluRay x265 10bit Tigole).mkv] to [D:\Media\Movies\Sorted\Topside (2022) [tmdbid-665899] {imdb-tt10506876} (BluRay 1080p x265M HEVC 10bit AAC 5.1 [eng] Tigole) [7.0]\Topside (2022) [tmdbid-665899] {imdb-tt10506876} (BluRay 1080p x265M HEVC 10bit AAC 5.1 [eng] Tigole) [7.0].mkv]
Processed 1 file
Full nfo is shown below

Code: Select all

 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
<movie>
  <plot><![CDATA[Deep in the underbelly of New York City, a five year-old girl and her mother live among a community that has claimed the abandoned subway tunnels as their home. After a sudden police-mandated eviction, the pair are forced to flee aboveground into a brutal winter night. Determined to return home, they fight to find shelter as their world is thrown into chaos.]]></plot>
  <outline />
  <lockdata>false</lockdata>
  <dateadded>2022-11-15 11:48:45</dateadded>
  <title>Topside</title>
  <originaltitle>Topside</originaltitle>
  <actor>
    <name>Celine Held</name>
    <role>Nikki</role>
    <type>Actor</type>
    <tmdbid>1708936</tmdbid>
    <tvdbid>8433492</tvdbid>
    <tvmazeid>322276</tvmazeid>
  </actor>
  <actor>
    <name>Zhalia Farmer</name>
    <role>Little</role>
    <type>Actor</type>
    <tmdbid>2943786</tmdbid>
  </actor>
  <actor>
    <name>FatLip</name>
    <role>John</role>
    <type>Actor</type>
    <tmdbid>1314108</tmdbid>
    <tvdbid>8265594</tvdbid>
  </actor>
  <actor>
    <name>Jared Abrahamson</name>
    <role>Les</role>
    <type>Actor</type>
    <tmdbid>1011019</tmdbid>
    <tvdbid>503560</tvdbid>
    <tvmazeid>38415</tvmazeid>
  </actor>
  <actor>
    <name>Gino Vento</name>
    <role>Mac</role>
    <type>Actor</type>
    <tmdbid>1910764</tmdbid>
    <tvdbid>503918</tvdbid>
    <tvmazeid>34397</tvmazeid>
  </actor>
  <actor>
    <name>Tonye Patano</name>
    <role>Violet</role>
    <type>Actor</type>
    <tmdbid>1214060</tmdbid>
    <tvdbid>285517</tvdbid>
    <tvmazeid>18606</tvmazeid>
  </actor>
  <actor>
    <name>Lorrie Odom</name>
    <role>Attendant</role>
    <type>Actor</type>
    <tmdbid>1461344</tmdbid>
    <tvdbid>8161387</tvdbid>
    <tvmazeid>25181</tvmazeid>
  </actor>
  <actor>
    <name>Cynthia Tombros</name>
    <role>Lolly</role>
    <type>Actor</type>
    <tmdbid>2517107</tmdbid>
    <tvdbid>8433497</tvdbid>
  </actor>
  <director tmdbid="1685025" tvdbid="8433498" tvmazeid="322277">Logan George</director>
  <director tmdbid="1708936" tvdbid="8433492" tvmazeid="322276">Celine Held</director>
  <trailer>plugin://plugin.video.youtube/?action=play_video&amp;videoid=5p4Cl5u_7oY</trailer>
  <rating>6</rating>
  <year>2022</year>
  <sorttitle>Topside</sorttitle>
  <imdbid>tt10506876</imdbid>
  <tvdbid>177491</tvdbid>
  <tmdbid>665899</tmdbid>
  <premiered>2022-03-25</premiered>
  <releasedate>2022-03-25</releasedate>
  <criticrating>81</criticrating>
  <runtime>90</runtime>
  <country>United States of America</country>
  <genre>Drama</genre>
  <studio>ELO films</studio>
  <studio>Likely Story</studio>
  <studio>K Period Media</studio>
  <studio>Level Forward</studio>
  <studio>Red Crown Productions</studio>
  <uniqueid type="imdb">tt10506876</uniqueid>
  <uniqueid type="tvdb">177491</uniqueid>
  <uniqueid type="tmdb">665899</uniqueid>
  <id>tt10506876</id>
  <fileinfo>
    <streamdetails>
      <video>
        <codec>hevc</codec>
        <micodec>hevc</micodec>
        <bitrate>7403681</bitrate>
        <width>1920</width>
        <height>1040</height>
        <aspect>24:13</aspect>
        <aspectratio>24:13</aspectratio>
        <framerate>23.976025</framerate>
        <scantype>progressive</scantype>
        <default>True</default>
        <forced>False</forced>
        <duration>90</duration>
        <durationinseconds>5421</durationinseconds>
      </video>
      <audio>
        <codec>aac</codec>
        <micodec>aac</micodec>
        <bitrate>320000</bitrate>
        <language>eng</language>
        <scantype>progressive</scantype>
        <channels>6</channels>
        <samplingrate>48000</samplingrate>
        <default>True</default>
        <forced>False</forced>
      </audio>
      <subtitle>
        <codec>subrip</codec>
        <micodec>subrip</micodec>
        <language>eng</language>
        <scantype>progressive</scantype>
        <default>False</default>
        <forced>False</forced>
      </subtitle>
      <subtitle>
        <codec>subrip</codec>
        <micodec>subrip</micodec>
        <language>eng</language>
        <scantype>progressive</scantype>
        <default>False</default>
        <forced>True</forced>
      </subtitle>
    </streamdetails>
  </fileinfo>
</movie>
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Integrate FileBot with qBT and Radarr

Post by rednoah »

That is very unfortunate. I have never seen NFO files like that. Do your files come with NFO files like that? Looks like it's been generated by media center software after reading in and identifying the files? You may want to delete them before processing, and then regenerate them.
:idea: Please read the FAQ and How to Request Help.
loracweb
Posts: 9
Joined: 23 Jul 2023, 01:16

Re: Integrate FileBot with qBT and Radarr

Post by loracweb »

That's how emby creates the NFO.

I didn't realize that's why I was having issues getting things read properly. I'll just delete the nfo files before I use filebot on them.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Integrate FileBot with qBT and Radarr

Post by rednoah »

It doesn't seem to cause an issue, since the file is still identified correctly, at least in the test case given above. But checking all those IDs might be a bit wasteful and slow things down. I'll look into it.

:idea: Once you've got [tmdbid-665899] in the file name, then FileBot will use just that and ignore all the NFO files.




EDIT:

FileBot r9945 will now match the last occurrence of the TMDB ID pattern. We may look into just ignoring TMDB ID matches altogether if there's more than one, if this change in turn causes issues with Kodi generated NFO files, etc.
:idea: Please read the FAQ and How to Request Help.
Post Reply