@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...
[REQUEST] Sublight Subtitles Plugin, anyone interested in developing this?
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-05-11 00:29
Post: #31
Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
rwparris2
Team-XBMC Python Developer Posts: 1,341 Joined: Jan 2008 Reputation: 2 Location: US |
2009-05-11 04:06
Post: #32
Dan Dare Wrote:@macofaco I assume your problems are with xbmc's builtin zip handling? If so, try Code: import zipfile http://docs.python.org/library/zipfile.htmlspeed 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/ |
| find quote |
macofaco
Sublight Admin Posts: 27 Joined: Jan 2009 Reputation: 4 |
2009-05-11 06:27
Post: #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 ![]() 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. |
| find quote |
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-05-11 10:59
Post: #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. Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
macofaco
Sublight Admin Posts: 27 Joined: Jan 2009 Reputation: 4 |
2009-05-11 18:09
Post: #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 ![]() Could you try again? |
| find quote |
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-05-12 02:04
Post: #36
Thanks macofaco, it works ok now. Going for the final push...
Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
rwparris2
Team-XBMC Python Developer Posts: 1,341 Joined: Jan 2008 Reputation: 2 Location: US |
2009-05-12 02:09
Post: #37
Quote:@rwparris2 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/ |
| find quote |
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
2009-05-12 15:06
Post: #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" :-)
Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
Dan Dare
http://www.xbmc4xbox.org Joined: Sep 2004 Reputation: 146 |
Finally, it's out the door, thanks macofaco!
![]() Release / support thread here: http://forum.xbmc.org/showthread.php?tid=51256 Video plugins: Microsoft Channel 9 Videos | GameSpot | Eurogamer TV | GameTrailers | Games On Net | OpenSubtitles | Sublight Program plugins: Notepad |
| find quote |
macofaco
Sublight Admin Posts: 27 Joined: Jan 2009 Reputation: 4 |
2009-05-18 06:14
Post: #40
Really great news!
I will test it as soon as possible! |
| find quote |


Search
Help