2013-02-24, 22:33
(2013-02-24, 20:58)gboado Wrote: Hi. Since version 3 of this addon there are two annoying problems with the provider Subdivx (one of the best Spanish subtitles sites):
1) The first is related with the way they represent the number of downloads. They use a colon to separate thousands, which makes the line
downloads = int (matches.group(2)) / 1000 fail, as int will receive a number like 1,200. This wasn't a problem until the number of downloads exceeded 999, which happens now in every subtitle. The solution (found elsewhere in the net) is to change by:
downloads = int(matches.group(2).replace(",","")) / 1000
This works and I implemented it in every update, but it would be desirable to have it corrected in the addon, since it is rather cumbersome to fix it every time.
Oh, if I only had seen your post before it would save me a lot of time! Sorry for the late answer on this, I fixed it this morning (with a similar method) and sent it to the admins. Hopefully a new release will be distributed son. I am a fast downloader so my subtitles rarely have more than 1,000 downloads.
(2013-02-24, 20:58)gboado Wrote: 2) The second problem is far worse. There are some subtitles that contain (in addition to the corresponding subtitle file) a text file with a name using accented characters (i.e. á, é, í, ó, ú) or the Spanish character ñ. This makes the function which iterates through the files fail, so the .rar or .zip file is decompressed but the subtitle is never processed.
Not sure if I will be able to fix this, but can you send me a sample? A subdivx URL containing the file you are downloading will be enough.
Thanks!