StegSchreck / RatS

Movie Ratings Synchronization with Python
GNU Affero General Public License v3.0
266 stars 31 forks source link

[Feature request] Validate arguments before scrapping #147

Open ngosang opened 3 years ago

ngosang commented 3 years ago

We should validate the following parameters at the start. I'm getting validation errors after waiting for scrapping. I have to correct the arguments and start again to see if the import works.

$ python3 transfer_ratings.py --s trakt -d letterboxed
===== Trakt: performing login
===== loaded 2 movies from /home/xxxx/RatS/RatS/exports/20210326181821_Trakt_mod.json

ERROR: No inserter matching 'LETTERBOXED' found.

===== ABORTING =====
Available inserters:
 - ALLOCINE 
 - CRITICKER 
 - FILMAFFINITY 
 - FILMTIPSET 
 - ICHECKMOVIES 
 - IMDB 
 - LETTERBOXD 
 - LISTAL 
 - METACRITIC 
 - MOVIELENS 
 - MOVIEPILOT 
 - PLEX 
 - ROTTENTOMATOES 
 - TMDB 
 - TRAKT 
StegSchreck commented 3 years ago

Your suggestion makes sense. Thanks for your input!