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.
guidupuy
Posts: 16
Joined: Wed Dec 12, 2012 6:33 pm

Search by movie file name

Mon May 13, 2013 7:39 pm

Howdy all,

I've looked around on the forum and am still not 100% sure about this: is it possible to search for subtitles by movie file name?

A simple search with the following text query:"Friends.S01E01.The.One.Where.Monica.Gets.A.Roommate.720p.HDTV.x264-TvR.mkv" yields no results, whatever the language. Is that normal?

Thanks in advance for your reply! Cheers,

G.

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

Re: Search by movie file name

Tue May 14, 2013 6:18 pm

http://www.opensubtitles.org/en/search/ ... uageid-all

searching by moviename is enabled, but it falls there, only if no results are found. If you want to be straict on filenames (releasenames and so on), put your query in "tag" parameter like in example

guidupuy
Posts: 16
Joined: Wed Dec 12, 2012 6:33 pm

Re: Search by movie file name

Fri May 24, 2013 5:55 pm

Oops, forgot to mention: I'm talking about the API. Unless I'm mistaken, searching by tag is disabled in the API. Do you confirm that? Is there a way around this?

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

Re: Search by movie file name

Sun May 26, 2013 5:21 am

yeah, it was disabled, now it is enabled, tested and working. Also trac is updated (deleted note about performance). Enjoy.

guidupuy
Posts: 16
Joined: Wed Dec 12, 2012 6:33 pm

Re: Search by movie file name

Mon Jun 03, 2013 11:06 am

Excellent! Very eager to test it, I think our users will be thrilled ;-)

guidupuy
Posts: 16
Joined: Wed Dec 12, 2012 6:33 pm

Re: Search by movie file name

Mon Jun 03, 2013 5:32 pm

Hey oss just making sure, are you 100% certain that everything is working correctly? I am still getting nothing even with a tag search...

guidupuy
Posts: 16
Joined: Wed Dec 12, 2012 6:33 pm

Re: Search by movie file name

Tue Jun 04, 2013 11:12 am

Just to be more precise: I did a search with tag "Friends.S01E01.The.One.Where.Monica.Gets.A.Roommate.720p.HDTV.x264-TvR.mkv", and got no results.
Plenty of results at http://www.opensubtitles.org/en/search/ ... uageid-all though... Is that normal?

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

Re: Search by movie file name

Tue Jun 04, 2013 6:58 pm

hm, it works here OK:
XML-RPC request:
array('tag' => 'friends.s01e01.the.one.where.monica.gets.a.roommate.720p.hdtv.x264-tvr.mkv')

and getting 13 results back, same as on webpage.

guidupuy
Posts: 16
Joined: Wed Dec 12, 2012 6:33 pm

Re: Search by movie file name

Tue Jun 04, 2013 11:40 pm

Hum. Weird. I'll investigate this and let you know.

guidupuy
Posts: 16
Joined: Wed Dec 12, 2012 6:33 pm

Re: Search by movie file name

Wed Jun 05, 2013 12:00 am

Ok, found it: I didn't convert the string to lower case before sending the request. Working great now!

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

Re: Search by movie file name

Wed Jun 05, 2013 7:40 am

nope! actually you found bug, because of course, there should be conversion made on server side! Fixed.

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

Re: Search by movie file name

Fri Nov 20, 2015 1:37 am

Hey,

I've been trying to search by "tag" using the XMLRPC API with no luck.

When searching for example for

Code: Select all

http://www.opensubtitles.org/en/search/sublanguageid-all/tag-crossing+lines+(2014)+s02e10+1080p+hdtv+nl+subs+sam+tbs.mkv
I get results, but when trying that with the XMLRPC API I always get 0 results, no matter what I try.

I also tried it using your XMLRPC debugger, with the following payload:

Code: Select all

<param> <value><string>xxxxxxxxxxxxxxxxxxxx</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>eng,pob,spa</string></value> </member> </struct> </value> </data> </array> </value> </param>
With and without sublanguageid. What am I doing wrong here?


Thank you!

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

Re: Search by movie file name

Mon Nov 23, 2015 9:02 am

you are not doing anything wrong there, it was bug at our side. Please check now, always include extension with file "movie.mkv" is ok "movie" is not ok.

you can add there imdbid if you know it

please report (try with different tags) if you have been successful.

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

Re: Search by movie file name

Tue Nov 24, 2015 4:47 am

Thanks for your answer.

Getting 503 on the test query. What's going on?

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

Re: Search by movie file name

Tue Nov 24, 2015 11:59 am

works now for "pola.x.1999.dvdrip.xvid-fedepe.mkv"

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 25 guests