jansmolders86 / mediacenterjs

A HTML/CSS/Javascript (NodeJS) based Media center
http://mediacenterjs.com
1.29k stars 243 forks source link

Movie metadata query issue #217

Closed tobbbles closed 8 years ago

tobbbles commented 8 years ago
server-2 (out): Executing (default): SELECT `id`, `filePath`, `title`, `posterURL`, `backgroundURL`, `imdbID`, `rating`, `certification`, `genre`, `runtime`, `overview`, `cdNumber`, `adult`, `year`, `hidden` FROM `Movies` AS `Movie`;
server-2 (out): info: Screen ready...
server-2 (out): Error retrieving data for Trainwreck  UNRATED null
server-2 (out): Error retrieving data for  { [Error: cannot GET /3/search/movie?api_key=1d0a02550b7d3eb40e4e8c47a3d8ffc6&query=&language=en&year= (422)]
server-2 (out):   status: 422,
server-2 (out):   text: '{"errors":["query must be provided"]}',
server-2 (out):   method: 'GET',
server-2 (out):   path: '/3/search/movie?api_key=1d0a02550b7d3eb40e4e8c47a3d8ffc6&query=&language=en&year=' }

This is also the case on movies with a lot of info in the folder title, looking at the path, there seems to be an issue with taking the title and querying the API.

(this is from a fresh install from the repo)

tobbbles commented 8 years ago

Side note: this also causes the /movies/ route to hang with loading, please wait.

jansmolders86 commented 8 years ago

That's super weird.. let me dig into this. I didn't get this issue the other day. Just to make sure, are you running the windows or linux version? And which Node version are you using?

tobbbles commented 8 years ago

Closing due to no longer using this project.