jreklund / php4dvd

php4dvd is an open source php/mysql powered movie database. Catalog your video collection with ease. Automatic update of information and images.
GNU General Public License v3.0
83 stars 43 forks source link

Easy way to configure defaults for "seen" and "favorite" #68

Open keyboardsmash opened 3 years ago

keyboardsmash commented 3 years ago

I managed to disable having new movies added as favorites, but trying to do that with 'seen' is fruitless.

It would be nice if it was possible to how php4dvd should handle new movies.

jreklund commented 3 years ago

Doesn't look that hard to implement a custom favorite, own, seen preference. Will have a look at it.

Change true into false, if you want the default to be "No" in the meanwhile. This is regarding "imdb"-movies, if you add them yourself they will always be set to "Yes" regardless of what you set this too.

/lib/db/Movie.class.php:

$this->favourite = isset($this->favourite) ? $this->favourite : false;
$this->own = isset($this->own) ? $this->own : true;
$this->seen = isset($this->seen) ? $this->seen : true;