English > Scripts and Templates

Script: TheMovieDB [ES] (Easy API Script)

(1/11) > >>

VVV_Easy_Programing:
I attached my script to scrape the information of the web TheMovieDB in Spanish. It is made on the basis of 'FilmAffinity [ES] 2014' script with some improvements.
If you want to try use the name of movies in Spanish  "La vida de Pi"="Life of Pi" (finds at first) or "Padrino"="Godfather" to search by list (the script no handles advanced search).
On the other hand I tried to make it as easy as possible to understand for subsequent public use. It also includes an example so that it can adapt. I copy the introduction of Script:
"  This is a script designed to be easy to understand and to adapt. For this reason may be missing some fields and
  the programming may not be smart. It's a only "One Pass" Script and get data in WEB SECUENTIAL ORDER.
  The Personal Video Data field names in comments are enclosed in "~" so they are easier to find in the script.
  The WEB_SPECIFIC comentary points out the specific text for Web fields.
  Use with your editor's search function to find applicable code sections and adapt script."

(Edito: New version down)

Ivek23:
Script works fine, but does have drawback:


--- Quote from: Ivek23 on January 19, 2014, 03:26:40 pm ---1.  Instead of this
--- Code: ---  //Get ~Duration~. (User option GET_DURATION)
    if GET_DURATION then begin
      PVDField:='duration';
.
.
.
--- End code ---
must be as follows

--- Code: ---  //Get ~Duration~. (User option GET_DURATION)
    if GET_DURATION then begin
      PVDField:='length';
.
.
.
--- End code ---
duration is incorrectly displayed

--- Code: ---web page           PVD field
91 min                0:01:31
152 min              0:02:33

--- End code ---
proper duration is as follows

--- Code: ---web page           PVD field
91 min                1:31:00
152 min              2:32:00

--- End code ---

--- End quote ---

VVV_Easy_Programing:
Thank you very much for your work. I think I've corrected the mistakes you point me:
            v 0.1.2.0   VVV: Corrections: Duration (field name and length in seconds).
                             Improvements: RemoveTags (Simplify the Web delimitators choice)
                                           Search only in movies
(Edito: New version down)

Ivek23:
Yeah, now that's fine, but the problem is AKA field:

In movie Lolita(1962) note the this one record in AKA field
--- Code: ---About TMDb,Contact Us,API,API Libraries
--- End code ---

For other movie I've tested is OK, but there is a small cosmetic problem, appears as follows
--- Code: ---100 Ragazze,100 Garotas,100 chicas,100 Filles
--- End code ---
on the web site is as follows:100 chicas(2000)
--- Code: ---100 Ragazze
100 Garotas
100 chicas
100 Filles
--- End code ---

nostra:
TheMovieDB plugin 0.1.1.2 now correctly interprets the language option...

Navigation

[0] Message Index

[#] Next page

Go to full version