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-04-04 14:57

(2012-04-04 14:53)Mauz Wrote:  Sad now what? are these write permissions on the other hdd (where the serie is located) or firewall issues?

thanks for your fast reply btw!

it simply means that you cant get http://api.bierdopje.com/369C2ED4261DE9C3/GetShowByName/Tour+of+Duty , not sure why that is. there is no errors in the log, it just says that it couldn't connect.


RE: [RELEASE] XBMC Subtitles - Addon Script - alessio2 - 2012-04-05 01:04

Anyone got XBMC Subtitles working on iPad's XBMC?
I have final Eden version on and XBMC Subtitles 3.0.1 and subtitles are found but not working. It s possible that trey cannot be saved on disk?
How to get a debug log from ipad?


RE: [RELEASE] XBMC Subtitles - Addon Script - MatsF - 2012-04-05 08:49

Hi,

Did I do something wrong when I wrote my question? I posted the question in it´s own thread and the after 2 days I posted it in this thread without any comments at all. I just wonder why, so I know. I also tried to delete the post in its own thread but I got permission error and was not allowed to do that. Just explaining that I was not trying to double post.

/Mats


RE: [RELEASE] XBMC Subtitles - Addon Script - MatsF - 2012-04-05 09:07

(2012-04-05 01:04)alessio2 Wrote:  How to get a debug log from ipad?

Here you can see how you get the debug log
In short what it says on that page (I myself found that it was a lot of information so here is the short version):
  1. In Settings > System > Debugging there is a setting Enable debug logging
  2. Do what causes the problem (try to get a subtitle)
  3. Close XBMC.
  4. Get the file (for iOS it is in) /private/var/mobile/Library/Preferences/xbmc.log with (for instance) CyberDuck
  5. Use a pastesite like pastebin.com to save your XBMC.log.
  6. Post your message here with the link to your pasted log that you got above.




RE: [RELEASE] XBMC Subtitles - Addon Script - amet - 2012-04-05 09:16

(2012-04-05 08:49)MatsF Wrote:  Hi,

Did I do something wrong when I wrote my question? I posted the question in it´s own thread and the after 2 days I posted it in this thread without any comments at all. I just wonder why, so I know. I also tried to delete the post in its own thread but I got permission error and was not allowed to do that. Just explaining that I was not trying to double post.

/Mats

well, its very uncommon, also there is no error in it that I can see.

I dont have a setup like that and I cant recreate the same issues you have. we have said that centralizing the addon_data is not a good idea and that it might fail, and you still want to do it, you are on your own I am afraid ... Smile


RE: [RELEASE] XBMC Subtitles - Addon Script - Saimo - 2012-04-05 09:41

Any idea what's wrong with my subtitle addon?

http://pastebin.com/wQ7vqLtx

When I try to download subitlte from podnapisi it gives me no subtitles found. Opensubtitles shows me subtitles but won't load them giving no errors, just jams to the downloading subtitles section.

Thanks for your help!


RE: [RELEASE] XBMC Subtitles - Addon Script - amet - 2012-04-05 09:54

(2012-04-05 09:41)Saimo Wrote:  Any idea what's wrong with my subtitle addon?

http://pastebin.com/wQ7vqLtx

When I try to download subitlte from podnapisi it gives me no subtitles found. Opensubtitles shows me subtitles but won't load them giving no errors, just jams to the downloading subtitles section.

Thanks for your help!

maybe XBMC has proxy server enabled and not configured?? full debug log would have the answers, do not clip it as its missing important bits of information


RE: [RELEASE] XBMC Subtitles - Addon Script - MatsF - 2012-04-05 10:15

(2012-04-05 09:16)amet Wrote:  we have said that centralizing the addon_data is not a good idea and that it might fail, and you still want to do it, you are on your own I am afraid ... Smile

I don't understand. Who are "we"? I thought that XBMC supported centralizing addon_data, is that not correct?

And then I saw an error (a bug?) in your (extremely nice) addon. And the bug is probably very easy to fix because you already read and write settings.xml to the centralized directory so why cant you read/write the subtitles also. And that is not even the problem. It is the settings.xml that needs to be centralized, and for your addon it already is. Where the add-on puts the temp-files doesn't matter if the program just saves and then opens the zip from the same place(!)

This is from row 1154- in the OSX debug log.
If I am not mistaken the add-on saves the zip locally (row 1) and then in row 2 uses the substituted (centralized) directory when it tries to open the newly saved zip-file :
GetZipList - Processing zip://%2fUsers%2fMacMini%2fLibrary%2fApplication%20Support%2fXBMC%2fuserdata%2faddon%5​fdata%2fscript%2exbmc%2esubtitles%2fsub%5ftmp%2fzipsubs%2ezip/
CFileSMB::Open - opened /Video/XBMC/Userdata/addon_data/script.xbmc.subtitles/sub_tmp/zipsubs.zip, fd=10000
CFileSMB::Close closing fd 10000

Probably that is an easy thing to fix, dont you think? It looks like one of the rows are hardcoded and the other row uses the substitution from advancedsettings.xml (or maybe I have misunderstood the debug log, it is not always easy to read new logs that you are not used to).

And I think more and more do want to use the substitution of addon_data because it helps so much when you dont need to set everything up on every client for every add-on.

I would be happy to help you to test these bugs Smile

br /Mats


RE: [RELEASE] XBMC Subtitles - Addon Script - amet - 2012-04-05 10:26

(2012-04-05 10:15)MatsF Wrote:  
(2012-04-05 09:16)amet Wrote:  we have said that centralizing the addon_data is not a good idea and that it might fail, and you still want to do it, you are on your own I am afraid ... Smile

I don't understand. Who are "we"? I thought that XBMC supported centralizing addon_data, is that not correct?

never heard of anyone trying to centralize addon data, nor did I hear any team members advising that it would be a good idea. correct me if I am wrong.

there is more than one issue with multiple instances of XBMC opening the same files that are in there, my opinion is that it shouldn't be done.

besides, this has nothing to do with this addon, if the pathsubstitution is not handeled correctly then its a XBMC core issue but I think what you are seeing is just the incosistent logging... we save and open from a same location "sub_temp" in "__profile__ = xbmc.translatePath( __addon__.getAddonInfo('profile') ).decode("utf-8")"


RE: [RELEASE] XBMC Subtitles - Addon Script - Saimo - 2012-04-05 14:32

(2012-04-05 09:54)amet Wrote:  
(2012-04-05 09:41)Saimo Wrote:  Any idea what's wrong with my subtitle addon?

http://pastebin.com/wQ7vqLtx

When I try to download subitlte from podnapisi it gives me no subtitles found. Opensubtitles shows me subtitles but won't load them giving no errors, just jams to the downloading subtitles section.

Thanks for your help!

maybe XBMC has proxy server enabled and not configured?? full debug log would have the answers, do not clip it as its missing important bits of information

That solved my problems. Thank you!