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.
turbos10
Posts: 31
Joined: Fri Apr 27, 2007 2:05 am

java applet

Mon Feb 25, 2008 1:19 pm

Please test it
http://ds6.ovh.org/hashsubtitles/hash_subtitles.html

Mayby add to site
*serch using hash (no subdownolander need, onnly java and browser)
*add subtitle hash using java applet.

Sorry for my english

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

Mon Feb 25, 2008 5:48 pm

hello,

this looks very promising! Please add source code for JAVA on our http://trac.opensubtitles.org/projects/ ... ourceCodes

Also for testing - it works good. But idea is get ALWAYS same subtitles, now it redirects to IDMovie only. If you dont know how to redirect user using hash, it is really simple:
http://www.opensubtitles.org/search/sub ... $moviehash

ofcourse you can set any parameter (language and so on). Import question is - if you are able to develop this for uploading too we will certainly put this on upload page.

Thanks for perfect work!

turbos10
Posts: 31
Joined: Fri Apr 27, 2007 2:05 am

Tue Mar 11, 2008 5:01 pm

Proposition:
1. Mybe you add this applet in you site in advanced search or
only link “generate hash/match for my file” under hash field in advanced search.
2. Add hash:
After user add subtitle using web hi/she will see “I have java and want to add hash”.
If hi click this string were redirect to this applet site. After user browse movie hi were redirect to you page and php script read hash, size, movie_id and save it to sql database.

Only you must send parameter (redirect site with is_subtitles and format) to applet, to do it generate site:
<APPLET code="SubtitleHashApplet.class" archive="SubtitleHashApplet.jar" width=350 height=200>
<param name="mysite" value="http://www.opensubtitles.org/addhashtosub.php?IDSUB=405? size=XsizeX?hash=XhashX" >
<param name="myframe" value="_top" >
</APPLET>

Applet only replace XsizeX and XhashX and redirect to you page. addhashtosub.php will read IDSUB and hash and save it to database (this is your job, OK?).
What You think about this?

example:
http://ds6.ovh.org/hashsubtitles/hash_subtitles.html

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

Tue Mar 11, 2008 7:20 pm

Proposition:
1. Mybe you add this applet in you site in advanced search or
only link “generate hash/match for my file” under hash field in advanced search.
I will add it for sure, also make some guide for this (blog). But it should be nice tune some things first and then I will add that:

- if possible, somewhere user should select language (and remember it in cookie or something)
- when it clicks cancel (no movie selected...) it should write no movie selected, or even better reload current page.
- remember last path/directory
2. Add hash:
After user add subtitle using web hi/she will see “I have java and want to add hash”.
If hi click this string were redirect to this applet site. After user browse movie hi were redirect to you page and php script read hash, size, movie_id and save it to sql database.

Only you must send parameter (redirect site with is_subtitles and format) to applet, to do it generate site:
<APPLET code="SubtitleHashApplet.class" archive="SubtitleHashApplet.jar" width=350 height=200>
<param name="mysite" value="http://www.opensubtitles.org/addhashtosub.php?IDSUB=405? size=XsizeX?hash=XhashX" >
<param name="myframe" value="_top" >
</APPLET>

Applet only replace XsizeX and XhashX and redirect to you page. addhashtosub.php will read IDSUB and hash and save it to database (this is your job, OK?).
What You think about this?

example:
http://ds6.ovh.org/hashsubtitles/hash_subtitles.html
ok, here are things a little bit complicated. Hashes are added to SUBTITLE FILES, not to IDSubtitle (IDSubtitle have 1 or more subtitle files), so when there are 2 cd subtitles, we need 2 hashes. I think there should be really nice to make upload subtitles using java applet, take inspiration from subdownloader or similar (GUI and so on). Your Java applet should also use XMLRPC if possible, what do you think about this ?

turbos10
Posts: 31
Joined: Fri Apr 27, 2007 2:05 am

Wed Mar 26, 2008 5:08 pm


I will add it for sure, also make some guide for this (blog). But it should be nice tune some things first and then I will add that:

- if possible, somewhere user should select language (and remember it in cookie or something)
- when it clicks cancel (no movie selected...) it should write no movie selected, or even better reload current page.
- remember last path/directory
Ok. test new version
http://ds6.ovh.org/hashsubtitles/frame.html
ok, here are things a little bit complicated. Hashes are added to SUBTITLE FILES, not to IDSubtitle (IDSubtitle have 1 or more subtitle files), so when there are 2 cd subtitles, we need 2 hashes. I think there should be really nice to make upload subtitles using java applet, take inspiration from subdownloader or similar (GUI and so on). Your Java applet should also use XMLRPC if possible, what do you think about this ?
In future i do it. mayby in 2010. ;-)

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

Tue Apr 01, 2008 6:36 am

framed version seems nice, good job! I will write it in todo list, so I will add it somewhere soon and we will see what will users say.

For uploading feature - it is really important code some upload things, because it is nice to have only download, but how we get hashes, when no upload will be available, so think about that :) It should be really easy, I think, we can use current HTML form with uploading, but some of those things will be in java/flash.

Thanks a much for your work, I will contact you for sure.

Return to “Developing”

Who is online

Users browsing this forum: No registered users and 58 guests