[RELEASE] - Rating Update v1.4.3 - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151) +---- Thread: [RELEASE] - Rating Update v1.4.3 (/showthread.php?tid=107331) |
RE: [RELEASE] - Rating Update - m4x1m - 2012-07-21 (2012-07-21, 17:03)papampi Wrote:(2012-07-21, 15:52)m4x1m Wrote: Can you post your advancedsettings.xml content? From: http://wiki.xbmc.org/index.php?title=Userdata/advancedsettings.xml Code: name Could you try to remove, set None or add the DB number in the name tag in advancedsettings.xml? Your changes in dbutils.py are not needed the script automatically reads the tag values in advancedsettings.xml! dbutils.py is not mine and I no way to test the mysql db at this moment. If these steps don't work you must give me some time to install a version of mysql. EDIT: Try to change last line in dbutils.py from : return mysql.connector.Connect( host = host, port = port, database = name, user = user, password = pswd ) to: return mysql.connector.Connect( host = host, user = user, password = pswd, database = name, port = port ) just as the last attempt :-D RE: [RELEASE] - Rating Update - papampi - 2012-07-21 thanks for trying to help !!!! I already tested without the <name> in the advacedsettings and same error was there ! also tried your solution to correct the last line and still no go ... the problem is if also if put my ubuntu ip it gives me error and also with my hostname which is payam-ubntu and also local host all gave me this error : Code: 21:42:00 T:2665286464 ERROR: return mysql.connector.Connect( host = payam-ubuntu, port = 3306, database = MyVideos60, user = xbmc, password = xbmc ) Code: 21:43:06 T:2732428096 ERROR: global name 'localhost' is not defined and when change the order in last line i get this : Code: 21:49:27 T:2661661504 INFO: -->Python script returned the following error<-- RE: [RELEASE] - Rating Update - m4x1m - 2012-07-23 (2012-07-21, 19:13)papampi Wrote: thanks for trying to help !!!! Go to: https://skydrive.live.com/?cid=2471A122156584AA&id=2471A122156584AA%21722 Download dbutils.py and replace the old with this new. If works, I'll release a new version! I've tested with this parameters Code: <advancedsettings> and seems to be working! RE: [RELEASE] - Rating Update - papampi - 2012-07-23 (2012-07-23, 11:23)m4x1m Wrote: Go to: https://skydrive.live.com/?cid=2471A122156584AA&id=2471A122156584AA%21722Thanks man ! its working now... RE: [RELEASE] - Rating Update - papampi - 2012-07-23 when another xbmc access library, Rating Update stops with no error ! RE: [RELEASE] - Rating Update - m4x1m - 2012-07-24 (2012-07-23, 22:46)papampi Wrote: when another xbmc access library, Rating Update stops with no error ! New Version: script.ratingupdate-1.2.4.zip Code: v 1.2.4: Try this I've reduced the xbmc.executehttpapi query to only one to prevent the freeze. RE: [RELEASE] - Rating Update - papampi - 2012-07-29 Thanks for the fix ! I have a question : When you start the script it ask if you want to update all your movies if you answer yes then it update all but if you answer no it should only update new movies, right ? but it wont update at all ... RE: [RELEASE] - Rating Update - PatrickBateman - 2012-07-30 Hey, Quick question, as my movies were scraped using tmdb and therefore many dates are different from IMDB (for some reason tmdb and imdb have drastically different release dates for almost all movies) will this affect the plugin when it tries to update the rating? For example, The movie insidious is a 2011 movie on TMDB but s a 2010 movie on imdb. Will this affect this scraper when it runs? Thanks in advance, Pat~ RE: [RELEASE] - Rating Update - m4x1m - 2012-07-31 (2012-07-29, 18:15)papampi Wrote: Thanks for the fix ! The confirmation is only for prevent an erroneous start, you can disable it in the add-on settings. When you answer no, the script come back to the menu without scanning movies. (2012-07-30, 13:32)PatrickBateman Wrote: Hey, How it works Use the IMDbPHP Class locally to retrieve only the actual ratings and top250 without additional data. The XBMC database is only updated if necessary. The searches are made through IMDb ID, if in your database doesn't exist IMDb ID the script will fail. I don't think that TMDB uses an IMDB ID, please be careful! RE: [RELEASE] - Rating Update - adsi - 2012-08-10 Hi~ m4x1m Some questions need your answer, thank you. 1.I use nfo files to inport imdb scraper data into xbmc's database, if i install your add-on and scan all the movies successfully then export them to nfo files(separate method), it'll only change "rate" in nfo files, not include my movie title or others, right? 2.If i execute "clean library" in order to remove some un-exist movies due to wrong patch or rename folder case, will imdb rate still keep in the lastest update value? PS.In fact, i'm confused that why movies still can be shown in XBMC when i execute "clean library" except for not export to nfo file movies, it's very strange for me. RE: [RELEASE] - Rating Update - m4x1m - 2012-08-10 (2012-08-10, 05:19)adsi Wrote: 1.I use nfo files to inport imdb scraper data into xbmc's database, if i install your add-on and scan all the movies successfully then export them to nfo files(separate method), it'll only change "rate" in nfo files, not include my movie title or others, right? Use the IMDbPHP Class locally to retrieve only the actual ratings and top250 without additional data. Yes, only rate and voters number will be upgraded (2012-08-10, 05:19)adsi Wrote: 2.If i execute "clean library" in order to remove some un-exist movies due to wrong patch or rename folder case, will imdb rate still keep in the lastest update value? When you use "clean library" xbmc will remove all movies that are no more in the path of scan. If you do a reimport from an nfo files with a not updated rate probably it will be different, if you do a scrape from internet the rate will be updated. RE: [RELEASE] - Rating Update - Vaikin - 2012-08-17 A faster way to update fields, way less code and maybe safer(as it doesn't involve directly querying the database): Code: json_response = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": { "movieid" : %s, "rating" : %s, "votes" : "%s" }, "id": %s}' % (movieId, float(rating), votes, movieId)) Just a thought. RE: [RELEASE] - Rating Update - skullmonkey - 2012-08-18 How do you run this script/addon? I installed it and nothing happened. The ratings are still incorrect. Thanks, S@ RE: [RELEASE] - Rating Update - solidsatras - 2012-08-18 (2012-08-18, 16:34)skullmonkey Wrote: How do you run this script/addon? I installed it and nothing happened. The ratings are still incorrect. by following the instructions in the first post RE: [RELEASE] - Rating Update - skullmonkey - 2012-08-18 (2012-08-18, 19:00)solidsatras Wrote:(2012-08-18, 16:34)skullmonkey Wrote: How do you run this script/addon? I installed it and nothing happened. The ratings are still incorrect. Still dont get it. I need fix that will only need the actual XBMC to fix the rating. This need installind... coding... |