movary: Cannot add some movies

Description

I found an issue adding some fails, it returns a 500 error, and looking in the logs of the container I found this.

[php-fpm:access] 127.0.0.1 - 28/Sep/2023:16:09:45 +0200 "GET /index.php?tmdbId=96581" 200 /app/public/index.php 7.809 2048 0.00% [2023-09-28T16:09:48.837893+02:00] movary.EMERGENCY: No company found by id: 135193 {"exception":"[object] (RuntimeException(code: 0): No company found by id: 135193 at /app/src/Domain/Company/CompanyRepository.php:74)"} []

I made an script to move all my ratings from TMDB to Movary, and from over 2000 ratings, I got issue with these 8 TMDB ids: 96581, 8980, 818, 180, 1913, 8874, 2770, 95932

Version

0.58.0

Steps to Reproduce

  1. Click on Add Movie button.
  2. Search for example for Makinavaja (select the 1992 film) or Mortadelo (in this case choose the 2003 film).
  3. Select the movie
  4. Enter a rating
  5. Click on add play
  6. An error appears

Screenshots

image

Logs

[php-fpm:access] 127.0.0.1 -  28/Sep/2023:16:09:45 +0200 "GET /index.php?tmdbId=96581" 200 /app/public/index.php 7.809 2048 0.00%
[2023-09-28T16:09:48.837893+02:00] movary.EMERGENCY: No company found by id: 135193 {"exception":"[object] (RuntimeException(code: 0): No company found by id: 135193 at /app/src/Domain/Company/CompanyRepository.php:74)"} []

Server OS

Debian

Client Platform

None

Client Device

No response

Client OS

Windows, Linux, Android

Client Browser

Brave

Additional Context

No response

About this issue

  • Original URL
  • State: closed
  • Created 9 months ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

Good idea, I have added a section to the docs here 👍

Awesome, thank you! I have created a follow up issue here to import the tmdb ratings.

Hi @leepeuker , it took some time, but finally I had some time and rewrite and make a bit more user friendly the script I talked about for importing to movary from TMDB. I created in a repo, and make some instructions for it, just in case you want to add to Movary’s README.

If you are interested into integrate it self on Movary, we can talk about, or feel free to use as much code as you can, is it on Node, so not sure how easy it will be move it to PHP, but I removed the usage of external libraries, so it will be easier.

Here is the link: https://github.com/SirMartin/TMDBToMovary

I have not time, but I just updated I tested it, and works perfectly. Thanks for your amagin work!

Fix will be part of the next release, you can try it out already with the nightly docker image.

I saw it, but I didn’t want to wait to use your amazing work 🤣


De:Lee Peuker @.***> Enviado:viernes, 29 de septiembre de 2023 14:56 Para:leepeuker/movary Cc: Eduardo; Author Asunto: Re: [leepeuker/movary] Cannot add some movies (Issue #511)

An API endpoint for this should come soon, see this issue, it is at least on the list for my next todos 😄 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

I’ll do it right now, and add it to the thread.

Can you reproduce it?

The script is too crappy right now, but of course, it was my first idea trying to integrate, so if you can help me how and where. I would try to do it. I would try to improve my actual version, so can be automated (right now, I am getting some things hardcoded), and share it with you, so we can integrate it into Movary, it would be awesome.