Author |
Topic |
|
rocman
Junior Member
Australia
117 Posts |
Posted - 17 Feb 2014 : 21:59:11
|
Hi.
I wrote a new script for the TV API of TheMovieDB.org.
The script supports the following features: Languages: - English - German - Italian - French
Movie Search: All TV-Show titles in the search list are english! Nevertheless your import will be localized in your choosen language! If you want localized movie titles in the search list you have to edit the script (change language=en to language=de or language=it or language=fr in #WEBQUERY# string)! The script checks if there is a translated version of your searched TV-Show on TMDb. If so it shows this in your search results or the script falls back to english import. In front of each search result you see what language will be imported. Furthermore you can see the release year.
TV-Show data: - ID - title, translated title - original title - status - global actors (name, character) - actors extended data (picture [scaled or full size], birthday, deathday, biography, homepage, birthplace [town and country], filmography, webid) - genre/s - runtime - TMDb rating - release year, first air date - production countries - language/s - broadcasting network/s - homepage - writer/s - plot - poster/s (scaled or full size) - backdrop/s / Fanart (full size only) - IMDB-Link
Episode Details: - title, original title - episode number and season - air date - production code - rating - writer/s - director/s - cast - plot - still image
Options: - language (EN, DE, IT, FR) - poster (none, only first one, all) - poster size (scaled to width 500, full size) - backdrop (none, only first one, all) - detailed actors information (no, yes) - overwrite existing detailed actors information (no, yes) -> speed up import if actor already exists in database - actors picture (no, yes) - actors picture size (scaled to width 185, full size) - download episode list and detailed information
You can download the script here: https://sourceforge.net/projects/xmm-scripts/files/TheMovieDB%20%28TV%29/
Feel free to test the script. Maybe there are some bugs... but with more testers we will find them a bit faster... |
|
JDommi
Administrator
Germany
4655 Posts |
Posted - 18 Feb 2014 : 10:52:57
|
I am just testing "Arrow". It took nearly 5 minutes (!) until the script showed the search results... After selecting the correct show I had a look at the block statisrics: loadoptions = 10 and setvariables = 17. ???
Another 10 minutes later - still no progress.
*EDIT* After further 10 minutes I used the TaskManager as even the STOP SCRIPT button didn't work. Same test started with "The Walking Dead". After 2 minutes I got 3 entries to select. 5 Minutes later: TaskManager... |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
Edited by - JDommi on 18 Feb 2014 11:27:36 |
|
|
rocman
Junior Member
Australia
117 Posts |
Posted - 18 Feb 2014 : 17:31:44
|
Weird... sounds like an endless loop. Hmm... I will make some more tests. Thanks for reporting. |
|
|
JDommi
Administrator
Germany
4655 Posts |
Posted - 18 Feb 2014 : 20:40:18
|
Yes, but anyway it's a wonder that the button doesn't stop the script. |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
rocman
Junior Member
Australia
117 Posts |
Posted - 18 Feb 2014 : 21:42:02
|
quote: Originally posted by JDommi
Yes, but anyway it's a wonder that the button doesn't stop the script.
That happens quite often if you're testing scripts...
Hmm... I can't find an endless loop. Sometimes the script works without problems on the same TV-Show, sometimes it stops when downloading the TV-Show translation informations - the associated temp file remains at 0.0 kByte (the download never starts, i don't know why). The script stops at instruction: "#OPENNEWWEB#=#08#".
Looks like more testing for me... |
|
|
JDommi
Administrator
Germany
4655 Posts |
Posted - 18 Feb 2014 : 21:49:58
|
Well, as I remember I had the hanger on webslot 4 and always after selecting the show. But up to 5 MINUTES for grabbing the main show titles is really hard, too. Especially for testing. |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
rocman
Junior Member
Australia
117 Posts |
Posted - 18 Feb 2014 : 22:10:56
|
Ah yes, it was webslot 4 before my changes... I've uploaded a new version of the script (I've changed from OPENWEBSLOT to OPENNEWWEB). https://sourceforge.net/projects/xmm-scripts/files/TheMovieDB%20%28TV%29/
But I think the "stop bug" is still there. I suspect that the TV-API has some server problems at the moment...? Because if you try multiple times suddenly the scripts works. Stupid thing is that you have to kill the whole XMM process if you run in the "stop bug"... |
|
|
JDommi
Administrator
Germany
4655 Posts |
Posted - 18 Feb 2014 : 22:15:54
|
You're right! The english version grabs the data immediately!
Quick test with "The Walking Dead": Year = ok Original Title = ok Language = ok Length = ok Plot = ok Studio = ok Genre = ok IMDB-Link = ok Cover = ok Fanart = ok Actors = ok (no web id) Actor's Pic = ok Country = ok - but not shown in the card
MPAA = missing Crew = only one writer Weblink = WRONG as link has /movie/ instead of /tv/ on tab WEB it seems to be ok???? Episodes = not all are taken S01=6 okay all other seasons take only 9 of 13 episodes
|
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
rocman
Junior Member
Australia
117 Posts |
Posted - 18 Feb 2014 : 22:42:28
|
quote: Actors = ok (no web id)
That is intentionally - I thought most of you uses IMDB-IDs, but I can add that.
quote: Country = ok - but not shown in the card
That is correct. The API only delivers the country code like US, CA, etc. There are two possibilities: 1. I can add some SUBSTITUTEWORDs to script or 2. small change of the countrys.js file in MovieCards folder.
quote: MPAA = missing
At the moment there is no MPAA information on TMDb for TV-Shows.
quote: Crew = only one writer
There is only one on TMDb for The Walking Dead.
quote: Weblink = WRONG as link has /movie/ instead of /tv/ on tab WEB it seems to be ok????
Hmm... where can I find this Weblink? I only know about the WEB tab but this is ok.
quote: Episodes = not all are taken S01=6 okay all other seasons take only 9 of 13 episodes
Sure? I tried twice and everything was ok: S01=6, S02=13, S03=16, S04=16 |
Edited by - rocman on 18 Feb 2014 22:43:25 |
|
|
JDommi
Administrator
Germany
4655 Posts |
Posted - 19 Feb 2014 : 07:24:05
|
Quick reply before going to work... - web id: I don't need it personally as I use IMDB, too. But other users? Maybe an option for? - country: better would be in the country.js - mpaa: ok, haven't recognized that - crew: well, wrong said by me. I meant that only the writer was taken. No director nor any other member of the crew. - weblink: the one you click on the card. I used it to check the info and I got a movie with the same id as the show. In the tab it is shown correctly. Therefor I had added the question marks. - episodes: I tried it only once. On selecting all episodes were shown (and chosen!). But the result was 6/9/9/9 episodes shown on the card. |
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
Edited by - JDommi on 19 Feb 2014 07:24:23 |
|
|
JDommi
Administrator
Germany
4655 Posts |
|
rocman
Junior Member
Australia
117 Posts |
|
JDommi
Administrator
Germany
4655 Posts |
Posted - 23 Feb 2014 : 19:05:11
|
Both thumbs up!!!
Now it works for german, too
- The weblink is still wrong. But I think it's a matter of the html card. Seems as if there is an unwanted replacement for that field. - Multiple genres are not correctly on the html card. But I think that's a change on the separator (before: / now: |) in XMM8.
- Episode runtime is not taken - Guest Stars ??? I only have checked shows without guest stars. So I don't know if that function works. If already implemented.
Request: As there is additional info like season plot or other special season info I think thtat it would be a good idea to store these info as episode -1 of every season. Plot and episode still should be taken as well as the TV Season Facts to episode custom fields. Plot Keywords can be taken, too.
|
In order to achieve what is possible, you have to try the impossible over and over again. Hermann Hesse |
|
|
rocman
Junior Member
Australia
117 Posts |
|
Alessio Viti
Forum Admin
Italy
9171 Posts |
|
|
Topic |
|