webui icon indicating copy to clipboard operation
webui copied to clipboard

Adding Movie via Web UI doesn't get imdb / tmdb ID

Open pree opened this issue 4 years ago • 1 comments

When I try adding a movie via the web ui it doesn't lookup imdb/tmdb, adding the same movie via CLI works fine.

pree avatar Apr 05 '20 00:04 pree

After code review WebUI is calling api/movie_list using movie_name parameter, thus putting all the input text box inside movie_name.

On the other hand CLI adding is doing some logic before adding the entry:

def movie_list_add(options):

        title, year = split_title_year(options.movie_title)
        console('Trying to lookup movie title: `{}`'.format(title))
        movie_lookup = lookup_movie(title=title, session=session, identifiers=options.identifiers)

and in addition CLI add is support identifier used to specify for example imdb_id or tmdb_id

IMHO the simplest way to support that would be to propose in the WebUi multiple input text boxes:

  • Movie Name (Mandatory)
  • Year (optionnal)
  • IMDB_ID (optionnal)
  • TMDB_ID (optionnal)

For now i'm relying only on CLI pour adding new entries

evoblicec avatar Apr 08 '20 14:04 evoblicec