[RELEASE] XBMC Subtitles - Addon Script

  Thread Rating:
  • 5 Votes - 4.4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
DanUp Offline
Junior Member
Posts: 2
Joined: Mar 2012
Reputation: 0
Post: #221
Hello Amet, first of all congratulations for your addon.
About one month ago I'd started to have problems getting subtitles from diferents services. I use the lastest version's addon for spanish and english subtitles.
I had noticed when the name of the file contains "ñ" or "Ñ" I get an error usually extracting data from zip files.
I've left my log in http://pastebin.com/gUJB4B6h, it shows an utf-8 encode error in file_name.encode.

For instance:
09:52:54 T:5396 DEBUG: CZipManager::GetZipList - Processing zip://C%3a%5cUsers%5cNano%5cAppData%5cRoaming%5cXBMC%5cuserdata%5caddon%5fdata%5cscrip​t%2exbmc%2esubtitles%5csub%5ftmp%5czipsubs%2ezip/
09:52:54 T:5396 DEBUG: statdata: 1338623553 new: 1338623574
09:52:55 T:4616 ERROR: Exception in python script callback execution
09:52:55 T:4616 ERROR: Traceback (most recent call last):
09:52:55 T:4616 ERROR: File "C:\Users\Nano\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\resources\lib\gu​i.py", line 493, in onClick
09:52:55 T:4616 ERROR: self.Download_Subtitles( self.getControl( SUBTITLES_LIST ).getSelectedPosition() )
09:52:55 T:4616 ERROR: File "C:\Users\Nano\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\resources\lib\gu​i.py", line 313, in Download_Subtitles
09:52:55 T:4616 ERROR: self.Extract_Subtitles(zip_subs,sub_lang, gui)
09:52:55 T:4616 ERROR: File "C:\Users\Nano\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\resources\lib\gu​i.py", line 362, in Extract_Subtitles
09:52:55 T:4616 ERROR: subtitle_file, file_path = self.create_name(zip_entry,sub_filename,subtitle_lang)
09:52:55 T:4616 ERROR: File "C:\Users\Nano\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\resources\lib\gu​i.py", line 433, in create_name
09:52:55 T:4616 ERROR: file_name.encode("utf-8"),))
09:52:55 T:4616 ERROR: File "C:\Users\Nano\AppData\Roaming\XBMC\addons\script.xbmc.subtitles\resources\lib\ut​ilities.py", line 117, in log
09:52:55 T:4616 ERROR: xbmc.log((u"### [%s-%s] - %s" % (__scriptname__,module,msg,)).encode('utf-8'),level=xbmc.LOGDEBUG )
09:52:55 T:4616 ERROR: UnicodeDecodeError
09:52:55 T:4616 ERROR: :
09:52:55 T:4616 ERROR: 'ascii' codec can't decode byte 0xc2 in position 28: ordinal not in range(128)


On the other hand, I would like to make you a suggestion. If you choose to show the name of the file on the title, the label "nn subtitles for movie ......"
is too long so the release part of the file name, the main goal for showing the file name, isn't shown (at least using Transparency skin). Replacing that label for
something like "subs." should be enough Smile

Thank you very much.
find quote
amet Offline
I wave my private parts at your aunties!
Posts: 3,484
Joined: Jul 2009
Reputation: 18
Location: Novi Sad / Dubai
Post: #222
All known issues, we are working on a fix


Always read the XBMC_Online_Manual,Frequently_Asked_Questions and search the forum before posting.
For troubleshooting and bug reporting use -> Log_file.
find quote
omrey Offline
Junior Member
Posts: 3
Joined: Jun 2012
Reputation: 0
Post: #223
Hi Amet:

I hope my message helps with subtitle addon not finding subtitles. error has been happening using icefilms addon. At the beggining it would find subtitles, but about a month ago no subtitles are found on any tvshow that I look for, eventualy argenteam will find spanish subtitles.

If I try a tvshow downloaded on my HDD it will find it with no issues.

Here is my log

http://pastebin.com/R0mBhh0W

Thanks for any help.
find quote
amet Offline
I wave my private parts at your aunties!
Posts: 3,484
Joined: Jul 2009
Reputation: 18
Location: Novi Sad / Dubai
Post: #224
you have to use manual search string or get the icefilm addon fixed to report the correct name of the movie/tvshow


Always read the XBMC_Online_Manual,Frequently_Asked_Questions and search the forum before posting.
For troubleshooting and bug reporting use -> Log_file.
find quote
omrey Offline
Junior Member
Posts: 3
Joined: Jun 2012
Reputation: 0
Post: #225
(2012-06-03 09:41)amet Wrote:  you have to use manual search string or get the icefilm addon fixed to report the correct name of the movie/tvshow

Hi, strange thing. Subtitle addon will not let me set manual search string or anyother change for that matter.

http://pastebin.com/94bBw5F9

I rolled back, uninstall and reinstalled, but xbmc keeps remembering old settings.

Help!!!

Thanks,
find quote
amet Offline
I wave my private parts at your aunties!
Posts: 3,484
Joined: Jul 2009
Reputation: 18
Location: Novi Sad / Dubai
Post: #226
(2012-06-03 14:51)omrey Wrote:  
(2012-06-03 09:41)amet Wrote:  you have to use manual search string or get the icefilm addon fixed to report the correct name of the movie/tvshow

Hi, strange thing. Subtitle addon will not let me set manual search string or anyother change for that matter.

http://pastebin.com/94bBw5F9

I rolled back, uninstall and reinstalled, but xbmc keeps remembering old settings.

Help!!!

Thanks,

did you copy your userfolder from another machine? or backup? if so, did you set the permissions correctly?


Always read the XBMC_Online_Manual,Frequently_Asked_Questions and search the forum before posting.
For troubleshooting and bug reporting use -> Log_file.
find quote
omrey Offline
Junior Member
Posts: 3
Joined: Jun 2012
Reputation: 0
Post: #227
(2012-06-03 15:14)amet Wrote:  
(2012-06-03 14:51)omrey Wrote:  
(2012-06-03 09:41)amet Wrote:  you have to use manual search string or get the icefilm addon fixed to report the correct name of the movie/tvshow

Hi, strange thing. Subtitle addon will not let me set manual search string or anyother change for that matter.

http://pastebin.com/94bBw5F9

I rolled back, uninstall and reinstalled, but xbmc keeps remembering old settings.

Help!!!

Thanks,

did you copy your userfolder from another machine? or backup? if so, did you set the permissions correctly?


Yes I did, and did not pay attention to permissions. What should I do?
find quote
amet Offline
I wave my private parts at your aunties!
Posts: 3,484
Joined: Jul 2009
Reputation: 18
Location: Novi Sad / Dubai
Post: #228
(2012-06-03 15:20)omrey Wrote:  Yes I did, and did not pay attention to permissions. What should I do?

1. stop using icefilms Smile
2. search wiki ... http://wiki.xbmc.org/index.php?title=XBM...r_settings


Always read the XBMC_Online_Manual,Frequently_Asked_Questions and search the forum before posting.
For troubleshooting and bug reporting use -> Log_file.
find quote
wackynos Offline
Junior Member
Posts: 4
Joined: Mar 2012
Reputation: 0
Post: #229
Hi amet,

Ever since upgrading to Eden i have been having problems in general with XBMC's subtitle handling IMO Dharma handled subtitles much much better.

The problem is when i use the addon to get subtitles for video files on network locations they dont play. They seemingly download fine, i can see them when i go to the audio menu or when i disable/enable subtitles but they simply wont play. Previously on Dharma i used to get a popup saying the subtitles could not be saved in the location and would only play temporarily, fine by me as they "played', albeit temporarily. No such popup on Eden and no subtitles either Sad.

I have made it work by assigning a custom location for subtitles but that means that now all subtitles are downloaded to the custom location.

I would appreciate if it would work like it used to in Dharma.
find quote
amet Offline
I wave my private parts at your aunties!
Posts: 3,484
Joined: Jul 2009
Reputation: 18
Location: Novi Sad / Dubai
Post: #230
handling of network paths is somewhat limited on Eden, hence the difference in handling.


Always read the XBMC_Online_Manual,Frequently_Asked_Questions and search the forum before posting.
For troubleshooting and bug reporting use -> Log_file.
find quote
Post Reply