XBMC Community Forum
[RELEASE] XBMC Subtitles - Addon Script - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Subtitle Add-ons (/forumdisplay.php?fid=143)
+---- Thread: [RELEASE] XBMC Subtitles - Addon Script (/showthread.php?tid=126495)



RE: [RELEASE] XBMC Subtitles - Addon Script - amet - 2012-05-23 09:36

(2012-05-22 21:29)JASP44 Wrote:  Hello Amet,

Please find under these links the logs:
(Part1) http://pastebin.com/5uiQhj0M
(Part2) http://pastebin.com/NjPHxsC0

Many thanks,

José

hi,

try with these changes -> https://github.com/amet/script.xbmc.subtitles/commit/2c8931c019e62267bff9536ad968d802e0aa5d08


RE: [RELEASE] XBMC Subtitles - Addon Script - JASP44 - 2012-05-23 11:12

Hello Amet,

Thanks for your feedback.
I've modified the code and will test this evening.

I'll keep you posted.

regards,

José


RE: [RELEASE] XBMC Subtitles - Addon Script - JASP44 - 2012-05-24 02:34

Hello Amet,

Unfortunately the chances didn't help.

Now the application didn't start at all.

I receive an error message:
"
Erreur
Echec du scipt!: script.xbmc.subtitles"

New log is available here:
http://pastebin.com/1XzgcHWa

Regards,

Jose


RE: [RELEASE] XBMC Subtitles - Addon Script - amet - 2012-05-24 08:32

(2012-05-24 02:34)JASP44 Wrote:  Hello Amet,

Unfortunately the chances didn't help.

Now the application didn't start at all.

I receive an error message:
"
Erreur
Echec du scipt!: script.xbmc.subtitles"

New log is available here:
http://pastebin.com/1XzgcHWa

Regards,

Jose

hi,

what is in /home/jasp/.xbmc/userdata/addon_data/script.xbmc.subtitles?

can you zip that whole folder up and upload somewhere? PM with the link if you can


RE: [RELEASE] XBMC Subtitles - Addon Script - kenwood - 2012-05-24 18:33

hello, the site sratim.co.il changed to subtitle.co.il can you please change it in the addon?
sratim.co.il is only movie database now you can't find there any subtitles.

please change it so we can again find subtitles in hebrew.
you can also add torec.net and http://www.subscenter.org

thank you.Nod


RE: [RELEASE] XBMC Subtitles - Addon Script - carbncl - 2012-05-26 14:56

(2012-04-02 08:55)MatsF Wrote:  Substitute masterprofile/addon_data doesn´t work for XBMC Subtitles

Again about this issue, had the same problem, I guess like most people wanting to share an xbmc library.
I've gived a look at plugin's code to understand and here is the detailed explanation:
  • Plugin downloads the subtitles in a local folder
    • Using python code in local userdata/addon_data/script.xbmc.subtitles/sub_tmp
    • > no path substitution there
    • As amet explained, a plugin (python) cannot easily handle remote files (smb://...)
  • Then it attempts to unzip the subs, but in substituted path
    • Using XBMC.extract() builtin (not python) that substitutes paths
    • Which fails, not being the local addon_data path where the subs are, but substituted one like smb://whatever
I see several solutions to this:
  1. Easy: do not write temp files in addon_data but somewhere else like "/tmp/" (unix) or else (windows...)... that way Extract does not substitute (tested)
  2. Possible: Do not use XBMC.Extract... no idea how it can be possible to do that in python... sounds tricky probably a dead end.
  3. Unlikely: Hope for some sort of xbmc new feature that would allow plugins to deal better with path substitutions... (Looked a bit, did not found any xbmc builtins of stuff like that that could help)

Amet, what about adding a tmp_sub_dir plugin configuration setting? Or maybe just an advanced setting.
Set to nothing by default, would let current plugin behavior using addon_data... Would use specified path otherwise.


RE: [RELEASE] XBMC Subtitles - Addon Script - Roman_V_M - 2012-05-26 21:48

Very minor update for Russian translation: http://dl.dropbox.com/u/24356082/script.xbmc.subtitles.ru.zip


Feature suggestion - Briam - 2012-05-29 12:01

Hi

Don't know if this is the place for feature suggestions but here goes:

I would like XBMC subtitles to connect to Sickbeard on TV Shows to get the release group of a specific episode so it can be used for better subtitle search or just to let the user know the release group.

Is this outside the scope of XBMC subtitles or is there perhabs a better solution to my problem of always having to try multiple subtitles.


RE: Feature suggestion - amet - 2012-05-29 12:57

(2012-05-29 12:01)Briam Wrote:  Hi

Don't know if this is the place for feature suggestions but here goes:

I would like XBMC subtitles to connect to Sickbeard on TV Shows to get the release group of a specific episode so it can be used for better subtitle search or just to let the user know the release group.

Is this outside the scope of XBMC subtitles or is there perhabs a better solution to my problem of always having to try multiple subtitles.

its not going to happen, file name should have that and you can match subs file name to a movie/show file name once the results are displayed


RE: [RELEASE] XBMC Subtitles - Addon Script - kozzmozz - 2012-06-01 17:22

Just installed XBMC Windows v11.0 on my laptop with default skin Confluence.
But I still get the following error message;
[Image: xbmc.jpg]

After checking the logfile xbmc.log; https://www.dropbox.com/s/c1rxt0sks3beo8b/xbmc.log,
I have found out that my Windows-username Frédéric is giving the error on the special character "é".
Is it possible to create a bugfix plz?


RE: [RELEASE] XBMC Subtitles - Addon Script - DanUp - 2012-06-02 13:04

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.


RE: [RELEASE] XBMC Subtitles - Addon Script - amet - 2012-06-02 13:29

All known issues, we are working on a fix


RE: [RELEASE] XBMC Subtitles - Addon Script - omrey - 2012-06-03 04:40

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.


RE: [RELEASE] XBMC Subtitles - Addon Script - amet - 2012-06-03 09:41

you have to use manual search string or get the icefilm addon fixed to report the correct name of the movie/tvshow


RE: [RELEASE] XBMC Subtitles - Addon Script - omrey - 2012-06-03 14:51

(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,