[REQUEST] Sublight Subtitles Plugin, anyone interested in developing this?
#31
@macofaco
I'm having a problem with extracting the subtitle zip from Python (zipfile barfs with an OverflowError exception, "long int too large to convert to int"), and I've noticed the archive is ZIP64 format?!

I extracted normal ZIP files before using the above library with no problems, so I'm just wondering how much trouble would be for you to change from ZIP64 to ZIP format - from what I understand the ZIP64 extension allows for large files and all that, something quite unlikely for subtitles...
Reply
#32
Dan Dare Wrote:@macofaco
I'm having a problem with extracting the subtitle zip from Python (zipfile barfs with an OverflowError exception, "long int too large to convert to int"), and I've noticed the archive is ZIP64 format?!

I extracted normal ZIP files before using the above library with no problems, so I'm just wondering how much trouble would be for you to change from ZIP64 to ZIP format - from what I understand the ZIP64 extension allows for large files and all that, something quite unlikely for subtitles...

I assume your problems are with xbmc's builtin zip handling? If so, try
Code:
import zipfile
Big Grin http://docs.python.org/library/zipfile.html
speed may be an issue, you'll have to experiment to figure it out.
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#33
Hello.

ZIP files are created with #ziplib library (http://www.icsharpcode.net/OpenSource/SharpZipLib). I thought that generated archives are just ordinary ZIP archives Smile
Did you try to write your Base 64 decoded ZIP file to disk first and decompress it with ordinary ZIP utilities (try more than one utility).

Could you also try what rwparris2 suggested?

If nothing works then I will try to see if files are really in ZIP64 format and how to convert them to ordinary ZIP files.
Sublight - subtitle search utility
http://www.subtitles-on.net
Reply
#34
@rwparris2
I actually use zipfile, your reference is for Python 2.6 - it's just that in Python 2.4, there's no support for ZIP64.
http://www.python.org/doc/2.4/lib/module-zipfile.html

But that be an idea, I'll try to extract zipfile.py from 2.6 and try it on in xbmc...

@macofaco
That's how I did it and then use WinRAR info button and noticed the ZIP64 format. Apparently the SharpZipLib library creates ZIP64 by default and it has a UseZip64 property to turn that on/off.

http://wiki.sharpdevelop.net/Default.asp...eSupport=1

Don't do anything just yet, I might try the above first and let you know.
Reply
#35
Dan Dare, don't bother. I updated Sublight server. Now ALL subtitles should be in normal ZIP format.

I hope I didn't create any bugs Smile

Could you try again?
Sublight - subtitle search utility
http://www.subtitles-on.net
Reply
#36
Thanks macofaco, it works ok now. Going for the final push... Wink
Reply
#37
Quote:@rwparris2
I actually use zipfile, your reference is for Python 2.6 - it's just that in Python 2.4, there's no support for ZIP64.
http://www.python.org/doc/2.4/lib/module-zipfile.html

Ah should have looked closer
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#38
neah, I did the same before you posted, should've seen me at 2 am staring at the doc page, "wth, it says it can handle ZIP64" :-)
Reply
#39
Thumbs Up 
Finally, it's out the door, thanks macofaco! Big Grin

Release / support thread here:
http://forum.xbmc.org/showthread.php?tid=51256
Reply
#40
Really great news!

I will test it as soon as possible!
Sublight - subtitle search utility
http://www.subtitles-on.net
Reply
#41
Hi @macofaco,

I really pleased your job here. Also thx @Dan Dare for plugin. I want to Turkish Subtitle Site Request for Turkish peps. On OpenSubtitle there are not much Turkish subtitle. I sow "How to develop Sublight plugin?" post on your site but i'm not coder and i have no idea how can i do that. If you have a time pls consider that request.

Site: http://www.turkcealtyazi.org/
Description: Tons of Turkish and English subtitles.

Some info about query:
http://www.turkcealtyazi.org/tt0468569
('http://www.turkcealtyazi.org/' + IMDbID)

If you have any questions pls ask...
Thx and Best Regards.
O.B.
Reply
#42
Thank you.

Regarding Turkish subtitle site. Please contact them and ask if I am allowed to develop Sublight plugin for their site.
Sublight - subtitle search utility
http://www.subtitles-on.net
Reply

Logout Mark Read Team Forum Stats Members Help
[REQUEST] Sublight Subtitles Plugin, anyone interested in developing this?0