Page 1 of 1

Delete everything under imdb rating < 6

Posted: 12 Nov 2013, 13:55
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

Re: Delete everything under imdb rating < 6

Posted: 12 Nov 2013, 14:35
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.

Re: Delete everything under imdb rating < 6

Posted: 12 Nov 2013, 14:58
by Gutz-Pilz
i could make the nfos with rating information

can u point me in a direction also without nfo ?

Re: Delete everything under imdb rating < 6

Posted: 12 Nov 2013, 15:18
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.

Re: Delete everything under imdb rating < 6

Posted: 12 Nov 2013, 15:34
by Gutz-Pilz
great. i give it a try