aetaric / checkrr

Checkrr Scans your library files for corrupt media and replace the files via sonarr and radarr
MIT License
202 stars 10 forks source link

[BUG] .nfo-orig not ignored when added to ignore list #89

Closed DuzAwe closed 8 months ago

DuzAwe commented 8 months ago

nfo-orig was not ignored when added to the ignore list I am assuming this is because of the - in the file name. All other file exts in my list are ignored even those listed after the .nfo-orig.

aetaric commented 8 months ago

try this:

checkrr:
  ignoreexts:
    - ".nfo-orig"
DuzAwe commented 8 months ago

Still have 100s of results this morning after I made his change and had it scan

aetaric commented 8 months ago

Can you provide your config file and the version of checkrr. Also, are these results in checkrr's output or in the webUI? If they are in the webUI, did you clear them out before the run occured?

DuzAwe commented 8 months ago

Yup. Docker - latest/ unraid template. Pulled last week Uptime: 14 hours Created: 3 days ago. I cleared out everything and restarted it after I changed the config.

checkrr: checkpath:

aetaric commented 8 months ago

There's a typo in the file ext... You have ".nfo-org" not ".nfo-orig"

DuzAwe commented 8 months ago

Still happening with that change

aetaric commented 8 months ago

So, I cannot reproduce this on my end:

➜  checkrr git:(main) ✗ dist/checkrr_darwin_arm64/checkrr -c test-noarr.yaml 

            _|                               _|
   _|_|_|   _|_|_|       _|_|       _|_|_|   _|  _|     _|  _|_|   _|  _|_|
 _|         _|    _|   _|_|_|_|   _|         _|_|       _|_|       _|_|
 _|         _|    _|   _|         _|         _|  _|     _|         _|
   _|_|_|   _|    _|     _|_|_|     _|_|_|   _|    _|   _|         _|
Checkrr version 3.2.2
 Commit: 5b141e66750e9d2aad55b9855c545a7256ea2ed4
 Built On: 2023-12-12T07:28:28Z
 Built By: goreleaser
INFO[0000] Using config file: test-noarr.yaml           
INFO[0000] Next Run: 2024-01-16 12:03:00 -0700 MST      
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /api/files/bad            --> github.com/aetaric/checkrr/webserver.getBadFiles (4 handlers)
[GIN-debug] POST   /api/files/bad            --> github.com/aetaric/checkrr/webserver.deleteBadFiles (4 handlers)
[GIN-debug] GET    /api/stats/current        --> github.com/aetaric/checkrr/webserver.getCurrentStats (4 handlers)
[GIN-debug] GET    /api/stats/historical     --> github.com/aetaric/checkrr/webserver.getHistoricalStats (4 handlers)
[GIN-debug] GET    /api/schedule             --> github.com/aetaric/checkrr/webserver.getSchedule (4 handlers)
[GIN-debug] POST   /api/run                  --> github.com/aetaric/checkrr/webserver.runCheckrr (4 handlers)
[GIN-debug] Listening and serving HTTP on :8585
WARN[0005] No config options for notifications found.    Notifications Connected=false Startup=true
INFO[0007] test/Tv/That Time I Got Reincarnated as a Slime/Season 1/That Time I Got Reincarnated as a Slime - S01E02 - Meeting the Goblins Bluray-1080p.mkv  FFProbe=true Format="Matroska / WebM" Type=Video
INFO[0007] File "test/Movies/BBB-test.mkv" is not a recognized file type  FFProbe=false Type=Unknown
INFO[0007] Couldn't find a target for file "test/Movies/BBB-test.mkv". File is unknown.  Unknown File=true
INFO[0008] test/Movies/Big Buck Bunny (2008)/Big Buck Bunny (Sunflower Movie Version) (2008).mp4  FFProbe=true Format="QuickTime / MOV" Type=Video
INFO[0008] File "test/Movies/Monty Python and the Holy Grail (1975)/Monty Python and the Holy Grail (1975).mkv" is not a recognized file type  FFProbe=false Type=Unknown
INFO[0008] Couldn't find a target for file "test/Movies/Monty Python and the Holy Grail (1975)/Monty Python and the Holy Grail (1975).mkv". File is unknown.  Unknown File=true
INFO[0008] test/music/Rick Astley/@eadir/ignore_this_file.bad  FFProbe=true Format="MP2/3 (MPEG audio layer 2/3)" Type=Audio
INFO[0008] test/music/Rick Astley/Rick Astley - Never Gonna Give You Up (Official Music Video)-dQw4w9WgXcQ.aac  FFProbe=true Format="raw ADTS AAC (Advanced Audio Coding)" Type=Audio
INFO[0008] test/music/Rick Astley/Rick Astley - Never Gonna Give You Up (Official Music Video)-dQw4w9WgXcQ.flac  FFProbe=true Format="raw FLAC" Type=Audio
INFO[0008] test/music/Rick Astley/Rick Astley - Never Gonna Give You Up (Official Music Video)-dQw4w9WgXcQ.mp3  FFProbe=true Format="MP2/3 (MPEG audio layer 2/3)" Type=Audio
INFO[0008] test/music/Rick Astley/Rick Astley - Never Gonna Give You Up (Official Music Video)-dQw4w9WgXcQ.opus  FFProbe=true Format=Ogg Type=Audio
INFO[0008] test/music/Rick Astley/Rick Astley - Never Gonna Give You Up (Official Music Video)-dQw4w9WgXcQ.wav  FFProbe=true Format="WAV / WAVE (Waveform Audio)" Type=Audio
+---------------------+--------------+
| Files Checked       |           10 |
| Hash Matches        |            0 |
| Hashes Mismatched   |            0 |
| Submitted to Sonarr |            0 |
| Submitted to Radarr |            0 |
| Submitted to Lidarr |            0 |
| Video Files         |            2 |
| Audio Files         |            6 |
| Text or Other Files |            0 |
| Unknown Files       |            2 |
| Elapsed Time        | 2.639276541s |
+---------------------+--------------+
INFO[0008] Next Run: 2024-01-16 12:04:00 -0700 MST      
^C%       
➜  checkrr git:(main) ✗ ls test/music                                             
Rick Astley   file.nfo-orig
➜  checkrr git:(main) ✗ cat test-noarr.yaml 
---
checkrr:
  checkpath: 
    - test/Tv
    - test/Movies
    - test/music
  database: checkrr.db
  ignoreexts:
    - ".nfo-orig"
  debug: true
  ignorehidden: true
  cron: "* * * * *"
webserver:
  port: 8585
  baseurl: "/"
DuzAwe commented 8 months ago

it's working this morning. Thank you