Fails to Recognize Movies with {plex} qualifier in CLI

Any questions? Need some help?
Post Reply
phibins
Posts: 22
Joined: 28 Mar 2018, 02:49

Fails to Recognize Movies with {plex} qualifier in CLI

Post by phibins »

TL;DR: Filebot has been often failing (using CLI) to recognize a Movie and renames it as a seemingly random TV Show... When called through GUI, using the "Movie Method" specifically, matches are succesful.

I suspect the errors are to do with the {plex} qualifier. But i dont know...

Here are a couple examples:

using the script (in python calling system)

Code: Select all

    FILEBOTSCRIPT="filebot -script fn:amc --log INFO --output \"" + outDir + "\" --action move --conflict auto -non-strict \"" + inDir + "\" --filter \"(n != \'American Dad!\' || s == 16)\" --log-file amc.log --def clean=y music=y subtitles=en musicFormat=\"{plex}\" movieFormat=\"{plex}\" seriesFormat=\"{plex}\" minFileSize=4"
    print('Called Filebot command')
    return os.system(FILEBOTSCRIPT)

EXAMPLE #1 (NAMED FILE AS RANDOM TV SHOW "The Odyssey - S03E07"):


MISTAKE: The file "www.HDSector.com - The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y.mkv" is renamed to "The Odyssey - S03E07 - The Cauldron.mkv"

This is what the CLI outputs:

Code: Select all

	Called Filebot command
	No matching subtitles found: /media/MYPATH/Incomplete/www.HDSector.com - The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y.mkv
	Resource not found: https://api.thetvdb.com/search/series?name=the+bodyguard+1992
	[MOVE] from [/media/MYPATH/Incomplete/www.HDSector.com - The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y.mkv] to [/media/TV Shows/The Odyssey/Season 03/The Odyssey - S03E07 - The Cauldron.mkv]
	Delete /media/MYPATH/Incomplete/The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y

When the above file is run through the GUI:

Steps followed in GUI: Loading the folder> Selecting 'Movie Mode: TheMovieDB'> Match

Named Correctly... Screenshot: Image


EXAMPLE #2 (FAILED TO NAME FILE COMPLETELY):


MISTAKE: The file "Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT.mp4" fails to find a match

This is what the CLI outputs:

Code: Select all

	Called Filebot command
	No matching subtitles found: /media/MYPATH/Incomplete/Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT.mp4
	Failed to fetch episode data: [fast and furious presents hobbs and shaw 2019]
	CmdlineException: Failed to match files 
When the above file is run through the GUI:

Steps followed in GUI: Loading the folder> Selecting 'Movie Mode: TheMovieDB'> Match

Faild to ID ... Screenshot: Image

Named Correctly (after selecting best match manually)... Screenshot: Image




Request for help info:

[*] - Include System Information: Ubuntu 18.04.3 LTS
[*] - How did you install FileBot?: Ubuntu Software Store (https://en.wikipedia.org/wiki/GNOME_Software)
[*] - Grooby Pad Sysinfo:

Code: Select all

		FileBot 4.8.5 (r6224)
		JNA Native: 5.2.0
		MediaInfo: 17.12
		p7zip: p7zip Version 16.02 (locale=en_CA.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (306C3),ASM,AES-NI)
		unrar: UNRAR 5.50 freeware
		Chromaprint: fpcalc version 1.4.3
		Extended Attributes: OK
		Unicode Filesystem: OK
		GVFS: PlatformGVFS [/run/user/1000/gvfs]
		Script Bundle: 2019-05-15 (r565)
		Groovy: 2.5.6
		JRE: OpenJDK Runtime Environment 11.0.4
		JVM: 64-bit OpenJDK 64-Bit Server VM
		CPU/MEM: 8 Core / 7 GB Max Memory / 160 MB Used Memory
		OS: Linux (amd64)
		HW: Linux X-PC 5.0.0-27-generic #28~18.04.1-Ubuntu SMP Thu Aug 22 03:00:32 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
		DATA: /home/me/.filebot
		Package: DEB
		License: FileBot License PX4162640 (Valid-Until: 2068-07-30)
P.S.

I also get these errors once in a while when running the CLI. Not sure if its related or if i should make a seperate thread:

Code: Select all

Resource not found: https://api.themoviedb.org/3/collection/null?language=en-US&api_key=1bb965af6888496c30d52a27e831f9c9
or

Code: Select all

Resource not found: https://api.thetvdb.com/search/series?name=the+bodyguard+1992
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fails to Recognize Movies with {plex} qualifier in CLI

Post by rednoah »

Works out of the box as far as I can tell:

Code: Select all

filebot -script fn:amc *.mkv *.mp4 --action TEST --def minFileSize=0 minLengthMS=0 --log INFO
[TEST] from [Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT.mp4] to [Movies/Fast & Furious Presents - Hobbs & Shaw (2019)/Fast & Furious Presents - Hobbs & Shaw (2019).mp4]
[TEST] from [www.HDSector.com - The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y.mkv] to [Movies/The Bodyguard (1992)/The Bodyguard (1992).mkv]
:arrow: Do you get the same results for simple calls? If yes, then the next step is to systematically narrow down which options make it work / not work.

:idea: Note that {plex} applies to naming only, and has no effect on matching.

:idea: You'll want to use --log ALL (default) if something isn't working as expected, so that you can see what's going on.
:idea: Please read the FAQ and How to Request Help.
phibins
Posts: 22
Joined: 28 Mar 2018, 02:49

Re: Fails to Recognize Movies with {plex} qualifier in CLI

Post by phibins »

Thanks for your advice on how to debug this.

I seem to have found the issue...

for some reason it used the temp folder I use to download the files as the "auto-query".

I have a script that adds the files i want to a temp folder named

Code: Select all

'tempDownloadingFolder_' + now.strftime('%Y-%m-%d_%H-%M-%S')
, downloads that folder, then filebot is called in order to process all files in the downloaded temp folder.

I did not include this in the post above, because i figured the smaller paths would be easier for you to read and didnt imagine that could be related.

Here is the output from the test you suggested with --log ALL

Code: Select all

Called Filebot command
filebot -script fn:amc --def minLengthMS=0 --log ALL --output "/media/PlexFiles/Media Backup" --action move --conflict auto -non-strict "/media/PlexFiles/Media Backup/putio.py-master/Incomplete/tempDownloadingFolder_2019-09-19_13-44-31" --filter "(n != 'American Dad!' || s == 16)" --log-file amc.log --def clean=y music=y subtitles=en musicFormat="{plex}" movieFormat="{plex}" seriesFormat="{plex}" minFileSize=4
Locking /home/phibins/.filebot/logs/amc.log
Run script [fn:amc] at [Thu Sep 19 13:44:41 EDT 2019]
Parameter: minLengthMS = 0
Parameter: clean = y
Parameter: music = y
Parameter: subtitles = en
Parameter: musicFormat = {plex}
Parameter: movieFormat = {plex}
Parameter: seriesFormat = {plex}
Parameter: minFileSize = 4
Argument[0]: /media/PlexFiles/Media Backup/putio.py-master/Incomplete/tempDownloadingFolder_2019-09-19_13-44-31
Input: /media/PlexFiles/Media Backup/putio.py-master/Incomplete/tempDownloadingFolder_2019-09-19_13-44-31/Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT.mp4
Input: /media/PlexFiles/Media Backup/putio.py-master/Incomplete/tempDownloadingFolder_2019-09-19_13-44-31/www.HDSector.com - The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y.mkv
Group: [Series:tempdownloadingfolder] => [Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT.mp4, www.HDSector.com - The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y.mkv]
Get [English] subtitles for 2 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /media/PlexFiles/Media Backup/putio.py-master/Incomplete/tempDownloadingFolder_2019-09-19_13-44-31/Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT.mp4
No matching subtitles found: /media/PlexFiles/Media Backup/putio.py-master/Incomplete/tempDownloadingFolder_2019-09-19_13-44-31/www.HDSector.com - The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [tempdownloadingfolder]
Failed to fetch episode data: [tempdownloadingfolder]
CmdlineException: Failed to match files to episode data
Clean clutter files and empty folders
Delete /media/PlexFiles/Media Backup/putio.py-master/Incomplete/tempDownloadingFolder_2019-09-19_13-44-31/Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT.mp4
Delete /media/PlexFiles/Media Backup/putio.py-master/Incomplete/tempDownloadingFolder_2019-09-19_13-44-31/www.HDSector.com - The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y.mkv
Finished without processing any files
Abort (×_×)
How would you advise I tackle this issue?

Can I change the FILEBOT parameters to not use the sub-folder as an auto-query?
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Fails to Recognize Movies with {plex} qualifier in CLI

Post by kim »

it's because AMC thinks it's a TV show (TheTVDB) and not a MOVIE

you can force movie with e.g.

Code: Select all

--def ut_label=Movies
or put in folder named Movie, Movies or Film
phibins
Posts: 22
Joined: 28 Mar 2018, 02:49

Re: Fails to Recognize Movies with {plex} qualifier in CLI

Post by phibins »

The probelm with that is I was relying on Filebot to detect if it was a movie or tv (for sorting).

As you can see from the test, if I could only tell FILEBOT to look at the filename and skip the subfolder... it would work with no problem.
phibins
Posts: 22
Joined: 28 Mar 2018, 02:49

Re: Fails to Recognize Movies with {plex} qualifier in CLI

Post by phibins »

So i guess there is no solution for this?

Code: Select all

Input: /media/PlexFiles/Media Backup/putio.py-master/Incomplete/tempDownloadingFolder_2019-09-19_13-44-31/Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT.mp4
Input: /media/PlexFiles/Media Backup/putio.py-master/Incomplete/tempDownloadingFolder_2019-09-19_13-44-31/www.HDSector.com - The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y.mkv
Group: [Series:tempdownloadingfolder] => [Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT.mp4, www.HDSector.com - The.Bodyguard.1992.BluRay.1080p.x264.AAC.5.1.-.Hon3y.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [tempdownloadingfolder]
Am I correct in assuming that:

Code: Select all

Group: [Series:tempdownloadingfolder]
Auto-detected query: [tempdownloadingfolder]
is a feature and not a bug?

if I didnt have my temp folder would I get results like this?:

Code: Select all

Group: [Series:Incomplete]
Auto-detected query: [Incomplete]
... I could always add code to place the file in a folder of the same name as the file. like:

Code: Select all

Input: .../Incomplete/tempDownloadingFolder_2019-09-19_13-44-31/Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT/Fast.and.Furious.Presents.Hobbs.and.Shaw.2019.1080p.KORSUB.HDRip.x264.AAC2.0-STUTTERSHIT.mp4
:( that seems like a weird work around to me...

Is there no better way in your opinion????????
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fails to Recognize Movies with {plex} qualifier in CLI

Post by rednoah »

I recommend using standard download folder names like most users, and not tempDownloadingFolder_2019-09-19_13-44-31 which causes issues it seems.


Anything that's on this list is thoroughly ignored and thus a good idea for root folder names:
https://github.com/filebot/data/blob/ma ... cklist.txt

:idea: I'll add this one to the list.


You can also turn it around, and see if that works better, but having YYYY-MM-DD in the file path is generally not a good idea if you rely on auto-detection:

Code: Select all

/path/to/temp/DownloadingFolder_2019-09-19_13-44-31/Incomplete

:idea: YYYY-MM-DD are used for daily shows to identify episodes, so the amc script will be strongly inclined to process files in episode mode if 2019-09-19 appears in the file path, unless otherwise specified.
:idea: Please read the FAQ and How to Request Help.
phibins
Posts: 22
Joined: 28 Mar 2018, 02:49

Re: Fails to Recognize Movies with {plex} qualifier in CLI

Post by phibins »

THANKS! That was a great idea, but it kind of worked but still fails...

Although our solution fixed the incorrect Auto-detected query keyword :D , for reasons unknown to me it still misclassifies the files as TV Shows :( .

it still failed on on the examples I tried:
  • [RENAMED] from [/Incomplete/2019-09-23_14-15-01/temporary/Toy.Story.4.2019.1080p.HDRip.X264.AC3-EVO[TGx]/Toy.Story.4.2019.1080p.HDRip.X264.AC3-EVO.mkv] to [/TV Shows/James May's Toy Stories/Season 01/James May's Toy Stories - S01E04 - Scalextric.mkv]
  • [RENAMED] from [/Incomplete/2019-09-23_14-15-01/temporary/Running.with.the.Devil.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG/Running.with.the.Devil.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv] to [/TV Shows/The Devil/Season 01/The Devil - S01E19 - Episode 19.mkv]
  • [RENAMED] from [/Incomplete/2019-09-23_14-15-01/temporary/Corporate.Animals.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG/Corporate.Animals.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv] to [/TV Shows/Corporate/Season 02/Corporate - S02E09 - Vacation.mkv]
  • [RENAMED] from [/Incomplete/2019-09-23_14-15-01/temporary/BlacKkKlansman.2018.1080p.WEB-DL.DD5.1.H264-CMRG[EtHD]/BlacKkKlansman.2018.1080p.WEB-DL.DD5.1.H264-CMRG[EtHD].mkv] to [/TV Shows/Blank/Season 01/Blank - S01E05 - As if nothing has happened.mkv]


See the following logs for 4 different movie faliure cases.

Code: Select all

Export [BlacKkKlansman.2018.720p.WEB-DL.DD5.1.H264-CMRG.srt] as [SubRip / UTF-8]
Writing [BlacKkKlansman.2018.720p.WEB-DL.DD5.1.H264-CMRG.srt] to [BlacKkKlansman.2018.1080p.WEB-DL.DD5.1.H264-CMRG[EtHD].eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [blackkklansman 2018]
Fetching episode data for [Blank]
Apply filter [(n != 'American Dad!' || s == 16)] on [18] items
Include [Blank - 1x01 - Cheers to Young Love]
Include [Blank - 1x02 - Never Seen]
Include [Blank - 1x03 - Without goal or purpose]
...
Include [Blank - 2x08 - Can't Breathe]
Include [Blank - 2x09 - Zehra Demir]
[MOVE] from [/media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/BlacKkKlansman.2018.1080p.WEB-DL.DD5.1.H264-CMRG[EtHD]/BlacKkKlansman.2018.1080p.WEB-DL.DD5.1.H264-CMRG[EtHD].eng.srt] to [/media/PlexFiles/Media Backup/TV Shows/Blank/Season 01/Blank - S01E05 - As if nothing has happened.eng.srt]
[MOVE] from [/media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/BlacKkKlansman.2018.1080p.WEB-DL.DD5.1.H264-CMRG[EtHD]/BlacKkKlansman.2018.1080p.WEB-DL.DD5.1.H264-CMRG[EtHD].mkv] to [/media/PlexFiles/Media Backup/TV Shows/Blank/Season 01/Blank - S01E05 - As if nothing has happened.mkv]
Processed 2 files
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: /media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/Corporate.Animals.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG/Corporate.Animals.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [Corporate, corporate animals 2019 amzn]
Fetching episode data for [Corporate]
Apply filter [(n != 'American Dad!' || s == 16)] on [20] items
Include [Corporate - 1x01 - The Void]
Include [Corporate - 1x02 - The Powerpoint of Death]
...
Include [Corporate - 2x09 - Vacation]
Include [Corporate - 2x10 - The Fall]
[MOVE] from [/media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/Corporate.Animals.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG/Corporate.Animals.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv] to [/media/PlexFiles/Media Backup/TV Shows/Corporate/Season 02/Corporate - S02E09 - Vacation.mkv]
Processed 1 files
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [English] subtitles [Crazy.Rich.Asians.2018.1080p.WEB-DL.DD5.1.H264-CMRG.srt] from [OpenSubtitles]
Export [Crazy.Rich.Asians.2018.1080p.WEB-DL.DD5.1.H264-CMRG.srt] as [SubRip / UTF-8]
Writing [Crazy.Rich.Asians.2018.1080p.WEB-DL.DD5.1.H264-CMRG.srt] to [Crazy.Rich.Asians.2018.1080p.WEB-DL.DD5.1.H264-CMRG[EtHD].eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [crazy rich asians 2018]
Failed to fetch episode data: [crazy rich asians 2018]
CmdlineException: Failed to match files to episode data
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [English] subtitles [Running.with.the.Devil.2019.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.srt] from [OpenSubtitles]
Export [Running.with.the.Devil.2019.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.srt] as [SubRip / UTF-8]
Writing [Running.with.the.Devil.2019.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.srt] to [Running.with.the.Devil.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [The Devil, running with the devil 2019 amzn]
Fetching episode data for [The Devil]
Fetching episode data for [The Detail]
Fetching episode data for [The Devil Ring]
Fetching episode data for [The Devil Game]
Fetching episode data for [The Devil Horse]
Apply filter [(n != 'American Dad!' || s == 16)] on [66] items
Include [The Devil - 1x01 - Episode 1]
Include [The Devil - 1x02 - Episode 2]
...
Include [The Devil Horse - 1x11 - Wild Loyalty]
Include [The Devil Horse - 1x12 - The Double Decoy]
Auto-detected query: [The Devil, running with the devil 2019 amzn]
Fetching episode data for [The Devil]
Fetching episode data for [The Detail]
Fetching episode data for [The Devil Ring]
Fetching episode data for [The Devil Game]
Fetching episode data for [The Devil Horse]
Apply filter [(n != 'American Dad!' || s == 16)] on [66] items
Include [The Devil - 1x01 - Episode 1]
Include [The Devil - 1x02 - Episode 2]
...
Include [The Devil Horse - 1x11 - Wild Loyalty]
Include [The Devil Horse - 1x12 - The Double Decoy]
[MOVE] from [/media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/Running.with.the.Devil.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG/Running.with.the.Devil.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv] to [/media/PlexFiles/Media Backup/TV Shows/The Devil/Season 01/The Devil - S01E19 - Episode 19.mkv]
[MOVE] from [/media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/Running.with.the.Devil.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG/Running.with.the.Devil.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.eng.srt] to [/media/PlexFiles/Media Backup/TV Shows/The Devil/Season 01/The Devil - S01E19 - Episode 19.eng.srt]
Processed 2 files
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [English] subtitles [Toy.Story.4.2019.720p.WEBRip.800MB.x264-GalaxyRG-HI.srt] from [OpenSubtitles]
Export [Toy.Story.4.2019.720p.WEBRip.800MB.x264-GalaxyRG-HI.srt] as [SubRip / UTF-8]
Writing [Toy.Story.4.2019.720p.WEBRip.800MB.x264-GalaxyRG-HI.srt] to [Toy.Story.4.2019.1080p.HDRip.X264.AC3-EVO.eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [toy story 4 2019]
Fetching episode data for [Toy Story Toons]
Fetching episode data for [James May's Toy Stories]
Apply filter [(n != 'American Dad!' || s == 16)] on [19] items
Include [Toy Story Toons - 1x01 - Hawaiian Vacation]
Include [Toy Story Toons - 1x02 - Small Fry]
...
Include [James May's Toy Stories - Special 2 - James May: Top Toys]
Include [James May's Toy Stories - Special 7 - Action Man at the Speed of Sound]
[MOVE] from [/media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/Toy.Story.4.2019.1080p.HDRip.X264.AC3-EVO[TGx]/Toy.Story.4.2019.1080p.HDRip.X264.AC3-EVO.eng.srt] to [/media/PlexFiles/Media Backup/TV Shows/James May's Toy Stories/Season 01/James May's Toy Stories - S01E04 - Scalextric.eng.srt]
[MOVE] from [/media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/Toy.Story.4.2019.1080p.HDRip.X264.AC3-EVO[TGx]/Toy.Story.4.2019.1080p.HDRip.X264.AC3-EVO.mkv] to [/media/PlexFiles/Media Backup/TV Shows/James May's Toy Stories/Season 01/James May's Toy Stories - S01E04 - Scalextric.mkv]
Processed 2 files
Clean clutter files and empty folders
Delete /media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/Toy.Story.4.2019.1080p.HDRip.X264.AC3-EVO[TGx]
Delete /media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/Running.with.the.Devil.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG
Delete /media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/Corporate.Animals.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG
Delete /media/PlexFiles/Media Backup/putio.py-master/Incomplete/2019-09-23_14-15-01/temporary/BlacKkKlansman.2018.1080p.WEB-DL.DD5.1.H264-CMRG[EtHD]
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fails to Recognize Movies with {plex} qualifier in CLI

Post by rednoah »

Looks like patterns such as 2019-09-23 anywhere in the file path trigger "force episode mode" logic.

If you must have the date in the file path, try making it less well-formatted, so that FileBot can't pick up the pattern:

Code: Select all

20190923141501
:idea: Please read the FAQ and How to Request Help.
phibins
Posts: 22
Joined: 28 Mar 2018, 02:49

Re: Fails to Recognize Movies with {plex} qualifier in CLI

Post by phibins »

Thank you rednoah!

This worked!

Code: Select all

Locking /home/phibins/.filebot/logs/amc.log
Run script [fn:amc] at [Tue Sep 24 08:55:08 EDT 2019]
Parameter: minLengthMS = 0
Parameter: clean = y
Parameter: music = y
Parameter: subtitles = en
Parameter: musicFormat = {plex}
Parameter: movieFormat = {plex}
Parameter: seriesFormat = {plex}
Parameter: minFileSize = 4
Argument[0]: /media/PlexFiles/Media Backup/putio.py-master/Incomplete/20190924085129/temporary
Input: /media/PlexFiles/Media Backup/putio.py-master/Incomplete/20190924085129/temporary/Running.with.the.Devil.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG/Running.with.the.Devil.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv
Group: [Movie:Running with the Devil (2019), Series:null] => [Running.with.the.Devil.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [English] subtitles [Running.with.the.Devil.2019.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.srt] from [OpenSubtitles]
Export [Running.with.the.Devil.2019.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.srt] as [SubRip / UTF-8]
Writing [Running.with.the.Devil.2019.720p.AMZN.WEB-DL.DDP5.1.H.264-NTG.srt] to [Running.with.the.Devil.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.eng.srt]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/PlexFiles/Media Backup/putio.py-master/Incomplete/20190924085129/temporary/Running.with.the.Devil.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG/Running.with.the.Devil.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv]
Apply filter [(n != 'American Dad!' || s == 16)] on [7] items
Include [Running with the Devil (2019)]
Include [Running (1979)]
Include [Dancing with the Devil (2009)]
Include [Ride with the Devil (1999)]
Include [Race with the Devil (1975)]
Include [Sleeping with the Devil (1997)]
Include [The Devil (1972)]
[MOVE] from [/media/PlexFiles/Media Backup/putio.py-master/Incomplete/20190924085129/temporary/Running.with.the.Devil.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG/Running.with.the.Devil.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.mkv] to [/media/PlexFiles/Media Backup/Movies/Running with the Devil (2019)/Running with the Devil (2019).mkv]
[MOVE] from [/media/PlexFiles/Media Backup/putio.py-master/Incomplete/20190924085129/temporary/Running.with.the.Devil.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG/Running.with.the.Devil.2019.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTG.eng.srt] to [/media/PlexFiles/Media Backup/Movies/Running with the Devil (2019)/Running with the Devil (2019).eng.srt]
Processed 2 files
Clean clutter files and empty folders
Delete /media/PlexFiles/Media Backup/putio.py-master/Incomplete/20190924085129/temporary/Running.with.the.Devil.2019.1080p.AMZN.WEBRip.DDP5.1.x264-NTG
Done ヾ(@⌒ー⌒@)ノ
.....Filebot Command Finished
Post Reply