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.
pannal
Posts: 10
Joined: Fri Nov 20, 2015 1:34 am

Re: Search by movie file name

Fri Nov 27, 2015 2:15 am

Could you update the API to return the matching alternative release names, also?

That would make "tag"-matching useful, which it isn't that much, currently.

pannal
Posts: 10
Joined: Fri Nov 20, 2015 1:34 am

Re: Search by movie file name

Fri Nov 27, 2015 2:37 am

Doesn't work for this query, though:

Code: Select all

<param> <value><string>a1ll4cogkk64h2n9mg0pln7q24</string></value> </param> <param> <value> <array> <data> <value> <struct> <member> <name>tag</name> <value><string>Crossing Lines (2014) S02E10 1080p HDTV NL Subs SAM TBS.mkv</string> </value> </member> <member> <name>sublanguageid</name> <value><string>all</string></value> </member> </struct> </value> </data> </array> </value> </param>

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

Re: Search by movie file name

Sat Nov 28, 2015 12:46 pm

ok, I checked code once again, it was slight error in sql, so in some cases it didnt work.

Now it should be OK, please test (there might be 24 hours cache expiration for tag searching)

tag should be matching also releasenames and much more, we got around 54 million tags for now...

pannal
Posts: 10
Joined: Fri Nov 20, 2015 1:34 am

Re: Search by movie file name

Sat Nov 28, 2015 4:37 pm

Thanks. Doesn't work yet, I will check back later to see whether it's a caching issue.
tag should be matching also releasenames and much more, we got around 54 million tags for now...
I know that it does. But it would help massively if you could add all known alternative releasenames to the API results of SearchSubtitles.

For example: http://www.opensubtitles.org/en/subtitl ... /pola-x-sr
I see two different known movie filenames - but I don't get that information using the API.

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

Re: Search by movie file name

Sat Nov 28, 2015 4:51 pm

Yes, no information in API, but you should be able to search for those info.

pannal
Posts: 10
Joined: Fri Nov 20, 2015 1:34 am

Re: Search by movie file name

Sat Nov 28, 2015 5:19 pm

Is it possible to add the alternative release names info to the API results? Or is that too much work?

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

Re: Search by movie file name

Sat Nov 28, 2015 6:32 pm

yeah, it is problem, thats why also now it is on website as AJAX. 1 Subtitle can have many subtitle files, 1 subtitle file can have many movie hashes, 1 movie hash can have many movie names = releases.

pannal
Posts: 10
Joined: Fri Nov 20, 2015 1:34 am

Re: Search by movie file name

Sun Nov 29, 2015 4:15 am

Got it. Do you suggest to use the same AJAX calls in that case?

Edit: I don't really get it. I query for "Crossing Lines (2014) S02E10 1080p HDTV NL Subs SAM TBS.mkv" on OpenSubtitles.org, via HTTP, not API.
The HTTP Response I get returns all of the alternative release names in its initial response - not in any AJAX call you told me about.

For example (single example, "Crossing.Lines.S02E10.HDTV.Subtitulado.Esp.SC.avi" and "Crossing Lines (2014) S02E10 1080p HDTV NL Subs SAM TBS.mkv" are returned, also):

Code: Select all

<a class="none" href="http://dl.opensubtitles.org/en/download/file/1954572273"><img width="16" height="16" src="http://static.opensubtitles.org/gfx/icons/star-off.gif" alt="Subtitle filename" title="Subtitle filename" />Crossing Lines - 02x10 - The Long Way Home.720p.BluRay.NTb.English.C.orig.srt (50851bytes) </a><a href="javascript:void(0)" onclick="ToggleSubtitlesPreview('1954572273', 'English', 'CP1252'); return false">show preview</a><img width="15" height="6" src="http://static.opensubtitles.org/gfx/icons/arrow-down.gif" /><div style="display:none;" id="sub_subtitle_preview_1954572273"><div style="overflow:auto;height:120px;width:580px;border-bottom: 1px solid #aaa;border-top: 1px solid #aaa;margin:2px;text-align:left;" id="sub_subtitle_preview_text_1954572273"><img style="text-align:left" height="16" width="16" alt="Working..." id="subtitle_preview_ajax_updater_1954572273" src="http://static.opensubtitles.org/gfx/icons/film-band-16px.gif" /></div></div><div style="text-align: left"><img width="14" height="14" src="http://static.opensubtitles.org/gfx/icons/px/sitemap/sitemap-yellow.gif" alt="&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;Hash - BSPlayer v2.68" title="&#10;&#9;&#9;&#9;&#9;&#9;&#9;&#9;Hash - BSPlayer v2.68" /><a rel="nofollow" title="Download - crossing.lines.s02e10.brrip.x264-fum.mp4" href="/en/LKkzCJAlo3AmnJ5aYzkcozImYaZjZzHkZP5vpaWcpP54ZwL0YJM1oF5gpQD=">crossing.lines.s02e10.brrip.x264-fum.mp4</a>
If that's returned in the initial response, why can't "crossing.lines.s02e10.brrip.x264-fum.mp4" be in the API SearchSubtitles endpoint as "movie filenames"?

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

Re: Search by movie file name

Sun Nov 29, 2015 9:29 am

you will get exactly same results as shown at

this

Thats what you want, right ?

(I checked, it is still cached - 0 results)

EDIT: I manually expired cache, so now it returns results.

I see what you mean, you want movie names from "http://www.opensubtitles.org/en/subtitl ... ay-home-en" - the problem this is detail page, it would be one more query per result. When search by TAG is working, I guess it is not really needed?

pannal
Posts: 10
Joined: Fri Nov 20, 2015 1:34 am

Re: Search by movie file name

Fri Dec 04, 2015 10:43 am

Looks good, thanks!
I see what you mean, you want movie names from "http://www.opensubtitles.org/en/subtitl ... ay-home-en" - the problem this is detail page, it would be one more query per result. When search by TAG is working, I guess it is not really needed?
I will try and see how it goes with the tag matching, but I guess it should be enough :)

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

Re: Search by movie file name

Fri Dec 04, 2015 10:51 am

good :) let me know then.

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 15 guests