[REQUEST] Sublight Subtitles Plugin, anyone interested in developing this?
#29
I am impressed you are doing this without asking any questions Smile

I will explain some things anyway. Procedure for downloading subtitle is this:
  • you must call method GetDownloadTicket with this parameters:
    session: received by LogIn5 or LogInAnonymous3 methods (note you should always use methods with highest number, for example LogIn5 instead of LogIn4. Methods with lower numbers are obsolete and will be removed in future). You should login only once per application start. On application exit you should call LogOut method (for security reasons, it is also nothing wrong if you don't)
    plugin: if you are not using Sublight plugins and you are downloading subtitles from its native database leave this field empty
    id: subtitle id you are about to download
  • GetDownloadTicket returns to you:
    boolean result: true on success, false otherwise
    que: this is important for future use. It tells you how many seconds you have to wait until you can continue with download. Method currently returns always 0 which means you can continue to download immediately
    error: if method returns false you receive here detailed description about error

  • now you can call method DownloadByID3:
    sessionID: same as GetDownloadTicket session parameter
    subtitleID: subtitle id you want to download
    codePage: in which ANSI codepage you want to receive subtitle. If you use -1 default encoding will be used (UTF-8). For more details check http://msdn.microsoft.com/goglobal/bb896001(en-us).aspx (column ANSI codepage)
    removeFormatting: should <i>...</i> tags be removed from subtitle or not (default is false which returns you original subtitle)
    ticket: result you received from GetDownloadTicket method
  • DownloadByID3 returns to you:
    boolean result: true on success, false otherwise
    data: Base 64 encoded ZIP file (I hope you know how to unzip this)
    error: if method returns false you receive here detailed description about error
Reply


Messages In This Thread
[No subject] - by rwparris2 - 2009-01-24, 23:04
[No subject] - by macofaco - 2009-01-24, 23:14
[No subject] - by Rookie - 2009-01-26, 02:53
[No subject] - by macofaco - 2009-01-26, 19:54
[No subject] - by Clumsy - 2009-01-27, 13:50
[No subject] - by Bram77 - 2009-01-27, 18:39
[No subject] - by macofaco - 2009-01-27, 19:49
[No subject] - by terminalx - 2009-02-18, 22:16
[No subject] - by coredalae - 2009-02-19, 15:28
[No subject] - by w3__ - 2009-02-20, 02:02
[No subject] - by TheJaff2 - 2009-02-20, 09:05
[No subject] - by macofaco - 2009-03-29, 14:33
[No subject] - by Bram77 - 2009-03-29, 15:22
[No subject] - by Dan Dare - 2009-05-02, 13:52
[No subject] - by macofaco - 2009-05-03, 10:13
[No subject] - by Dan Dare - 2009-05-03, 21:37
[No subject] - by Dan Dare - 2009-05-05, 02:27
[No subject] - by rwparris2 - 2009-05-05, 02:37
[No subject] - by Dan Dare - 2009-05-05, 13:58
[No subject] - by Bram77 - 2009-05-05, 15:31
[No subject] - by Dan Dare - 2009-05-05, 15:49
[No subject] - by macofaco - 2009-05-06, 21:44
[No subject] - by Dan Dare - 2009-05-06, 22:53
[No subject] - by Bram77 - 2009-05-07, 00:36
[No subject] - by macofaco - 2009-05-07, 06:37
[No subject] - by Bram77 - 2009-05-07, 11:25
[No subject] - by Dan Dare - 2009-05-10, 02:29
[No subject] - by macofaco - 2009-05-10, 08:47
[No subject] - by Dan Dare - 2009-05-10, 14:48
[No subject] - by Dan Dare - 2009-05-11, 00:29
[No subject] - by rwparris2 - 2009-05-11, 04:06
[No subject] - by macofaco - 2009-05-11, 06:27
[No subject] - by Dan Dare - 2009-05-11, 10:59
[No subject] - by macofaco - 2009-05-11, 18:09
[No subject] - by Dan Dare - 2009-05-12, 02:04
[No subject] - by rwparris2 - 2009-05-12, 02:09
[No subject] - by Dan Dare - 2009-05-12, 15:06
[No subject] - by Dan Dare - 2009-05-18, 02:59
[No subject] - by macofaco - 2009-05-18, 06:14
[No subject] - by queeup - 2009-05-19, 19:11
[No subject] - by macofaco - 2009-05-19, 19:45
Logout Mark Read Team Forum Stats Members Help
[REQUEST] Sublight Subtitles Plugin, anyone interested in developing this?0