Hi
Can you please correct the error that occurs when details are downloaded for a movie or TV show. What happens is that the 'ratings' field seems to be often contain more than 1 digit after the decimal point. For apps like Synology Video Station this causes an error because it is only able to accept a rating with 1 digit after the decimal point. 1 dp should be enough I think.
Thanks
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 š§š· pt-BR
on October 16, 2022 at 11:06 AM
I believe it's been a long time since the value of "vote_average" has 3 digits after the decimal point.
Did you also make this request to Synology support ?
https://kb.synology.com/en-my/DSM/help/DSM/SupportCenter/SupportCenter_desc?version=6
If yes, what was the answer?
Reply by wangbombat@@~~
on October 16, 2022 at 2:01 PM
It still shows ratings more than 1 d.p. I cannot add a screenshot but Star Wars VII shows a rating of 7.313. Others I've seen have ratings with up to 10 digits or so. The auto process in Video Station just fails when it encounters video info like this and so each file needs to be downloaded individually (and this isn't feasible to do.) Synology simply don't reply...
Reply by AtikMiah
on October 20, 2022 at 5:24 AM
I have the exact same problem. I have to manually go in and round up/down the ratings in order for the synopsis and poster artwork to be added. Is there not a way that Synology can do the rounding themselves, so that it can be updated automatically?
Reply by wangbombat@@~~
on October 20, 2022 at 5:42 AM
Synology probably could fix this easily but they just never bother to reply. Consequently I brought it up here hoping the team could make the required change directly.
Reply by eb23
on March 16, 2023 at 11:18 PM
This might help some. This inability to truncate the decimals was super annoying.
You may also change this one to be "False" as well at the very top of the script. This prevent the video station from randomly guessing movie titles
Reply by BlackPredator72
on March 27, 2023 at 3:39 PM
I followed the instructions from https://www.themoviedb.org/talk/634c0d22a61de1007effbb93 but after the sudo vi ./search.py command, I'm not sure what is supposed to happen? I was expecting some text file where I could edit the lines. This is my output and I'm stuck at this.
Putty output
Reply by eb23
on March 27, 2023 at 5:08 PM
you will need to enter your password to run as a root -- the file in question is owned by the VideoStation user and if you open it as an Admin, you won't be able to write the changes down. Do not forget to backup before editing.
I've since modified handling of the "allowguess" section -- here it is -- both updated and the original so you will see what I commented out.
Reply by macmcd
on May 13, 2023 at 2:22 PM
Hello, I would very dearly like to apply this fix to my TMDB plugin but have no idea how to use ssh. Following the instructions above using Windows CMD client, I have been able to open the 'search.py' file but can't edit it. To save me hours in a futile search to educate myself could someone patiently explain the following:
Many thanks, Mac.
Reply by eb23
on May 14, 2023 at 10:53 AM
Hey, Mac
On Win, there are plenty of SSH clients, I personally use Putty. You will have to use "sudo" to edit the search.py file with the vi editor. Back it up with "cp". Make sure the permissions of the edited file are still assigned to the VideoStation user:group (check with "ls -la", change with "chown").
ChatGPT or Bing are great resources to understand the basic command without going through dozens of man pages.
Another thing is the "vi" itself it could be super confusing if you've never used it. Not sure if "nano" can be deployed on Synology, probably.
Reply by macmcd
on May 15, 2023 at 1:56 PM
Thanks for your help. I wasn't able to backup the original file as I received a permission denied but I was able to edit it. It all appears to be working well.
Reply by trues666
on February 6, 2025 at 7:18 AM
This allowed me to open the search.py file in vi:
sudo vi /var/packages/VideoStation/target/plugins/syno_themoviedb/search.py