Author Topic: TheMovieDB.org  (Read 62988 times)

0 Members and 1 Guest are viewing this topic.

Offline GazonkFoo

  • Member
  • *
  • Posts: 17
    • View Profile
Re: TheMovieDB.org
« Reply #40 on: September 01, 2012, 10:25:08 am »
Thanks for the explanation of how the scripts/plugins are actually used - helps a lot when thinking about where to fill what data.
I will try to add a few "extension points" to the script so people can easily change the script behaviour (especially which data is put in where).

Now on to the other questions i found in your post:  8)

I'm not sure there's any disadvantages to a script vs. a plugin.

You can make broader use of the programming language in a plugin.
e.g. the TMDb plugin probably uses some kind of xml parser.
If i were to write a plugin for TMDb i would actually add a JSON parsing unit (e.g. http://sourceforge.net/projects/is-webstart/) and switch to the 3.0 API of TMDb.
This should improve performance and most likely there are some nice new features in the 3.0 API.

Does the API offer a way to select the default poster, or one classified by the same language as the user language?

Unfortunately all you get is a list of images grouped into posters and backdrops. Each image is available in 6 sizes and just has an id, width and height.
It is possible to search by language but most often there are more than 20 posters just in english (the plugin actually only downloads the english ones i think).

Quote
Another issue i had is preventing PVD from downloading the webpage URL which i don't care about because i only use the API.

The URL doesn't hurt, and can be used to get to the website, should the need arise. For me, that's usually to see what other posters are available.

No thats ok but the problem is that after returning the search results and the right movie is selected (automatically or by the user), PVD starts downloading (!) the URL i added to the selected result which of course is the webpage and not the api page of the movie (damn i suck at explaining stuff in english ^^).
I then receive the html content of this page in the ParsePage function which i have no use for - in this case i just make a redirection to the movies api page.
No big issue just a bit of overhead ;)

Online Ivek23

  • Global Moderator
  • *****
  • Posts: 2739
    • View Profile
Re: TheMovieDB.org
« Reply #41 on: September 01, 2012, 11:51:48 am »
A small correction in the original language: 
for this display of  'en' is now in the 'English'.

They are also examples of how to add info in the custom field.

Original script is here.

[attachment deleted by admin]
« Last Edit: September 05, 2012, 06:50:58 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Online Ivek23

  • Global Moderator
  • *****
  • Posts: 2739
    • View Profile
Re: TheMovieDB.org
« Reply #42 on: September 01, 2012, 12:00:21 pm »
Does the API offer a way to select the default poster, or one classified by the same language as the user language?

Unfortunately all you get is a list of images grouped into posters and backdrops. Each image is available in 6 sizes and just has an id, width and height.
It is possible to search by language but most often there are more than 20 posters just in english (the plugin actually only downloads the english ones i think).

I think not only in English, but if it is there on the web pages displayed 10 posters by plugin transferred all 10 - verified.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Online Ivek23

  • Global Moderator
  • *****
  • Posts: 2739
    • View Profile
Re: TheMovieDB.org
« Reply #43 on: December 25, 2013, 01:00:01 pm »
Ivek23 asked me to create a plain delphi .psf script for TMDb - so here it is (attachment).
It basically does the same as the other script but should be easier to customize (no need to compile).

A small correction in the original language: 
for this display of  'en' is now in the 'English'.

They are also examples of how to add info in the custom field.

Original script is here.

Notice:
Since the 20 September the two scripts no work anymore (unfortunately).
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline botez

  • Member
  • *
  • Posts: 8
    • View Profile
Re: TheMovieDB.org
« Reply #44 on: December 30, 2013, 08:09:26 am »
I'd love to give the MovieDB plugin a look to see if I can update it.  Where is the source for the tmdb script?  I just see the dll available.

Online Ivek23

  • Global Moderator
  • *****
  • Posts: 2739
    • View Profile
Re: TheMovieDB.org
« Reply #45 on: December 30, 2013, 11:52:25 am »
I'd love to give the MovieDB plugin a look to see if I can update it.  Where is the source for the tmdb script?  I just see the dll available.

Original script is find here.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline botez

  • Member
  • *
  • Posts: 8
    • View Profile
Re: TheMovieDB.org
« Reply #46 on: December 30, 2013, 06:54:12 pm »
Is there any chance anyone knows of a JSON parser for pascal?  I found this: https://github.com/koldev/JsonParser, but I'm not quite sure how to get that to work in the PVD environment (if it is at all possible).  Without the JSON parser I think we can consider TMDB dead in the water :-/

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: TheMovieDB.org
« Reply #47 on: January 03, 2014, 10:23:10 pm »
You do not really need a special parser for JSON. It is totally enough to use standard text operations like Pos(), SubStr(), Copy(), Delete().
Gentlemen, you can’t fight in here! This is the War Room!

Offline CAD

  • Older Power User
  • *****
  • Posts: 168
  • I've got my eye on you!
    • View Profile
Re: TheMovieDB.org
« Reply #48 on: January 06, 2014, 03:11:24 am »
Hi nostra,

Is there any hope TMDB plugin will be updated please.
As Ivek23 says it stopped working on 20 September.
I think TMDB have new API, maybe plugin needs to be updated to take advantage of this?

Any news would be great.
three fingered salutation

Online Ivek23

  • Global Moderator
  • *****
  • Posts: 2739
    • View Profile
Re: TheMovieDB.org
« Reply #49 on: January 17, 2014, 05:22:58 pm »
TheMovieDB plugin already works, but has some disadvantages:

1. There is no link for "Click here to open the download page in browser" (see "No link for 'Click here to open the download page in browser' "), which opens the url link to the web page as shown in " Link for 'Click here to open the download page in browser' ".

2. In some movies do not even transferred poster of the film, on the web site of movie posters definitely are shown (verified with my own simple TheMovieDB.org script).
http://www.themoviedb.org/movie/226269

3. Incorrect display the results of series. For example, a series Little House on the Prairie:
Shown is the result of Little House on the Prairie (1985) (see sshot-14), correct result however, is Little House on the Prairie (1974) (see sshot-15).

4. It has already been mentioned with regard rating already in Moviedb problem topic.

That's what I've found so far.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Online Ivek23

  • Global Moderator
  • *****
  • Posts: 2739
    • View Profile
Re: TheMovieDB.org
« Reply #50 on: January 17, 2014, 05:54:25 pm »
I have a proposal to download a movie poster:

There might be a way that each user to select and set the option for the movie poster, then by the plugin also actually transfer.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: TheMovieDB.org
« Reply #51 on: January 17, 2014, 11:50:29 pm »
Uploaded another update for TMDB -  0.1.1.1. Hope I have fixed everything you have mentioned. Poster selection would be a little tricky, so I have not implemented it yet and the plugin does not download episode list.
Gentlemen, you can’t fight in here! This is the War Room!

Online Ivek23

  • Global Moderator
  • *****
  • Posts: 2739
    • View Profile
Re: TheMovieDB.org
« Reply #52 on: January 18, 2014, 10:28:59 am »
Uploaded another update for TMDB -  0.1.1.1. Hope I have fixed everything you have mentioned.

Yes, it's all what has been mentioned. Thank you very much, Nostra.

Poster selection would be a little tricky, so I have not implemented it yet ...

We are waiting for the result ...

... and the plugin does not download episode list.

There is no need at all after transfer episode list and this not necessary to add in the plugin.

And finally, now it's practically present the final version of the plugin that great and functioning properly. Thanks again.

Here is a little tip for users:

When transmitting information in the search results only confirm that result which is consistent with the title of the movie, for which is currently being sought for information and you will then also downloaded information. Otherwise, you can sneak a small inconvenience and this occurs that you overwrite the information for a similar movie which you already have in Databases, is verified.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline bsppvd11

  • Member
  • *
  • Posts: 11
    • View Profile
TheMovieDB.org
« Reply #53 on: January 19, 2014, 10:42:26 pm »
I have just tested TheMovieDB.org plugin. It seem to work good except for the language setting. Whatever language I choose in the configuration of the plugin, the info(e.g. description) come in english. I have checked on Themoviedb web site to be sure the infos were existing in those differents languages... and the infos exist.

Thank you for your help.

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
TheMovieDB.org
« Reply #54 on: January 19, 2014, 11:05:15 pm »
I will take a look at this asap
Gentlemen, you can’t fight in here! This is the War Room!

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: TheMovieDB.org
« Reply #55 on: January 20, 2014, 04:47:02 pm »
Language should work as expected in 0.1.1.2. The plugin also uses PVD UI Language if "Default" language is selected. Added an option to only download the main poster.
Gentlemen, you can’t fight in here! This is the War Room!

Online Ivek23

  • Global Moderator
  • *****
  • Posts: 2739
    • View Profile
Re: TheMovieDB.org
« Reply #56 on: January 20, 2014, 08:02:31 pm »
Language should work as expected in 0.1.1.2. The plugin also uses PVD UI Language if "Default" language is selected. Added an option to only download the main poster.

Thank you for that, is great, perfect, everything is working properly at the PVD 1x versions, but not in 0.9.9.21 version.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: TheMovieDB.org
« Reply #57 on: January 20, 2014, 08:31:47 pm »
Try 0.1.1.3 I just uploaded. It should work properly with 0.9.x as well.
« Last Edit: January 20, 2014, 08:34:35 pm by nostra »
Gentlemen, you can’t fight in here! This is the War Room!

Online Ivek23

  • Global Moderator
  • *****
  • Posts: 2739
    • View Profile
Re: TheMovieDB.org
« Reply #58 on: January 21, 2014, 08:14:20 am »
Try 0.1.1.3 I just uploaded. It should work properly with 0.9.x as well.

Yeah, it's fine even when using v0.9.9.21, thanks Nostra.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD