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.
User avatar
eduo
Posts: 716
Joined: Sat Feb 10, 2007 1:40 am
Location: Information Technology
Contact: ICQ Website Yahoo Messenger

TryUploadSubtitles vs CheckSubHash + CheckMovieHash2

Sun Apr 19, 2009 12:33 am

Hi there.

I'm not really fond of TryUploadSubtitles. It's a very expensive method in all respects.

I was thinking that running CheckSubHash and then checkMovieHash2 would have a similar result:

-It would see when subtitles exist.
-It would pull IMDBIDs for uploading and matching unexisting subtitles.

The problem is that this wouldn't match existing subtitles to existing moviehashes if both exist but are unmatched.

Is there any method that could do this match?

To me ideally I would send a subhash and a moviehash (and sub and movie filenames and movie filesize, of course) and in the results it would say if the result for each item is:

1.-Unexisting Subtitle, UPLOAD SUBTITLE!
2.-Existing Subtitle, unexisting MovieHash, UPDATE MOVIE INFO!
3.-Existing Subtitle, Existing MovieHash, RECORDED, NO ACTION REQUIRED!

1 and 2 would return up to 5 IMDB results and matching method (hash or name).

Uploading subtitles should also allow for unmatched subtitles (with IMDB, no moviehash).
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].

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

Sun Apr 19, 2009 10:31 pm

I'm confused. I was reading this: http://trac.opensubtitles.org/projects/ ... cuploading

And it clearly says that TryUploadSubtitles() should only report whether subtitles exist or not and then separate methods are used to get the IMDB info. This is much closer to what I was requesting.

Is there a way to use this procedure instead of the current TryUploadSubtitles? I'd just need a response that actually makes sense to the sent items.

As background: My application supports dropping whole folders which may contain dozens of unrelated files (for example, three movies, two seasons of TV series, a couple of tv specials, etc.).

This means my app can't use a method that's designed to be run on related files (for example, only taking both CDs of a movie, or only the episodes of a TV season).
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].

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

Fri May 01, 2009 3:03 pm

Bump.

Summary:

Request:
-Allow subtitles without matched movies to be sent and then allow upload of these unmatched subtitles.

Response:
-Include an entry for every sub hash sent.
-Specify if sub hash exists in DB
-Specify if moviehash exists in DB
-Include IMDB details for moviehash and/or subhash, if any exists. May be multiple results.
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].

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

Wed May 27, 2009 5:17 am

hi Eduo,

I changed TryUploadSubtitles() little bit, now it doesnt return all SearchSubtitles(), but only the first one - format is same, so old clients wont broke up. Results should be the same as CheckMovieHash2(), but not guaranteed, it is good to test.

Anyway, I hope this helps.

Also for TryUploadSubtitles - there is not possible to upload more subtitles for different movies, so each "upload" must be called one by one.

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

Wed May 27, 2009 8:27 pm

Ok. Will check. Does every subtitle get a response back or an identifier now? Or should I just make a single request for each subtitle? I can do that, but it'd be kind of overkill.

Also, is there a method to upload unmatched subtitles? I have plenty of subs that don't look very good quality but don't match my videos. I guess a lot of people are in the same situations. I'd rather not use a web form if I can avoid it.
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].

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 13 guests