Board index Feature Requests and Bug Reports also rename nfo in same dir as movie.

also rename nfo in same dir as movie.

All your suggestions, requests and ideas for future development

rednoah User avatar
The Source

Posts: 2074
Location: 北京

XMBC accepts moviename.nfo as well as moviename.cd1.nfo, I'll make moviename.nfo default, but also make your usecase possible via an format expression.
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image


Posts: 52
Hi yes, you are correct :)
the *.nfo should be named exactly the same as the video file it is representing (ie. moviename.avi and moviename.nfo). In the case of multi-part (stacked) video stacking, name the file either moviename.nfo or moviename-CD1.nfo where the first filename is moviename-CD1.avi.


But I would be greatful if you could add option 2: "moviename-CD1.nfo where the first filename is moviename-CD1.avi" as an alternative, it compatible with YAMJ/Popcornhours's NMJ (official Jukebox) and more. where first option is not.


Posts: 52
Hi I got a reply from NMT YAMJ:

"exactly matching the file (moviename-CD1.nfo ) or exactly matching the folder


So for NMT compatibility it would be great with the option to rename the nfo as cd1.

rednoah User avatar
The Source

Posts: 2074
Location: 北京

Naming the NFO the same as the folder name is probably the best solution. But I'll make the -cd1 pattern work as well.
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image


Posts: 52
thanks! I'll be sure to test it for you :)

rednoah User avatar
The Source

Posts: 2074
Location: 北京

Should work now like I said, uploading a new beta right now.

With the new beta this expression will work and do what you want:
{n} ({y}){".CD$pi"}{if (ext == 'nfo' && folder.list().findAll{it.startsWith(fn) && it =~ /avi$/}.size() > 1) ".CD1"}
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image


Posts: 52
thanks! seems to work great! will give a few tests. But still the new option IMDB for movie scraping is giving me a bunch of alternatives even though I have an nfo with the correct imdb tag. TheMovieDB finds all movies by itself. It's just the new option of IMDB for movies.


Posts: 52
It's working great with the nfo renamin, I changed to this:

 {n.space('.')}.({y}){".CD$pi"}{if (ext == 'nfo' && folder.list().findAll{it.startsWith(fn) && it =~ /avi$/}.size() > 1) ".CD1"}

So that it wont use empty spaces.

Only issue I see is at the preview where I put this in it says: Warning: BindingError: "Ext: Invalid media file: Null" But it works just as it should! great job!

rednoah User avatar
The Source

Posts: 2074
Location: 北京

It's just a warning. You haven't set up a file to test your expression on. But when u use it obviously the movie/file match give the expression all the data it needs.
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image

rednoah User avatar
The Source

Posts: 2074
Location: 北京

I'll run some tests on IMDB but the "search-result-auto-selection" logic is always the same for all datasources. FileBot will only auto-select if there is only one clear match. Data from NFO files just adds options, as do other detection methods.
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image


Posts: 52
ah ok then I'm with you, I thought nfo overrode all other possible inputs of name. as if nfo exist use this.


Posts: 52
Hi I got an error now when I tried this on another computer with windows 7:

I get: "java.lang.Integer.compare(II)I" and nothing shows up on the left column do you know what it might be I dont have any debug or log files.

I even got this with the current stable 2.4. Dont know if anyone else gotten it? I'm on Windows 7 64bit and (build 1.6.0_31-b05) java

rednoah User avatar
The Source

Posts: 2074
Location: 北京

Never seen that one... You mean when you drag files into the left list? Or related to name formatting? Try running via the "FileBot (console)" shortcut, maybe there is useful logging output.
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image


Posts: 52
I upgraded to Java JRE 7 from 6 and now it seems to work :)


Posts: 52
love this! :) is there a way to automatically take the nfo tt-id if it finds one as the movie? I would like to automate as much as possible.

rednoah User avatar
The Source

Posts: 2074
Location: 北京

thequestion wrote:
love this! :) is there a way to automatically take the nfo tt-id if it finds one as the movie? I would like to automate as much as possible.

Do you mean confirmation? i.e. skip that selection dialog if tt-id is found via nfo file? If nfo filename matches the movie filename then that sounds reasonable.
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image


Posts: 52
yes exactly, for filebot to automatically take that option from the nfo.


Posts: 52
the reasoning is, if filebot finds a uniqe nfo in the same folder as the movie and it contains an imdb-link (just as it finds it today but adds it as an option among the rest), it is pretty certain that this tt-link is for the correct movie.

rednoah User avatar
The Source

Posts: 2074
Location: 北京

Uploaded a new revision for you.

If the movie filename starts with the nfo filename FileBot will automatically match the movie information accordingly. Many movie /nfo files per folder will work as well this way.
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image


Posts: 52
nice! went through my testdir and chose IMDB as scraper and it found all movies correctly be itself! I didnt have to choose a thing :) Will speed upp large directories when I convert all!


Posts: 52
Hi a few naming issues, it seems like : cant be used for most media centers to recognize the movie: like this:

Wall.Street:.Money.Never.Sleeps.(2010).BluRay.mkv
Twin.Peaks:.Fire.Walk.With.Me.(1992).BluRay.mkv
Azumi.2.:.Death.Or.Love.(2005).BluRay.mkv

I'm using:

{n.space('.')}.({y}){'.'+source}{".CD$pi"}{if (ext == 'nfo' && folder.list().findAll{it.startsWith(fn) && it =~ /avi$/}.size() > 1) ".CD1"}


Is there a way to get these titles to be renamed as:

Wall.Street.Money.Never.Sleeps.(2010).BluRay.mkv
Twin.Peaks.Fire.Walk.With.Me.(1992).BluRay.mkv
Azumi.2.Death.Or.Love.(2005).BluRay.mkv

if ":" is in the name it will not generate a correct answer from filename alone. So it would be great if Filebot could remove all ":" it found and not allow . to be placed after each other, like Azumi.2.:.Death.Or.Love.(2005).BluRay.mkv would become if ":" was removed: Azumi.2..Death.Or.Love.(2005).BluRay.mkv

2. Also I added a really large archive for renaming, but after a while of processing I got a bunch of options to choose from, all these movies has an nfo with: <id moviedb="imdb">tt0119174</id> etc. Should they work? Here is another with same syntax that makes me manually choose even though its named as the movie:

<?xml version="1.0" encoding="utf-8"?>
<movie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <id moviedb="imdb">tt0368909</id>
  <title>Ong-bak</title>
  <originaltitle>Ong-bak</originaltitle>
  <year>2003</year>
  <releasedate>2004-11-19</releasedate>
  <rating>7.2</rating>
  <votes>24,914</votes>
  <mpaa>Rated R for sequences of strong violence, language, some drug use and sexuality.</mpaa>
  <certification>USA:R / UK:18 / Spain:13 / South Korea:15 / Singapore:PG / Singapore:M18 / Portugal:M/16 / Philippines:R-13 / New Zealand:R16 / Netherlands:12 / Mexico:B15 / Malaysia:18SG / Italy:T / Ireland:18 / Iceland:16 / Hong Kong:III / Hong Kong:IIB / Germany:16 / France:-12 / Finland:K-15 / Canada:18A / Canada:14A / Canada:13+ / Austria:16 / Australia:MA</certification>
  <genre>Action / Adventure / Crime / Thriller</genre>
  <studio>Baa-Ram-Ewe</studio>
  <director>Prachya Pinkaew</director>
  <credits>Prachya Pinkaew / Panna Rittikrai</credits>
  <tagline>To fight for the honor of his village, he must unleash the ancient art of Muay Thai: 9 Body Weapons</tagline>
  <outline>When the head of a statue sacred to a village is stolen, a young martial artist goes to the big city and finds himself taking on the underworld to retrieve it.</outline>
  <plot>Booting lives in a small and peaceful village. One day a sacred Buddha statuette called Ong Bak is stolen from the village by a immoral businessman who sells it for exorbitant profits. It soon becomes the task of a young man, Boonting (Phanom Yeeram), to track the thief down to Bangkok voluntarily and reclaim the religious treasure. Along the way, Boonting uses his astonishing athleticism and traditional Muay Thai skills to combat his adversaries.</plot>
  <runtime>105 min (Toronto International Film Festival) | Hong Kong:108 min  | USA:105 min  | 104 min (director's cut) | Spain:100 min (DVD edition)</runtime>
  <actor>
    <name>Petchtai Wongkamlao</name>
    <role>Humlae / Dirty Balls / George (as Petchtai Wongkamlao)</role>
    <thumb />
  </actor>
  <actor>
    <name>Tony Jaa</name>
    <role>Ting (as Panom Yeerum)</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTg1NjE3NDcxMF5BMl5BanBnXkFtZTYwODU1Njg2._V1._SY275_SX400_.jpg</thumb>
  </actor>
  <actor>
    <name>Pumwaree Yodkamol</name>
    <role>Muay Lek</role>
    <thumb />
  </actor>
  <actor>
    <name>Suchao Pongwilai</name>
    <role>Komtuan</role>
    <thumb />
  </actor>
  <actor>
    <name>Chumphorn Thepphithak</name>
    <role>Uncle Mao</role>
    <thumb />
  </actor>
  <actor>
    <name>Cheathavuth Watcharakhun</name>
    <role>Peng</role>
    <thumb />
  </actor>
  <actor>
    <name>Wannakit Sirioput</name>
    <role>Don</role>
    <thumb />
  </actor>
  <actor>
    <name>Rungrawee Barijindakul</name>
    <role>Ngek</role>
    <thumb />
  </actor>
  <actor>
    <name>Chatthapong Pantanaunkul</name>
    <role>Saming</role>
    <thumb />
  </actor>
  <actor>
    <name>Nudhapol Asavabhakhin</name>
    <role>Toshiro</role>
    <thumb />
  </actor>
  <actor>
    <name>Pornpimol Chookanthong</name>
    <role>Mae Waan</role>
    <thumb />
  </actor>
  <actor>
    <name>Udom Chouncheun</name>
    <role>Ta Meun</role>
    <thumb />
  </actor>
  <actor>
    <name>Boonsri Yindee</name>
    <role>Yai Hom</role>
    <thumb />
  </actor>
  <actor>
    <name>Arirat Ratanakaitkosol</name>
    <role>Tang On</role>
    <thumb />
  </actor>
  <actor>
    <name>Woravit Tanochitsirikul</name>
    <role>Sia Pao</role>
    <thumb />
  </actor>
  <actor>
    <name>Chalongsak Sirimahasan</name>
    <role>Hia Lao</role>
    <thumb />
  </actor>
  <actor>
    <name>Sawang Rodnuch</name>
    <role>Noi</role>
    <thumb />
  </actor>
  <actor>
    <name>Sutin Rodnuch</name>
    <role>Jamnean</role>
    <thumb />
  </actor>
  <actor>
    <name>Woranard Tantipidok</name>
    <role>Pra Cru</role>
    <thumb />
  </actor>
  <actor>
    <name>Somjaj Junmoonree</name>
    <role>Bodyguard 1</role>
    <thumb />
  </actor>
  <actor>
    <name>Somchai Moonma</name>
    <role>Bodyguard 2</role>
    <thumb />
  </actor>
  <actor>
    <name>Taworn Tonapan</name>
    <role>Bodyguard 3</role>
    <thumb />
  </actor>
  <actor>
    <name>Dan Chupong</name>
    <role>Bodyguard 4 (as Chupong Changprung)</role>
    <thumb />
  </actor>
  <actor>
    <name>Chaiporn Gunmoontree</name>
    <role>Bodyguard 5</role>
    <thumb />
  </actor>
  <actor>
    <name>Don Ferguson</name>
    <role>Bodyguard 6</role>
    <thumb>http://ia.media-imdb.com/images/M/MV5BMTM3NTE0OTYzNV5BMl5BanBnXkFtZTcwMDE0MjgyMQ@@._V1._SY275_SX400_.jpg</thumb>
  </actor>
  <actor>
    <name>David Ismalone</name>
    <role>Mad Dog</role>
    <thumb />
  </actor>
  <actor>
    <name>Erik Markus Schuetz</name>
    <role>Pearl Harbour (as Hans Eric)</role>
    <thumb />
  </actor>
  <actor>
    <name>Paul Gaius</name>
    <role>Lee</role>
    <thumb />
  </actor>
  <actor>
    <name>Nick Kara</name>
    <role>Big Bear</role>
    <thumb />
  </actor>
  <actor>
    <name>Sukanya Kongkawong</name>
    <role>Waitress</role>
    <thumb />
  </actor>
  <actor>
    <name>Panna Rittikrai</name>
    <role>Villager (uncredited)</role>
    <thumb />
  </actor>
  <thumb>http://hwcdn.themoviedb.org/posters/532/4cff3a085e73d6299d005532/ong-bak-original.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/532/4cff3a085e73d6299d005532/ong-bak-mid.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/532/4cff3a085e73d6299d005532/ong-bak-cover.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/532/4cff3a085e73d6299d005532/ong-bak-thumb.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/d2d/4bc924f8017a3c57fe00ed2d/ong-bak-original.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/d2d/4bc924f8017a3c57fe00ed2d/ong-bak-mid.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/d2d/4bc924f8017a3c57fe00ed2d/ong-bak-cover.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/d2d/4bc924f8017a3c57fe00ed2d/ong-bak-thumb.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/240/4c1869515e73d64a1f000240/ong-bak-original.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/240/4c1869515e73d64a1f000240/ong-bak-mid.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/240/4c1869515e73d64a1f000240/ong-bak-cover.jpg</thumb>
  <thumb>http://hwcdn.themoviedb.org/posters/240/4c1869515e73d64a1f000240/ong-bak-thumb.jpg</thumb>
  <fanart url="http://images.themoviedb.org">
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-original.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-poster.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-thumb.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-original.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-poster.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-thumb.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-original.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-poster.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-thumb.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-original.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-poster.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-thumb.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-original.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-poster.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-thumb.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-original.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-poster.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-thumb.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-original.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-poster.jpg</thumb>
    <thumb preview="http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-thumb.jpg</thumb>
  </fanart>
  <fileinfo>
    <streamdetails>
      <audio>
        <channels>6</channels>
        <codec>ac3</codec>
      </audio>
      <video>
        <aspect>1.818</aspect>
        <codec>xvid</codec>
        <duration>103 mins</duration>
        <height>352</height>
        <scantype>Progressive</scantype>
        <width>640</width>
      </video>
    </streamdetails>
  </fileinfo>
  <videoSource>dvd</videoSource>
</movie>

rednoah User avatar
The Source

Posts: 2074
Location: 北京

1. Just clean it up the way you want, e.g.
{n.replaceAll(/[:. ]+/, '.')}


2. Tested. Works for me. What are the exact filenames? I guess the movie<->nfo filenames don't match properly.
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image


Posts: 52
Thanks I have this now:

{n.space('.')}.({y}){'.'+source}{".CD$pi"}{if (ext == 'nfo' && folder.list().findAll{it.startsWith(fn) && it =~ /avi$/}.size() > 1) ".CD1"}

dont really know where I should add this to the above :)
{n.replaceAll(/[:. ]+/, '.')}


2. Tested. Works for me. What are the exact filenames? I guess the movie<->nfo filenames don't match properly.

I think I found the issue, FileBot doesnt seem to use the nfo if its named like this:
Ong-bak.2003.DVDRip.Xvid.Int-EDRP/
├── Ong-bak.2003.DVDRip_Xvid_Int_EDRP_cd1.avi
├── Ong-bak.2003.DVDRip_Xvid_Int_EDRP_cd1.nfo
├── Ong-bak.2003.DVDRip_Xvid_Int_EDRP_cd1.srt
├── Ong-bak.2003.DVDRip_Xvid_Int_EDRP_cd2.avi
└── Ong-bak.2003.DVDRip_Xvid_Int_EDRP_cd2.srt

or:
Ong-bak.2003.DVDRip.Xvid.Int-EDRP/
├── Ong-bak.2003.DVDRip.cd1.avi
├── Ong-bak.2003.DVDRip.cd1.nfo
├── Ong-bak.2003.DVDRip.cd1.srt
├── Ong-bak.2003.DVDRip.cd2.avi
└── Ong-bak.2003.DVDRip.cd2.srt


If I use an nfo with cd1 in it like the moviefile I have to choose an option in a dialog that pops up, plus the resulting renaming scheme ends up as:

Ong-bak.2003.DVDRip.Xvid.Int-EDRP/
├── Ong.Bak.(2003).DVDRip.CD1.avi
├── Ong.Bak.(2003).DVDRip.nfo
├── Ong.Bak.(2003).DVDRip.CD1.srt
├── Ong.Bak.(2003).DVDRip.CD2.avi
└── Ong.Bak.(2003).DVDRip.CD2.srt


While if I rename the original nfo like this:

Ong-bak.2003.DVDRip.Xvid.Int-EDRP/
├── Ong-bak.2003.DVDRip_Xvid_Int_EDRP_cd1.avi
├── Ong-bak.2003.DVDRip_Xvid_Int_EDRP.nfo
├── Ong-bak.2003.DVDRip_Xvid_Int_EDRP_cd1.srt
├── Ong-bak.2003.DVDRip_Xvid_Int_EDRP_cd2.avi
└── Ong-bak.2003.DVDRip_Xvid_Int_EDRP_cd2.srt


It finds the movie instantly without me having to choose and selects the correct renaming scheme:

Ong-bak.2003.DVDRip.Xvid.Int-EDRP/
├── Ong.Bak.(2003).DVDRip.CD1.avi
├── Ong.Bak.(2003).DVDRip.CD1.nfo
├── Ong.Bak.(2003).DVDRip.CD1.srt
├── Ong.Bak.(2003).DVDRip.CD2.avi
└── Ong.Bak.(2003).DVDRip.CD2.srt


So it seems it doesnt handle nfo's already renamed as
├── Ong.Bak.(2003).DVDRip.CD1.avi
├── Ong.Bak.(2003).DVDRip.CD1.nfo

like it should?

rednoah User avatar
The Source

Posts: 2074
Location: 北京

1. Just use that block and see what happens. :P {n} is the movie name, so just replace that expression, i.e. {n.space('.')} to {n.replaceAll(/[:. ]+/, '.')}

2. Yep, I suppose FileBot will ask you for confirmation once on movie.CD2.avi since there is no matching nfo, on the other hand movie.CD1.avi is directly matched to the movie from ...CD1.nfo and doesn't need confirmation.

I don't plan on making the rules for this more fuzzy, CD123, Part 123, etc but not, Kill Bill Vol 1, Vol 2, ... don't wanna compromise correct matching with this, got no problem with having you hit ENTER a few times though. :P
FileBot is free software. Please help support FileBot by writing a review or considering a donation.
Image


Posts: 52
Ah ok. But it also renamed the nfo wrong. It didnt include the cd1. If you name a movie like this:

Ong.Bak.(2003).DVDRip.CD1.avi
Ong.Bak.(2003).DVDRip.CD1.nfo
Ong.Bak.(2003).DVDRip.CD2.avi

and in the nfo include:

    <?xml version="1.0" encoding="utf-8"?>
    <movie xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <id moviedb="imdb">tt0368909</id>
      <title>Ong-bak</title>
      <originaltitle>Ong-bak</originaltitle>
      <year>2003</year>
      <releasedate>2004-11-19</releasedate>
      <rating>7.2</rating>
      <votes>24,914</votes>
      <mpaa>Rated R for sequences of strong violence, language, some drug use and sexuality.</mpaa>
      <certification>USA:R / UK:18 / Spain:13 / South Korea:15 / Singapore:PG / Singapore:M18 / Portugal:M/16 / Philippines:R-13 / New Zealand:R16 / Netherlands:12 / Mexico:B15 / Malaysia:18SG / Italy:T / Ireland:18 / Iceland:16 / Hong Kong:III / Hong Kong:IIB / Germany:16 / France:-12 / Finland:K-15 / Canada:18A / Canada:14A / Canada:13+ / Austria:16 / Australia:MA</certification>
      <genre>Action / Adventure / Crime / Thriller</genre>
      <studio>Baa-Ram-Ewe</studio>
      <director>Prachya Pinkaew</director>
      <credits>Prachya Pinkaew / Panna Rittikrai</credits>
      <tagline>To fight for the honor of his village, he must unleash the ancient art of Muay Thai: 9 Body Weapons</tagline>
      <outline>When the head of a statue sacred to a village is stolen, a young martial artist goes to the big city and finds himself taking on the underworld to retrieve it.</outline>
      <plot>Booting lives in a small and peaceful village. One day a sacred Buddha statuette called Ong Bak is stolen from the village by a immoral businessman who sells it for exorbitant profits. It soon becomes the task of a young man, Boonting (Phanom Yeeram), to track the thief down to Bangkok voluntarily and reclaim the religious treasure. Along the way, Boonting uses his astonishing athleticism and traditional Muay Thai skills to combat his adversaries.</plot>
      <runtime>105 min (Toronto International Film Festival) | Hong Kong:108 min  | USA:105 min  | 104 min (director's cut) | Spain:100 min (DVD edition)</runtime>
      <actor>
        <name>Petchtai Wongkamlao</name>
        <role>Humlae / Dirty Balls / George (as Petchtai Wongkamlao)</role>
        <thumb />
      </actor>
      <actor>
        <name>Tony Jaa</name>
        <role>Ting (as Panom Yeerum)</role>
        <thumb>http://ia.media-imdb.com/images/M/MV5BMTg1NjE3NDcxMF5BMl5BanBnXkFtZTYwODU1Njg2._V1._SY275_SX400_.jpg</thumb>
      </actor>
      <actor>
        <name>Pumwaree Yodkamol</name>
        <role>Muay Lek</role>
        <thumb />
      </actor>
      <actor>
        <name>Suchao Pongwilai</name>
        <role>Komtuan</role>
        <thumb />
      </actor>
      <actor>
        <name>Chumphorn Thepphithak</name>
        <role>Uncle Mao</role>
        <thumb />
      </actor>
      <actor>
        <name>Cheathavuth Watcharakhun</name>
        <role>Peng</role>
        <thumb />
      </actor>
      <actor>
        <name>Wannakit Sirioput</name>
        <role>Don</role>
        <thumb />
      </actor>
      <actor>
        <name>Rungrawee Barijindakul</name>
        <role>Ngek</role>
        <thumb />
      </actor>
      <actor>
        <name>Chatthapong Pantanaunkul</name>
        <role>Saming</role>
        <thumb />
      </actor>
      <actor>
        <name>Nudhapol Asavabhakhin</name>
        <role>Toshiro</role>
        <thumb />
      </actor>
      <actor>
        <name>Pornpimol Chookanthong</name>
        <role>Mae Waan</role>
        <thumb />
      </actor>
      <actor>
        <name>Udom Chouncheun</name>
        <role>Ta Meun</role>
        <thumb />
      </actor>
      <actor>
        <name>Boonsri Yindee</name>
        <role>Yai Hom</role>
        <thumb />
      </actor>
      <actor>
        <name>Arirat Ratanakaitkosol</name>
        <role>Tang On</role>
        <thumb />
      </actor>
      <actor>
        <name>Woravit Tanochitsirikul</name>
        <role>Sia Pao</role>
        <thumb />
      </actor>
      <actor>
        <name>Chalongsak Sirimahasan</name>
        <role>Hia Lao</role>
        <thumb />
      </actor>
      <actor>
        <name>Sawang Rodnuch</name>
        <role>Noi</role>
        <thumb />
      </actor>
      <actor>
        <name>Sutin Rodnuch</name>
        <role>Jamnean</role>
        <thumb />
      </actor>
      <actor>
        <name>Woranard Tantipidok</name>
        <role>Pra Cru</role>
        <thumb />
      </actor>
      <actor>
        <name>Somjaj Junmoonree</name>
        <role>Bodyguard 1</role>
        <thumb />
      </actor>
      <actor>
        <name>Somchai Moonma</name>
        <role>Bodyguard 2</role>
        <thumb />
      </actor>
      <actor>
        <name>Taworn Tonapan</name>
        <role>Bodyguard 3</role>
        <thumb />
      </actor>
      <actor>
        <name>Dan Chupong</name>
        <role>Bodyguard 4 (as Chupong Changprung)</role>
        <thumb />
      </actor>
      <actor>
        <name>Chaiporn Gunmoontree</name>
        <role>Bodyguard 5</role>
        <thumb />
      </actor>
      <actor>
        <name>Don Ferguson</name>
        <role>Bodyguard 6</role>
        <thumb>http://ia.media-imdb.com/images/M/MV5BMTM3NTE0OTYzNV5BMl5BanBnXkFtZTcwMDE0MjgyMQ@@._V1._SY275_SX400_.jpg</thumb>
      </actor>
      <actor>
        <name>David Ismalone</name>
        <role>Mad Dog</role>
        <thumb />
      </actor>
      <actor>
        <name>Erik Markus Schuetz</name>
        <role>Pearl Harbour (as Hans Eric)</role>
        <thumb />
      </actor>
      <actor>
        <name>Paul Gaius</name>
        <role>Lee</role>
        <thumb />
      </actor>
      <actor>
        <name>Nick Kara</name>
        <role>Big Bear</role>
        <thumb />
      </actor>
      <actor>
        <name>Sukanya Kongkawong</name>
        <role>Waitress</role>
        <thumb />
      </actor>
      <actor>
        <name>Panna Rittikrai</name>
        <role>Villager (uncredited)</role>
        <thumb />
      </actor>
      <thumb>http://hwcdn.themoviedb.org/posters/532/4cff3a085e73d6299d005532/ong-bak-original.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/532/4cff3a085e73d6299d005532/ong-bak-mid.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/532/4cff3a085e73d6299d005532/ong-bak-cover.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/532/4cff3a085e73d6299d005532/ong-bak-thumb.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/d2d/4bc924f8017a3c57fe00ed2d/ong-bak-original.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/d2d/4bc924f8017a3c57fe00ed2d/ong-bak-mid.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/d2d/4bc924f8017a3c57fe00ed2d/ong-bak-cover.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/d2d/4bc924f8017a3c57fe00ed2d/ong-bak-thumb.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/240/4c1869515e73d64a1f000240/ong-bak-original.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/240/4c1869515e73d64a1f000240/ong-bak-mid.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/240/4c1869515e73d64a1f000240/ong-bak-cover.jpg</thumb>
      <thumb>http://hwcdn.themoviedb.org/posters/240/4c1869515e73d64a1f000240/ong-bak-thumb.jpg</thumb>
      <fanart url="http://images.themoviedb.org">
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-original.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-poster.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d29/4bc924f7017a3c57fe00ed29/ong-bak-thumb.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-original.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-poster.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/139/4c56a3865e73d63a71000139/ong-bak-thumb.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-original.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-poster.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/134/4c56a3545e73d63a71000134/ong-bak-thumb.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-original.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-poster.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d25/4bc924f7017a3c57fe00ed25/ong-bak-thumb.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-original.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-poster.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d1d/4bc924f6017a3c57fe00ed1d/ong-bak-thumb.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-original.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-poster.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/0fe/4c56a48a5e73d63a6f0000fe/ong-bak-thumb.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-original_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-original.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-poster_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-poster.jpg</thumb>
        <thumb preview="http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-thumb_thumb.jpg">http://hwcdn.themoviedb.org/backdrops/d21/4bc924f6017a3c57fe00ed21/ong-bak-thumb.jpg</thumb>
      </fanart>
      <fileinfo>
        <streamdetails>
          <audio>
            <channels>6</channels>
            <codec>ac3</codec>
          </audio>
          <video>
            <aspect>1.818</aspect>
            <codec>xvid</codec>
            <duration>103 mins</duration>
            <height>352</height>
            <scantype>Progressive</scantype>
            <width>640</width>
          </video>
        </streamdetails>
      </fileinfo>
      <videoSource>dvd</videoSource>
    </movie>


It will try to rename the nfo without CD1 in it. so it rename these movies wrong.

Ong.Bak.(2003).DVDRip.CD1.avi
Ong.Bak.(2003).DVDRip.nfo
Ong.Bak.(2003).DVDRip.CD2.avi

So it wont work to rename them a second time if someone would want to alter the names.

PreviousNext

Return to Feature Requests and Bug Reports