Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
sarathkcm
Posts: 54
Joined: Thu Aug 09, 2012 3:11 pm

GetIMDBMovieDetails

Sun Aug 12, 2012 11:59 pm

Just wanted to report that GetIMDBMovieDetails works well (thanks), but it contains encoded HTML symbols such as

Code: Select all

" &Ã
etc...
Also in some cases, in the plot of movie returned, the last sentence is incomplete which is followed by few dots and then" See Full Summary"..... (for example, this Movie http://www.imdb.com/title/tt1258197/...)

User avatar
oss
Site Admin
Posts: 5901
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: GetIMDBMovieDetails

Tue Aug 14, 2012 11:59 am

send me IMDB where it contains encoded HTML symbols, so I can check it.

For See Full Summary - it is given by perl script which we use for parsing, if you want there full summary, one more page must be retrieved...

sarathkcm
Posts: 54
Joined: Thu Aug 09, 2012 3:11 pm

Re: GetIMDBMovieDetails

Tue Aug 14, 2012 10:06 pm

send me IMDB where it contains encoded HTML symbols, so I can check it.
As an example : Movie Fast & Furious
IMDB : 1013752

Here is the Code i used for calling GetIMDBDetails from online debugger on this site

Code: Select all

<param> <value><string>fkl840r5vl4apv0n0l3pnmrdj1</string></value> </param> <param> <value><string>1013752</string></value> </param>
and for the title of the movie it returns

Code: Select all

<member> <name>title</name> <value> <string>Fast & Furious</string> </value> </member>

The following have this problem too, mostly in the "plot" part.... (I didn't checked the following from the online debugger, these were shown by my software, I've checked the above movie from online debugger, to verify that its not the problem of my xml parser).

IMDB IDs:

0101764
0395677
0342965
0163025
0822847
0449088
0367479
0454848
0364970
1655442
1258197
0406759
0928154
0119654
1270798
0258463


Most of these have encoded symbols in the "plot", while some have in the "cast"

For See Full Summary - it is given by perl script which we use for parsing, if you want there full summary, one more page must be retrieved...
Is there any way I can retrieve full summary through opensubtitles api?


Also,
I have made a list of all movies from my harddisk (around 140) using my piece of software, which uses opensubtitles api to identify movie files. when I look across that list, i see many film titles that I do not have on my computer.... I hope something is being done to clean the database from wrong hash entries....:)

User avatar
eduo
Posts: 716
Joined: Sat Feb 10, 2007 1:40 am
Location: Information Technology
Contact: ICQ Website Yahoo Messenger

Re: GetIMDBMovieDetails

Sun Nov 04, 2012 5:15 pm

Quick note: As I recall, the ampersand is forbidden in most cases for XML (and I believe XMLRPC is one of them). This may be the reason it shows by default encoded and why it may be an "error" if in the API it ever shows decoded.
http://eduo.info/
[url=http://eduo.info/soleol/]OpenSubtitles from your desktop: SolEol for Mac/Windows/Linux[/url]
[url=http://forums.plexapp.com/index.php?showtopic=325&st=0&p=2480&#entry2480]My current episode processing work flow[/url].

sarathkcm
Posts: 54
Joined: Thu Aug 09, 2012 3:11 pm

Re: GetIMDBMovieDetails

Wed Nov 07, 2012 7:02 am

hm... I thought ampersand is written as "&" in xml.... My xml parser doesn't decode "&" to "&" but it does read "&" correctly as "&"...
Anyway I replaced the occurrence of all those encoded characters with actual character before displaying it... :)

User avatar
eduo
Posts: 716
Joined: Sat Feb 10, 2007 1:40 am
Location: Information Technology
Contact: ICQ Website Yahoo Messenger

Re: GetIMDBMovieDetails

Wed Nov 07, 2012 10:27 pm

hm... I thought ampersand is written as "&" in xml.... My xml parser doesn't decode "&" to "&" but it does read "&" correctly as "&"...
Anyway I replaced the occurrence of all those encoded characters with actual character before displaying it... :)
http://en.wikipedia.org/wiki/List%5Fof% ... 5Fin%5FXML
http://stackoverflow.com/posts/4940233/revisions
http://stackoverflow.com/posts/4940233/revisions

The unicode code point is as valid as the html entity, but it's more resilient to parsing errors.

Code: Select all

they must be escaped using either numeric character references or the strings " & " and " < " respectively.
http://eduo.info/
[url=http://eduo.info/soleol/]OpenSubtitles from your desktop: SolEol for Mac/Windows/Linux[/url]
[url=http://forums.plexapp.com/index.php?showtopic=325&st=0&p=2480&#entry2480]My current episode processing work flow[/url].

sarathkcm
Posts: 54
Joined: Thu Aug 09, 2012 3:11 pm

Re: GetIMDBMovieDetails

Thu Nov 08, 2012 8:15 pm

I got what you said... Thanks for the reply... :wink:

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 6 guests