https://mega.nz/file/4ItVSALA#ilIAhSIlM ... NMOOFWDwLQ
THIS IS A BETA!!! I JUST TESTED IT WITH
ONLY 2 TITLES!!! IF YOU WANT TO TEST, CLOSE ANT MOVIE CATALOG, OPEN C:\ProgramData\Ant Movie Catalog\Scripts WITH EXPLORER, RENAME IMDB.ifs AS IMDB.ifs.tmp AND SAVE THE ABOVE LINK IN THIS DIRECTORY, THEN OPEN ANT MOVIE CATALOG AND TEST.
It's 02:06 a.m. here in Italy and I'm sleepy, today I have to work.
So, how this should work:
- when opening AnalyzeMoviePage() if it detects the new html (aNY piece of the new json should be ok) it opens AnalyzeMoviePage2()
Code: Select all
if (Pos('"releaseYear":{"year":', PageText) > 0) then
AnalyzeMoviePage2(PageText)
the new AnalyzeMoviePage2 is "clean"
Ok it just uses a support procedure jsonMultipleValuesToList() to iterate inside json arrays/lists
The syntax is:
Code: Select all
jsonMultipleValuesToList(PageText, DelimiterListFrom, DelimiterListTo, DelimiterItemFrom, DelimiterItemTo: string; fieldName, limit: integer)
PageText is all html code, DelimiterListFrom and DelimiterListTo are the main delimiters, DelimiterItemFrom and DelimiterItemTo are the single value/item delimiters, fieldName is the field you want to update and limit is a limit of entry (0 = no limit)
AnalyzeMoviePage2 so is just a set of procedure calls like these ones:
Code: Select all
jsonMultipleValuesToList(PageText, '"genres":{"genres":[', ']', '"text":"', '"', fieldCategory, 0);
I have not yet tested the code for all the settings but these fields should works:
- original titles
- translated titles (BUT NOT ALL THE OPTIONS)
- directors
- writers
- composers
- countries
- year
- url
- description
- comments (I DID NOT TESTED ALL THE OPTIONS)
- trivia
- aspect ratio
- languages
- picture (BUT ONLY THE MAIN POSTER, NOT ALL THE OPTIONS)
What's not working:
- length (but I'll fix asap)
What must be checked and added:
- tagline
- audio format
- all the missing options/combo/etc. etc.
- TESTTTTTTTTTTT
There are a lot of a code to check, test, add, etc. but if you want to test ..
These code could here. Here is a
formatted json (it's the json inside the html but pretty printed) and
here there is the all html code as ANT Movie Catalog get