Personal Video Database

English => Development => Scripts and Templates => Topic started by: Thiezar on May 22, 2010, 12:25:25 pm

Title: MyMovies.it script for movies and people
Post by: Thiezar on May 22, 2010, 12:25:25 pm
Hi everybody  ;D
I noticed PVD doesn't have a script for retrieving information from MyMovies.it which is a great movie database.
Since I'm italian and I want my movie and people informations in italian, and I really dont' like the existing plug-in for FilmUP.it because there aren't enough data, I've made two scripts.  ;)
They work fine in general but they have some bugs I'm working on.
For example sometimes, if there isn't a poster or a photo aviable they go into loop  :-\
Due to a bad organization of the data in MyMovies.it often the awards aren't registered very well, expecially the name of the winner/nominated.
However I let you try my scripts while waitin for bug fixes.
Enjoy and make suggestions please  :)

[attachment deleted by admin]
Title: Re: MyMovies.it script for movies and people
Post by: Thiezar on May 25, 2010, 03:07:47 pm
Ok i fixed a few bugs. Now it should work fine. It should not run into loop anymore. I updated the attachments into the first post.
Title: Re: MyMovies.it script for movies and people
Post by: Zacca on May 29, 2010, 05:33:06 pm
I test it now

Mille grazie  ;D
Title: Re: MyMovies.it script for movies and people
Post by: Zacca on May 29, 2010, 05:47:02 pm
O ho qualche problema io o non salva l'URL della scheda nella chiamata URL
The script don't save the URL

Cmq complimenti..bello scriptino  ;D
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on May 29, 2010, 08:31:02 pm
Zacca,rating may manipulated like this here (http://www.videodb.info/forum_en/index.php?topic=1818.0msg8729#msg8729) sure verified work.
Title: Re: MyMovies.it script for movies and people
Post by: Thiezar on May 30, 2010, 02:55:05 pm
O ho qualche problema io o non salva l'URL della scheda nella chiamata URL
The script don't save the URL

Cmq complimenti..bello scriptino  ;D

Non capisco...intendi dire che non registra come informazione il campo URL o che lo script si blocca quando entra nella scheda del film.
Nel primo caso no, non lo fa...non mi è mai piaciuto l'URL nelle mie schede dei film e non l'ho fatto :-p ma se volete lo metto.
Nel secondo caso spiegami meglio il problema e vedrò di risolverlo. Magari posta anche il Log.
Title: Re: MyMovies.it script for movies and people
Post by: claudio54 on May 31, 2010, 11:28:54 pm
C'è un problema sull'update dei campi quando questi sono già valorizzati. Ad esempio non modifica/corregge il titolo se diverso da quello presente sul db, se la descrizione c'è già (magari presa da un altro script o inserita a mano)  non la sostituisce . Cosi gli altri campi. Comunque grazie per il lavoro svolto.
p.s. : non c'è possibilità di scaricare anche immagini?
Title: Re: MyMovies.it script for movies and people
Post by: Zacca on June 01, 2010, 09:01:51 pm
Non capisco...intendi dire che non registra come informazione il campo URL o che lo script si blocca quando entra nella scheda del film.
Nel primo caso no, non lo fa...non mi è mai piaciuto l'URL nelle mie schede dei film e non l'ho fatto :-p ma se volete lo metto.
Nel secondo caso spiegami meglio il problema e vedrò di risolverlo. Magari posta anche il Log.

Nel senso di... non registra l'http:..... nel campo URL che mi sembra, per gli standard degli altri script, che sia meglio metterlo. cmq fai te  ;)
Title: Re: MyMovies.it script for movies and people
Post by: Thiezar on June 01, 2010, 10:28:31 pm
non modifica/corregge il titolo se diverso da quello presente sul db, se la descrizione c'è già (magari presa da un altro script o inserita a mano)  non la sostituisce . Cosi gli altri campi.

Per il titolo all'inizio credevo fosse meglio che l'utente a decidesse il titolo esatto quindi lo script non scarica il titolo dal sito. Però ora credo sia meglio scaricarlo. Provvederò.
Per gli altri campi devi configurare lo script nelle impostazioni come tutti gli altri. Per ogni campo ci sono 3 opzioni:
-quadratino vuoto: il campo non viene aggiornato
-quadratino pieno: il campo viene aggiornato solo se vuoto
-spunta: il campo viene sempre aggiornato
Title: Re: MyMovies.it script for movies and people
Post by: Thiezar on June 01, 2010, 10:30:48 pm
Nel senso di... non registra l'http:..... nel campo URL che mi sembra, per gli standard degli altri script, che sia meglio metterlo. cmq fai te  ;)

No in questo caso è proprio lo script che non scarica l'URL. Non l'ho fatto. Però a quanto pare la cosa crea problemi con le relazioni del database. Ecco perchè gli altri script lo mettevano sempre XD. Qundi correggerò questa cosa. A breve troverai un update ;-)
Title: Re: MyMovies.it script for movies and people
Post by: claudio54 on June 01, 2010, 11:06:30 pm
ciao, ti confermo che anche mettendo la spunta nella configurazione, non vengono aggiornati i campi ,infatti resta il valore precedente se c'era. Ad esempio nella descrizione, se vuota, la riempie, ma se è già valorizzata non la sostituisce. Cosi anche per gli altri campi (ho messo il segno di spunta su tutti).
Title: Re: MyMovies.it script for movies and people
Post by: claudio54 on October 08, 2010, 01:05:14 pm
Novità ?
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on May 18, 2011, 12:49:57 pm
When I fixed this rating:

Previous proper
curPos := curPos + 26;

Now proper
curPos := curPos + 47;

and rating functions.

[attachment deleted by admin]
Title: Re: MyMovies.it script for movies and people
Post by: Cycloptux on September 05, 2011, 01:46:31 pm
Mymovies scripts seems kind of broken... Not sure if it's me, but it's been a couple weeks that apparently, when looking for a movie on mymovies.it, when the search box appears to confirm the movie, the first 5 characters don't appear. That brings to an error when selecting the movie. This happens with both mymovies and mymovies_NotFound scripts, and they were both working before that day. I attached some screenshots for you to see on your own. Using mymovies or mymovies_NotFound gives exactly the same result (same errors, 500 or 404). Is it just me?
I've already sent an email to nostra about this, he said he'd investigate but I guess he's busy at the moment.

(http://img843.imageshack.us/img843/803/dwm2011082600155193.th.jpg) (http://img843.imageshack.us/img843/803/dwm2011082600155193.jpg)(http://img714.imageshack.us/img714/7990/dwm2011082600160125.th.jpg) (http://img714.imageshack.us/img714/7990/dwm2011082600160125.jpg)(http://img98.imageshack.us/img98/4079/dwm2011082600160535.th.jpg) (http://img98.imageshack.us/img98/4079/dwm2011082600160535.jpg)(http://img16.imageshack.us/img16/1244/dwm2011082600160995.th.jpg) (http://img16.imageshack.us/img16/1244/dwm2011082600160995.jpg)(http://img62.imageshack.us/img62/3383/dwm2011082600161383.th.jpg) (http://img62.imageshack.us/img62/3383/dwm2011082600161383.jpg)(http://img695.imageshack.us/img695/2131/dwm2011082600161712.th.jpg) (http://img695.imageshack.us/img695/2131/dwm2011082600161712.jpg)(http://img710.imageshack.us/img710/265/dwm2011082600162538.th.jpg) (http://img710.imageshack.us/img710/265/dwm2011082600162538.jpg)(http://img705.imageshack.us/img705/7460/dwm2011082600163007.th.jpg) (http://img705.imageshack.us/img705/7460/dwm2011082600163007.jpg)
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on September 06, 2011, 08:15:47 am
Welcome Cycloptux.

Until solve problems described script, here's a temporary solution to your problems called mymoviesthiezar_movie_mod, which otherwise might seem a bit slower than the previously added mymoviesthiezar_movie.

It is now added to the URL in mymoviesthiezar_movie_mod script.

In previous versions mymoviesthiezar_movie url not added in script, so there was no transfer URL information.

[attachment deleted by admin]
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on September 06, 2011, 12:44:20 pm
A little advice:
When searching for information used first mymoviesthiezar_movie_mod script, but if no transmission all data or a movie poster, you can use the above problematic script for additional information, because then you will have found work for URLs.
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on September 06, 2011, 05:23:00 pm
Here are the above-mentioned problematic script for testing:

mymovies_mod    attached
mymovies_NotFound_mod     attached

Please contact us here to know how it works, because then the script will also be available to other users on the auto-update system.

[attachment deleted by admin]
Title: Re: MyMovies.it script for movies and people
Post by: Cycloptux on September 07, 2011, 01:26:12 pm
They both seemed to work, had a couple bugs while importing but I guess they were not linked to the script but it was PVD itself (it failed recognizing a movie title from the file name and it duplicated a movie when switching import script, but it all worked on the second try). Had only 1 movie that 404'd so I couldn't test the NotFound script a lot, but the normal one worked 16/16.
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on September 07, 2011, 02:14:59 pm
Thank you for your feedback, Cycloptux.
Title: Re: MyMovies.it script for movies and people
Post by: Cycloptux on September 07, 2011, 04:28:13 pm
Found a bug, don't really know what exactly caused it, but when trying to import "The Truth About Love", this message pops:

(http://img97.imageshack.us/img97/2008/dwm2011090717223568.th.jpg) (http://imageshack.us/photo/my-images/97/dwm2011090717223568.jpg/)

And it keeps appearing every time I try to select, edit, delete (etc) the movie. That sometimes appears twice in a row. It only stops popping if I clear attributes. Using other import scripts doesn't trigger the error, while both modded mymovies scripts do.
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on September 08, 2011, 08:54:38 am
Found a bug, don't really know what exactly caused it, but when trying to import "The Truth About Love", this message pops:

(http://img97.imageshack.us/img97/2008/dwm2011090717223568.th.jpg) (http://imageshack.us/photo/my-images/97/dwm2011090717223568.jpg/)

And it keeps appearing every time I try to select, edit, delete (etc) the movie. That sometimes appears twice in a row. It only stops popping if I clear attributes. Using other import scripts doesn't trigger the error, while both modded mymovies scripts do.

Does this only happens in this movie!

Actually this is not really bug in the script, the problem is more on The Truth About Love movie web site (http://www.mymovies.it/dizionario/recensione.asp?id=47202) on which the data are not complete.
An example is The Transporter movie web site (http://www.mymovies.it/dizionario/recensione.asp?id=34616) that provides complete data,
and conditionally speaking bug is not to bug.

A little advice:
Before you do New Entry Movie and its data, you make a backup copy of an existing database data, for example, below mentioned error.

When these signals such an error (sshot-1 picture attached), first do this, as you mentioned earlier, then go to Tools > Prefereces > Plugins > Mymovies and de-select, in this case Counrty (sshot-2 image attached), then Run the script again and it should work without the above error (sshot-3 picture attached). So for me it works.
Then again, this box is marked, when you make a new entry to the movie all the time if - once again back to this error occurs.

BTW:
I am not the author of scripts, which are here mentioned, only to help users solve problems, as far as I can.


[attachment deleted by admin]
Title: Re: MyMovies.it script for movies and people
Post by: Cycloptux on September 09, 2011, 12:05:32 pm
Thanks for the help, managed to import that movie without the country off.
Just realized a very similar message appears when I try importing Fast And Furious Tokyo Drift, although this time it doesn't say what caused the error...
I know you didn't write the code, but I'll try anyways:

(http://img221.imageshack.us/img221/1751/dwm2011090912591091mizqd.th.jpg) (http://imageshack.us/photo/my-images/221/dwm2011090912591091mizqd.jpg/)

This is the debug log, don't know if it can help:

http://pastebin.com/6YyMWwUS (http://pastebin.com/6YyMWwUS)

Thanks in advance!
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on September 09, 2011, 01:12:44 pm
In this case I'm powerless, Nostra here might be a something in help or author of this script.
Looks, however, that changes taking in place there.
Title: Re: MyMovies.it script for movies and people
Post by: Thiezar on January 18, 2012, 12:10:57 pm
Ok people, I'm really sorry. I abandoned all of you and my script. I would like to thank who fixed a few bugs in my old script.
I'm using PVD again now and, since my old MyMovies script sucks I've written a new one. It should work quite fine. I tested it with some movies, but it's still a beta, so use it carefully :-)



[attachment deleted by admin]
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on January 20, 2012, 07:04:07 am
I tested a bit, but I found some weaknesses:
Posters do not always pass (tested at about 50 movies, at least half of these movies there was no transfer poster on the web page poster it was).
According to the latest version of your or the latest version of the script to auto-update system now missing tagline (I think on this red description of poster on the web page), awards.
Search Results for missing such a director.
Title: Re: MyMovies.it script for movies and people
Post by: Thiezar on January 20, 2012, 12:34:04 pm
I never had problems with posters O.o Could you please tell me a couple of movies with this issue?
About awards: yes, they're missing... I'm still working on it.
Sorry but I don't get the tagline and search results part, what do you mean? :-/
 
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on January 20, 2012, 03:55:58 pm
Quote
I never had problems with posters O.o Could you please tell me a couple of movies with this issue?
8 Mile  (http://www.mymovies.it/dizionario/recensione.asp?id=34346)
Ab-normal Beauty  (http://www.mymovies.it/dizionario/recensione.asp?id=61048)
L'Atalante (http://www.mymovies.it/dizionario/recensione.asp?id=2314)
The Transporter  (http://www.mymovies.it/dizionario/recensione.asp?id=34616)
Star Trek: Enterprise - Stagione 1  (http://www.mymovies.it/dizionario/recensione.asp?id=37369)

Quote
Sorry but I don't get the tagline and search results part, what do you mean?

8 Mile  --  > qualcosa di più di un'icona musicale prestata al cinema

Here I thought, images attached.




[attachment deleted by admin]
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on January 20, 2012, 03:58:18 pm
Quote
search results part, what do you mean?

Here I thought, images attached.



[attachment deleted by admin]
Title: Re: MyMovies.it script for movies and people
Post by: Thiezar on January 20, 2012, 04:39:30 pm
This script gets only italian posters, so if this is missing (like the movies you mentioned) the poster will not be downloaded.
Example: 8-Mile has only a thumbinail, not a real poster. The transporter has only the english poster.
Anyway, I will let the script download both the italian poster and the first foreign poster aviable. There will be 2 posters (or just one, it depends on which poster is aviable or not) for each movie, for now. It's difficult to get the italian OR the english poster due to the organisation of the MyMovies.it site. I will try it later to write a better script to avoid 2 posters.
I will add director in the search results also.
About tagline: well, that pink sentence is just a quote of the review of the movie. It doesn't describe the movie itself and it's quite aimless in my opinion... but ok, I will try to include it.
Title: Re: MyMovies.it script for movies and people
Post by: Thiezar on January 20, 2012, 05:25:30 pm
Done. Try this update.

[attachment deleted by admin]
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on January 20, 2012, 07:38:08 pm
Quote
Example: 8-Mile has only a thumbinail, not a real poster. The transporter has only the english poster.

A little look at this two mymovies_mod and mymovies_NotFound_mod (http://www.videodb.info/forum_en/index.php/topic,1946.msg13521.html#msg13521) script because these scripts is download a poster for this movie.
Title: Re: MyMovies.it script for movies and people
Post by: goddert on January 20, 2012, 08:32:12 pm
Quote
A little look at this two mymovies_mod and mymovies_NotFound_mod script because these scripts is download a poster for this movie.

It's the thumbnail (from the main page) which is downloaded. Not a poster.

If anyone wants really this thumbnail (as fallback). One has to follow this way:

if exists <td class="rec_link_disattivo"> with a poster section (or look for the link "locandina". If it exists it points to the poster section)  then take the first poster of the poster section
else take the thumbnail of the main page.

You can't take the title attribute to locate the "locandina italiana" because sometimes they call it poster (although it is the "locandina italiana" - e.g. Baciami piccina) and sometimes they call it "locandina italiana".

In the end you can't really distinguish between foreign and Italian posters. I would take the first poster you find in the poster section (if exists an Italian poster 95% it is the first poster in the poster section). Otherwise take that thumbnail.

Personally I'd prefer to use another script to get a real poster if there is only a thumbnail.

By the way the page is a mess. They mix the mobile page (pad.mymovies.it) with the normal page (www.mymovies.it) which makes parsing a difficult.
Title: Re: MyMovies.it script for movies and people
Post by: Thiezar on January 20, 2012, 09:16:18 pm
goddert got the point on this script.
I really don't want to download a thumbinail. So I did as goddert says: download the first poster (if exists) because it's 95% italian. In my last update the script downloads the first two posters (95% an italian and an alternative foreign poster).
The page is really a mess. There aren't HTTP elements identification or a standard structure so the script has to check a lot of conditions.
Not to mention the search engine: a nightmare. I'm in trouble with the mymovies peoples script right now because of it.
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on January 21, 2012, 08:07:04 am
Done. Try this update.

Now is better, but I have a suggestion:
this
Code: [Select]
AddSearchResult(Title+' ['+Director+']', '', Year, URL, '');maybe the replaced by this
Code: [Select]
AddSearchResult(Title+' ('+Year+') '+'   '+Director, '', '', URL, '');  is more evident in the search results.
Title: Re: MyMovies.it script for movies and people
Post by: Ivek23 on January 14, 2013, 11:03:32 am
He made a small cosmetic correction (better appearance for the download section).

Script is attached, is also available  via the program's auto-update system.

[attachment deleted by admin]