[RELEASE] XBMC Subtitles - Addon Script
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.

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. The relevant part of the debug log is:

log removed

The file that triggered this problem is named "Importante para la utilización de este archivo.txt" (of course it is a bad idea to use such a file name, but there is nothing that I can do about it). There are also some subtitles which contains such a character(s) in the filename. Even more annoying is that once one of these files is in the sub_tmp folder the it makes impossible to use it until the file is removed from the operating system (which, BTW, is an Ubuntu 12.04). I didn't find a solution for this problem yet (I didn't spend a lot of time either...).


Messages In This Thread
Feature suggestion - by Briam - 2012-05-29, 12:01
RE: Feature suggestion - by amet - 2012-05-29, 12:57
Cyrillic question - by fredphoesh - 2012-07-30, 13:53
RE: Cyrillic question - by fredphoesh - 2013-06-21, 00:24
search string issues with UPnP - by Artanicus - 2012-09-24, 18:28
Bierdopje shows all "16178" - by geezer78 - 2013-01-20, 22:11
Problems with Subdivx - by gboado - 2013-02-24, 20:58
RE: Problems with Subdivx - by jamesonmula - 2013-02-24, 22:33
RE: Problems with Subdivx - by gboado - 2013-02-25, 10:04
RE: Problems with Subdivx - by jurrabi - 2013-02-26, 11:12
RE: Problems with Subdivx - by gboado - 2013-02-27, 01:00
RE: Problems with Subdivx - by gfjardim - 2013-03-21, 20:26
Bierdopje Service not working - by eskape - 2013-04-08, 21:02
Re: RE: Cyrillic question - by dgcruzing - 2013-06-21, 01:16
Old RELEASE - by makmar - 2013-08-17, 23:35
Logout Mark Read Team Forum Stats Members Help
[RELEASE] XBMC Subtitles - Addon Script6