English > Scripts and Templates
Script: TheMovieDB People [ES] (Easy API Script)
VVV_Easy_Programing:
Hello,
it's really difficult to find scripts for retrieve information for people.
Well, I make a little one which get the basic info (photo included) in Spanish (but easy to adapt for English or French, see down) from TheMovieDB.
It has an important feature: Store the URL of the person photo in ~transname~ for send to KODI in a Template (see in the forum)..
---------------------------------------------
SCRIPT: TheMovieDB_[ES]_People
API URL: http://docs.themoviedb.apiary.io/
CO-AUTHORS: VVV
Contact Web: http://contactbyweb.com/vvv-easy
---------------------------------------------
CHANGE LOG (15/01/2017):
v 0.1.0.0 VVV: initial release
---------------------------------------------
FIELD USE:
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 API SEQUENTIAL ORDER.
The Personal Video DataBase field names in comments are enclosed in "~" so they are easier to find in the script.
The WEB_SPECIFIC commentary points out the specific text for Web fields.
Use Log PVdB debug Window for looking search errors.
(Due a PVdB "GET" scripts funtions seems doesn't work with 'https' URL de v.0.2.0.0 works with API web dialog.
See 'TheMovieDB_[ES]' script for no API (take information direct from web page) scraper.)
If desired (PHOTO_URL_IN_TRANSNAME=True), it use the Field ~transname~ for storing the URL to the person photo, for send to KODI in a Template.
KNOWN ISSUES:
1. For compiling cuestions functions must be defined in the script before use (not in order of execution).
2. For the search texts for locating the fields in Web page Null '' value it's not valid. You must replaces all
escaped HTML characters (like <>&") with normal characters (like <, >,$, ").
3. It's a only "One Pass" Script: It DOES NOT makes several calls to the main program to scrape information from various pages of
the movie in the same site. It only do that for searching mode in a movie list results.
4. It has a Rondabout in BASE_URL (BASE_URL_TRUE,BASE_URL_RONDABOUT) for "cheat" GET PVdB funtion and rondabout the "https" fail.
5. Get the ~orating~ (Popularity). It's not documented in PVB Scripting Manual and in the script don't work even working in the skin.
5. In People database, PVdB don't download automaticaly the photo like in Movie database but using ListSearch it do.
Set PHOTO_DWN_RONDABOUT = True to activate the the ImageListSearch as RONDABOUT for download Photos. Because there is not choice (because its
only one photo) normaly it download without asking but if PVdB begin to ask then with PVdB preference/Plugin/Silent Enable would be
more confortable for large databases.
---------------------------------------------
//User Options
BYPASS_SILENT = False; //Set to True to ensure ShowMessage alerts (then bypass Silent PVdB preferences)
PHOTO_DWN_RONDABOUT = True; (*Set to True to activate the the ImageListSearch as RONDABOUT for download Photos.
Because there is not choice (because its only one photo) normaly it download without asking but if PVdB begin to ask then
with PVdB preference/Plugin/Silent Enable would be more confortable for large databases.*)
PHOTO_URL_IN_TRANSNAME = True; //Set to False to disable to avoid use the Field ~transname~ for storing the URL to the person photo, for send to KODI in a Template.
LANG_API_STR = '&language=es'; //WEB_SPECIFIC
//LANG_API_STR = '&language=en'; //WEB_SPECIFIC
//LANG_API_STR = '&language=fr'; //WEB_SPECIFIC
(Edito: New version down)
Ivek23:
Thanks, encouragingly, script tested in the near future, when I will find time for it.
Ivek23:
--- Quote from: Ivek23 on January 21, 2017, 09:38:10 am ---Thanks, encouragingly, script tested in the near future, when I will find time for it.
--- End quote ---
I managed to do some tests and add corrections to the TheMovieDB_People_ [ES] test script, which is also the author of the script for testing. These fixes can be added to the original TheMovieDB_People_ [ES] script.
TheMovieDB_People_ [ES] test script is attached.
Also included is the TheMovieDB_People_ [ES] test 1 7z file, which contains 4 test scripts with different code snippets when searching for results. These scripts are helpful when TheMovieDB_People_ [ES] test script does not find the correct search results in search results for certain persons. I hope that the author of the script also finds the right solution for this with the help of these scripts.
TheMovieDB_People_ [ES] test 1 7z file is attached.
Ivek23:
The script incorrectly transfers the url address
--- Quote ---http://www.themoviedb.org/person/nm0572132
--- End quote ---
and therefore does not transfer almost any information.
Ivek23:
--- Quote from: Ivek23 on July 21, 2017, 08:39:36 pm ---The script incorrectly transfers the url address
--- Quote ---http://www.themoviedb.org/person/nm0572132
--- End quote ---
and therefore does not transfer almost any information.
--- End quote ---
Changes in source code on API pages for Peoples.
Navigation
[0] Message Index
[#] Next page
Go to full version