Cannot Connect To IMDB

Asked by thewizard

Griffith Version 0.13

I cannot connect to the IMDB database. I looked at the forum and found the post that IMDB changed the way serches are performed. I did a copy and paste of the four individual .py files that was mention into a text editor and saved them with the appropriate file names. Being a Linux user (Mint) I renamed the original files and then copy the new files into the /usr/share/griffith/lib/plugins/movie folder. Then I double checked the file permissions. I restarted Griffith and try to import movie info from the IMDB database but received a pop up window with a message "No Results" with an red box icon with a red X in a gray background.

In the post it was caterorized as being solved but for me it did not fix the problem. The post did not mention any specific instructions on how to implement the fix and I am assuming all that needed to be done was to replace the old files with the new.

I would appreciate any assistance in resolving this issue as well as others that are having the same problem.

Thank you for your attention

Question information

Language:
Batak (Indonesia) Edit question
Status:
Solved
For:
Griffith Edit question
Assignee:
No assignee Edit question
Solved by:
Michael
Solved:
Last query:
Last reply:
Revision history for this message
UnkleKev (kevinjroyal) said :
#1

Hi thewizard,

Prompted by your message I did the following:

I copied the text of the first plugin into Notepad and then saved it as PluginMovieIMDB and selected UTF-8 from the encoding options.

I then changed the file extension of the .txt file to .py.

Finally, I copied and pasted this new PluginMovieIMDB file into the relevant movie folder overwriting the original file (having first made a backup copy of the original just to be on the safe side).

And, voila. I'm up and running again. I couldn't have done it without your message, so hopefully if you're having problems it''s just a case of selecting UTF-8 from the drop down.

Cheers,

Kevin

Revision history for this message
Michael (mikej06) said :
#2

Don't copy the contents of the file to an editor.
Use the "Save as" function of your browser to get the files.
I described the necessary steps in a comment of the bug report.
https://bugs.launchpad.net/griffith/+bug/1084608/comments/5

Revision history for this message
thewizard (edsellsstuff02) said :
#3

Well guys ( Michael & Kevin) I tried both of your suggestion but it did not work for some reason. Maybe something in the way the file was make during the installation is causing the file not to be read correctly. The sugggestions you gave is straight forward and if it worked for others then some black magic during the install process under Linux made be different. Not sure, but to my understand it should have worked.

Any other suggestion would be appreciated.

Revision history for this message
Michael (mikej06) said :
#4

Please start griffith with the argument --debug, try to fetch a movie and post the console output here.

Revision history for this message
thewizard (edsellsstuff02) said :
#5

Michael,
Here are the debug results below you requested. I was surprised I did not see anything about the failed search as well as exiting the program. Hope this info will help you out.
$ griffith --debug
2012-12-03T17:48:26: D: Griffith(gconsole:82): Starting Griffith 0.13
2012-12-03T17:48:26: D: Griffith(gconsole:83): Platform: Linux-3.2.0-23-generic-i686-with-LinuxMint-13-maya (posix)
2012-12-03T17:48:26: D: Griffith(gconsole:84): Dependencies:
gtk :: 2.24.0
gtk.glade :: 2.24.0
sqlalchemy :: 0.7.4
sqlite3 :: 2.6.0 (sqlite-lib 3.7.9)
reportlab :: 2.5
PIL :: True
psycopg2 :: 2.4.5 (dt dec mx pq3 ext)
MySQLdb :: 1.2.3.final.0
chardet :: 2.0.1
sqlite :: False
lxml :: True
2012-12-03T17:48:26: D: Griffith(griffith:1469): config file used: /home/wizard/.griffith/griffith.cfg
2012-12-03T17:48:26: I: Griffith(initialize:101): Using Griffith directory: /home/wizard/.griffith
/usr/share/griffith/lib/initialize.py:140: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  define_widgets(self, gtk.glade.XML(gf))
2012-12-03T17:48:27: D: Griffith(sql:279): SELECT movies.number, movies.o_title, movies.title, movies.director, movies.poster_md5, movies.genre, movies.seen, movies.year, movies.runtime, movies.rating, movies.created, movies.updated
FROM movies ORDER BY movies.number ASC
2012-12-03T17:48:46: D: Griffith(add:284): reloading PluginMovieIMDB

I have been using the program for over a year and has been working for me without any problems and doing what I need until IMDB changed the search method.
Thanks for you assistance.

Revision history for this message
Michael (mikej06) said :
#6

Please try the following steps:
* open the file /usr/share/griffith/lib/plugins/movie/PluginMovieIMDB.py
* look for the line "plugin_version =..." and post the version number here
  (full line should be "plugin_version = '0.13'")
* if you find one of the following files, remove them:
** /usr/share/griffith/lib/plugins/movie/PluginMovieIMDB.pyc
** /usr/share/griffith/lib/plugins/movie/PluginMovieIMDB.pyo

What movie title did you try?

Revision history for this message
thewizard (edsellsstuff02) said :
#7

Michael,

Did what you suggested and had some success. The two movies I was trying to download info on were Laura 1944 and Happy New Year Charlie Brown. Well I tried first good old Charlie and got the message No Results. Then tried Laura and it worked. I then tried Charlie again but received the No Results message. I check and the IMDB on line and found that Charlie was listed and so it seems the search did not find it for some reason. By the way we did make headway beacuse I could not find Laura before.

The question now is why can't we find good old Charlie.

Thanks for you assistance

Revision history for this message
Best Michael (mikej06) said :
#8

Please download the plugins again.
I fixed an error which occurs if only one result is found.

Revision history for this message
thewizard (edsellsstuff02) said :
#9

Thank you Michael, I tried all the ones that did not work and they all came back with info. In total I did 6 searches and data came back for all. So rest assure I believe you solved the problem.

Again thanks for your time and assistance and know you made many happy.

Take care and have a Merry Christmas and a Happy New Year