Question about --conflict

Support for Windows users
Post Reply
saitoh183
Posts: 112
Joined: 02 Oct 2012, 16:59

Question about --conflict

Post by saitoh183 »

I often have downloads of Repack or PROPER and i noticed that my script kept saying file exist didnt process the file. So i checked and found the --conflict and set it to auto. I reran my script and it processed the file. But now i have another file that is Proper and it is giving me the same problem as before.
This worked:

Code: Select all

Run script [fn:amc] at [Thu Sep 15 09:55:14 EDT 2016]
Rename episodes using [TheTVDB]
Auto-detected query: [Big Brother, big brother us]
Fetching episode data for [Big Brother]
Fetching episode data for [Big Brother (UK)]
Fetching episode data for [Big Brother (AU)]
Fetching episode data for [Big Brother (BG)]
Fetching episode data for [Big Brother (IL)]
Apply Filter: {age < 7}
Failed to read media info: null
[MOVE] Rename [P:\Usenet\tvshows\Big.Brother.US.S18E40.REPACK.HDTV.x264-W4F\big.brother.us.s18e40.repack.hdtv.x264-w4f.mkv] to [D:\Videos\tv\Big Brother\Season 18\Big Brother - 18x40 - Live Eviction 14.mkv]
Processed 1 files
Clean clutter files and empty folders
Delete P:\Usenet\tvshows\Big.Brother.US.S18E40.REPACK.HDTV.x264-W4F\big.brother.us.s18e40.repack.hdtv.x264-w4f-sample.mkv
Delete P:\Usenet\tvshows\Big.Brother.US.S18E40.REPACK.HDTV.x264-W4F\big.brother.us.s18e40.repack.hdtv.x264-w4f.nfo
Delete P:\Usenet\tvshows\Big.Brother.US.S18E40.REPACK.HDTV.x264-W4F\Big.Brother.US.S18E40.REPACK.HDTV.x264-W4F.nzb
Delete P:\Usenet\tvshows\Big.Brother.US.S18E40.REPACK.HDTV.x264-W4F\big.brother.us.s18e40.repack.hdtv.x264-w4f.sfv
Delete P:\Usenet\tvshows\Big.Brother.US.S18E40.REPACK.HDTV.x264-W4F\big.brother.us.s18e40.repack.hdtv.x264-w4f.srr
Delete P:\Usenet\tvshows\Big.Brother.US.S18E40.REPACK.HDTV.x264-W4F

Run script [fn:amc] at [Thu Sep 15 08:39:46 EDT 2016]
Rename episodes using [TheTVDB]
Auto-detected query: [Big Brother, big brother us]
Fetch failed: java.net.SocketTimeoutException: Read timed out [http://thetvdb.com/api/GetSeries.php?seriesname=Big+Brother&language=en]
java.net.SocketTimeoutException: Read timed out
Rename episodes using [TheTVDB]
Auto-detected query: [Fear the Walking Dead]
Fetching episode data for [Fear the Walking Dead]
Fetching episode data for [The Walking Dead]
Fetching episode data for [Talking Dead]
Apply Filter: {age < 7}
Failed to read media info: null
[MOVE] Rename [P:\Usenet\tvshows\Fear.the.Walking.Dead.S02E11.PROPER.HDTV.x264-KILLERS\Fear.the.Walking.Dead.S02E11.PROPER.HDTV.x264-KILLERS.mkv] to [D:\Videos\tv\Fear the Walking Dead\Season 2\Fear the Walking Dead - 2x11 - Pablo & Jessica.mkv]
Processed 1 files
Clean clutter files and empty folders
Delete P:\Usenet\tvshows\Fear.the.Walking.Dead.S02E11.PROPER.HDTV.x264-KILLERS\fear.the.walking.dead.s02e11.proper.hdtv.x264-killers.nfo
Delete P:\Usenet\tvshows\Fear.the.Walking.Dead.S02E11.PROPER.HDTV.x264-KILLERS\fear.the.walking.dead.s02e11.proper.hdtv.x264-killers.sfv
Delete P:\Usenet\tvshows\Fear.the.Walking.Dead.S02E11.PROPER.HDTV.x264-KILLERS\fear.the.walking.dead.s02e11.proper.hdtv.x264-killers.srr
Delete P:\Usenet\tvshows\Fear.the.Walking.Dead.S02E11.PROPER.HDTV.x264-KILLERS\sample-fear.the.walking.dead.s02e11.proper.hdtv.x264-killers.mkv
Delete P:\Usenet\tvshows\Fear.the.Walking.Dead.S02E11.PROPER.HDTV.x264-KILLERS
But this didnt:

Code: Select all

 Run script [fn:amc] at [Thu Sep 15 21:41:04 EDT 2016]
Rename episodes using [TheTVDB]
Auto-detected query: [imposteur]
Failed to fetch episode data: [imposteur]
Failed to match files to episode data
Clean clutter files and empty folders
Finished without processing any files
Run script [fn:amc] at [Thu Sep 15 21:41:15 EDT 2016]
Rename episodes using [TheTVDB]
Auto-detected query: [Catfish The TV Show]
Fetching episode data for [Catfish: The TV Show]
Stripping invalid characters from new path: D:/videos/TV/Catfish: The TV Show/Season 5/Catfish: The TV Show - 5x19 - Luis & Sydney
Failed to read media info: null
Skipped [P:\Torrents\Completed\sonarr_tv\catfish.the.tv.show.s05e19.proper.hdtv.x264-w4f.mkv] because [D:\videos\TV\Catfish The TV Show\Season 5\Catfish The TV Show - 5x19 - Luis & Sydney.mkv] already exists
Processed 0 files
Clean clutter files and empty folders
Finished without processing any files
So how does conflict work in auto? How does it consider file is better like stated in the AMC section
--conflict auto Override existing media only if new media is better
Is conflict the only way to manage REPACK and PROPER files?
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Question about --conflict

Post by rednoah »

1.
MediaInfo is not working:

Code: Select all

Failed to read media info: null
What's your filebot -script fn:sysinfo output?


2.
Currently, FileBot will sort by Repack/Proper, then Resolution (MediaInfo required), then FileSize. Thus a low-resolution Repack/Proper file is considered "better" than a high-resolution non-Repack/Proper file.

If both files are Repack/Proper then --conflict auto will only override the file if Resolution is higher or if FileSize is higher, but not if the files are considered equally good.

PS: Only files that have the Repack/Proper marker in the filename (or original filename stored in xattr metadata) are considered Repack/Proper files.
:idea: Please read the FAQ and How to Request Help.
saitoh183
Posts: 112
Joined: 02 Oct 2012, 16:59

Re: Question about --conflict

Post by saitoh183 »

1.

Code: Select all

FileBot 4.7.2 (r4178)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.78
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_101
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 16 Core / 1 GB Max Memory / 23 MB Used Memory
OS: Windows Server 2012 R2 (amd64)
Package: MSI
Data: C:\Users\Administrator\AppData\Roaming\FileBot
Done ?(?????)?

2.
Can i see this info manually? I have mediainfo
If my script contains -no-xattr will that cause a issue with detection?

Here is my powershell script:

Code: Select all

$Source = "P:\Torrents\Completed"

$FolderNames = get-childitem $source |select -ExpandProperty fullname

foreach ($Foldername in $FolderNames){
    $torrentpath = $Foldername 
    if ($torrentpath -match "sickrage_tv"){

           filebot -script  fn:amc --def seriesFormat="D:/videos/FrenchTV/{n}/{'Season '+s}/{n} - {sxe} - {t}" --action move -non-strict P:/Torrents/Completed/sickrage_tv --log-file P:/scripts/Filebot.log --def clean=y -no-xattr --log Fine --lang fr

    }
    ElseIf ( $torrentpath -match "cps*" -or $torrentpath -match "UFC"){
        
        if ($torrentpath -match "UFC"){
            
            $torrentpath = "P:/Torrents/Completed/UFC"
        
        }
        Elseif($torrentpath -match "cpsfr"){
        
            $torrentpath = "P:/Torrents/Completed/cpsfr"
        }
        Else{

            $torrentpath = "P:/Torrents/Completed/cps"
        }

        filebot -script  fn:amc --def movieFormat="D:/videos/{file =~ /UFC/ ? 'UFC' : file =~ /cpsfr/ ? audio.size() > 1 ? 'dual audio movies' : 'French movies' : 'movies'}/{plex[1..-1]}" --action move -non-strict $torrentpath --log-file P:/scripts/Filebot.log --def clean=y -no-xattr --log Fine
    
    }
    Else {

       filebot -script  fn:amc --def seriesFormat="D:/videos/TV/{n}/{'Season '+s}/{n} - {sxe} - {t}" --action move -non-strict P:/Torrents/Completed/sonarr_tv --log-file P:/scripts/Filebot.log --def clean=y -no-xattr --log Fine --conflict auto
    }
}
Only files that have the Repack/Proper marker in the filename (or original filename stored in xattr metadata) are considered Repack/Proper files.
Where can i see this?
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Question about --conflict

Post by rednoah »

1.
Looks like it ought to be working fine then. Either an issue with libmediainfo or the file itself then.

2.
View xattr:
viewtopic.php?f=4&t=5#p5394

Since xattr is disabled, the existing file should never be considered Proper/Repack so override should always kick in. I can't explain the behaviour you're getting.

EDIT: There's a bug when -no-xattr is used, and that's causing the Proper/Repack logic to break.
:idea: Please read the FAQ and How to Request Help.
saitoh183
Posts: 112
Joined: 02 Oct 2012, 16:59

Re: Question about --conflict

Post by saitoh183 »

Thanks for the response...might be just this file...
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Question about --conflict

Post by rednoah »

Fixed with r4257.
:idea: Please read the FAQ and How to Request Help.
saitoh183
Posts: 112
Joined: 02 Oct 2012, 16:59

Re: Question about --conflict

Post by saitoh183 »

rednoah wrote:Fixed with r4257.
Thanks it worked with that release
Post Reply