Delete everything under imdb rating < 6

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Gutz-Pilz
Power User
Posts: 17
Joined: 29 Aug 2013, 16:03

Delete everything under imdb rating < 6

Post by Gutz-Pilz »

Hi there
im running out of space on my nas (Openmediavault (debian))

is there a way to script something that scans my entire moviefolder and delete everything with a imdb-rating less than 6 or so ?

that would be awesome

thanks for any advice
Gutz-Pilz
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Delete everything under imdb rating < 6

Post by rednoah »

If you have .nfo files with the rating that'd make things easier. Otherwise you have to look at the amc/htpc script on how to do movie detection and fetch metadata.
:idea: Please read the FAQ and How to Request Help.
Gutz-Pilz
Power User
Posts: 17
Joined: 29 Aug 2013, 16:03

Re: Delete everything under imdb rating < 6

Post by Gutz-Pilz »

i could make the nfos with rating information

can u point me in a direction also without nfo ?
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Delete everything under imdb rating < 6

Post by rednoah »

Check amc.groovy how to use detectMovie() and then htpc.groovy how to get the info object from the movie object that you get back from detectMovie(). With the info object you know the rating and you can decide whether to delete the video file.
:idea: Please read the FAQ and How to Request Help.
Gutz-Pilz
Power User
Posts: 17
Joined: 29 Aug 2013, 16:03

Re: Delete everything under imdb rating < 6

Post by Gutz-Pilz »

great. i give it a try
Post Reply