Mozzo1000 / movielst

:movie_camera: Everything about your movies within the command line.
Other
0 stars 1 forks source link

Return former error statement when index is empty #21

Open Mozzo1000 opened 6 years ago

Mozzo1000 commented 6 years ago

Before we switched over to a database instead of json, if the index file was empty you would see a nice error. Run movielst PATH to index your movies directory. This changed because we only checked for if the index file exists, not if it contains entries. With the database we create the file at start if it does not exists.

Now we see :

>movielst

+-------+-------+------+---------+--------+------+
| TITLE | GENRE | IMDB | RUNTIME | TOMATO | YEAR |
+-------+-------+------+---------+--------+------+