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

Filter by Audio/Video Codec? [Feature] #84

Closed Tharic99 closed 8 months ago

Tharic99 commented 10 months ago

Is your feature request related to a problem? Please describe. Radarr displays the Audio/Video codec as well as the quality. However, it does not allow you to filter by the Audio/Video codec. For example, if a movie is an AVC or an x265 video codec or DTS-HD MA - 5.1 or AAC - 2.0 audio codec.

Describe the solution you'd like Solution would be to be able to input the audio/video codec you do NOT want. Then Checkrr would find any files with that audio/video codec match, determine them to be "unwanted" and send a request to Radarr/Sonarr to force a new download.

Essentially this would add custom healthchecks in the config to enable the ffprobe to find the codec not wanted. Perhaps a comma separated list, one for audio and one for video? Maybe in quotes just in case?

RemoveVideo: "AVI", "AVC", "h265"
RemoveAudio: "DTS-HD MA - 5.1","DTS - 5.1"

You would probably need to maintain a list of audio/video codex so someone didn't put "h.265" or "h265" or "x265" or "265" all for the same thing.

Describe alternatives you've considered

aetaric commented 9 months ago

This is a pretty solid idea. I'll look into getting it into the next major or minor release.

aetaric commented 8 months ago
INFO[0041] test/Movies/Big Buck Bunny (2008)/Big Buck Bunny (Sunflower Movie Version) (2008).mp4  FFProbe=true Format="QuickTime / MOV" Type=Video
INFO[0041] mov,mp4,m4a,3gp,3g2,mj2                      
INFO[0041] h264                                         
INFO[0041] Detected h264. Removing.                      FFProbe=true Format="QuickTime / MOV" Type=Video
INFO[0041] Couldn't find a target for file "test/Movies/Big Buck Bunny (2008)/Big Buck Bunny (Sunflower Movie Version) (2008).mp4". File is unknown.  Unknown File=true

Confirmed working with 8aa5f15