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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Subtitle Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=143)
+---- Thread: [RELEASE] XBMC Subtitles - Addon Script (/showthread.php?tid=126495)



RE: [RELEASE] XBMC Subtitles - Addon Script - fernandovg - 2012-10-18

amet, I have a technical question, offtopic. Can you help me?
is it possible to do something to update the MyVideos*.db, Episode table and use one of the columns to create YES/NO value to indicate that episode has subtitle? And then use this to show a tag at the skin showing that the episode has subtitles.

Check if file exists using "Select replace(c18,'.avi', '.srt') from episode" and update for example the colum c20 or c21 .... c23 with "1" or "0"

A kind of new version of the database, XBMC scan process.

thanks



RE: [RELEASE] XBMC Subtitles - Addon Script - amet - 2012-10-18

No, not with the addon... It should be done by xbmc


RE: [RELEASE] XBMC Subtitles - Addon Script - fernandovg - 2012-10-18

I know... sorry I didn't explain. But its possible to do this?
Is it possible to SQL to check if some file exists and If true, udpate a column?
I know I little about sql but not enough.


RE: [RELEASE] XBMC Subtitles - Addon Script - tebicenter - 2012-10-20

Ok, a few days a ago I said that I had a crash when launching subtitle plugin on the monthly build, but I didn't include any debug log, so here it is now, http://xbmclogs.com/show.php?id=10989

Basically, I just opened a video, paused, opened menu and then select plugin button and then it crashed. It was made from a ATV2 and montly build installed, october build. Also, I installed plugin version 3.4.1 from github.

Let me know if the debug log is useful.

Thanks


RE: [RELEASE] XBMC Subtitles - Addon Script - deppan - 2012-10-20

Greetings,

Subscene has changed their layout recently and XBMC subtitles does not seem to be able to catch anything from there since then.

I love you amet!


RE: [RELEASE] XBMC Subtitles - Addon Script - Treglis - 2012-10-21

Hi,

I'm not able to donwload any subtitles from Titulky.com service for some time. The subtitles are listed always, but when some of them is selected for download nothing happend, just message "Downloading subtitles" is shown, but subtitles are never downloaded. Downloading from Opensubtitles.org works fine.

Here is log snippet according to this action:

Quote:** log removed **

Seems like error in the diacritic in the user name (Jan Trégl) in user profile path. Because on an another computer with different username without diacritic it is working fine. Not sure if plugin or XBMC core problem.


RE: [RELEASE] XBMC Subtitles - Addon Script - forall - 2012-10-22

I have problem with this plugin when I trying search a subtitles on polish portal. Below I past error from xbmc.log

Code:
http://pastebin.com/jVfvQLZH

XBMC:
ii xbmc 2:11.9.7~git201210211931~251a5b6-1~ppa1~quantal all XBMC Media Center (arch-independent data package)
ii xbmc-bin 2:11.9.7~git201210211931~251a5b6-1~ppa1~quantal i386 XBMC Media Center (binary data package)



RE: [RELEASE] XBMC Subtitles - Addon Script - mrto - 2012-10-23

@forall,

Try to do this: http://wiki.xbmc.org/index.php?title=Log_file


RE: [RELEASE] XBMC Subtitles - Addon Script - ThE_KiNG - 2012-10-23

Dear Amet.

I'm administrator of the site legendas-zone.org, and i would like to know if you can add our site to the search database.

Best regards,

Filipe


RE: [RELEASE] XBMC Subtitles - Addon Script - amet - 2012-10-24

(2012-10-23, 17:24)ThE_KiNG Wrote: Dear Amet.

I'm administrator of the site legendas-zone.org, and i would like to know if you can add our site to the search database.

Best regards,

Filipe

https://github.com/amet/script.xbmc.subtitles/blob/eden/script.xbmc.subtitles/resources/lib/services/LegendasZone/service.py

or is there something wrong with it?


RE: [RELEASE] XBMC Subtitles - Addon Script - forall - 2012-10-28

(2012-10-23, 09:44)mrto Wrote: @forall,

Try to do this: http://wiki.xbmc.org/index.php?title=Log_file

@mrto, I paste a log with debug and it's only that I had in log file.

@amet, can you look on my log file, I have problem with polish subtitles service: http://xbmclogs.com/show.php?id=11535





RE: [RELEASE] XBMC Subtitles - Addon Script - amet - 2012-10-28

Do not clip the log file , read Debug Log and first post in this thread.


RE: [RELEASE] XBMC Subtitles - Addon Script - martinrevert - 2012-10-28

(2012-09-06, 22:16)tebicenter Wrote: Any news about this? Sorry to bother again...

(2012-08-28, 23:35)tebicenter Wrote: Hi, amet.

Sorry if this has been posted before.

If you remember, I'm the one that created argenteam service for the plugin.

A user from our forum says that he tries to download a subtitle file, which is a zip file with two srt files, CD1 and CD2.

First of all, this is the log of the plugin when it downloads the file and unzip it with no problem

Code:
url: http://www.argenteam.net/search/The+Spy+Who+Came+in+from+the+Cold+1965
    13:42:13 T:972   DEBUG: CApplication::ProcessMouse: trying mouse action leftclick
    13:42:13 T:5144   DEBUG: ### [XBMC Subtitles-services.Argenteam.service] - argenteam Getting url: http://www.argenteam.net/subtitles/28329/
    13:42:15 T:5144   DEBUG: ### [XBMC Subtitles-services.Argenteam.service] - argenteam Saving subtitles to 'C:\Users\martin\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.subtitles\sub_tmp\argenteam.zip'
    13:42:17 T:972   DEBUG: CZipManager::GetZipList - Processing zip://C%3a%5cUsers%5cmartin%5cAppData%5cRoaming%5cXBMC%5cuserdata%5caddon%5fdata%5cscript%2exbmc%2esubtitles%5csub%5ftmp%5cargenteam%2ezip/
    13:42:17 T:972   DEBUG: statdata: 1346165232 new: 1346172135
    13:42:18 T:5144   DEBUG: ### [XBMC Subtitles-services.Argenteam.service] - argenteam Unpacked files in 'C:\Users\martin\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.subtitles\sub_tmp'
    13:42:18 T:5144   DEBUG: ### [XBMC Subtitles-services.Argenteam.service] - argenteam Unpacked subtitles file 'The.Spy.Who.Came.In.From.The.Cold.(1965).DVDRip.AC3.XviD-PROMiSE.CD1.srt'
    13:42:18 T:5144   DEBUG: ### [XBMC Subtitles-services.Argenteam.service] - argenteam Unpacked subtitles file 'The.Spy.Who.Came.In.From.The.Cold.(1965).DVDRip.AC3.XviD-PROMiSE.CD2.srt'

As you can see, the files are created on the temp folder.

Then, he saw this on the log

Code:
13:42:18 T:5144   DEBUG: ### [XBMC Subtitles-utilities] - vfs module copy C:\Users\martin\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.subtitles\sub_tmp\The.Spy.Who.Came.In.From.The.Cold.(1965).DVDRip.AC3.XviD-PROMiSE.CD2.srt -> smb://PCH-A110/share/Video\The.Spy.Who.Came.In.From.The.Cold.(1965).DVDRip.AC3.XviD-PROMiSE.CD1.srt
    13:42:18 T:3096  NOTICE: Opening Subtitle stream: 0 source: 1024

Basically, the plugin moves the srt of CD2 as CD1 and the CD1 file is omitted.

Is this a bug?

I checked that my service.py has this code:

Code:
if waittime == 20:
    log( __name__ ,"%s Failed to unpack subtitles in '%s'" % (debug_pretext, tmp_sub_dir))
else:
    log( __name__ ,"%s Unpacked files in '%s'" % (debug_pretext, tmp_sub_dir))
    for file in files:
        # there could be more subtitle files in tmp_sub_dir, so make sure we get the newly created subtitle file
        if (string.split(file, '.')[-1] in ['srt', 'sub', 'txt']) and (os.stat(os.path.join(tmp_sub_dir, file)).st_mtime > init_max_mtime): # unpacked file is a newly created subtitle file
            log( __name__ ,"%s Unpacked subtitles file '%s'" % (debug_pretext, file))
            subs_file = os.path.join(tmp_sub_dir, file)

and I check that "subs_file" it's overwritten with the latest sub file (in this case, CD2) and that this variable is the one that is returned to the plugin.

Should this method return a list instead of a single file?

Thanks in advance

Hi amet, this problem persists.
Let me know if you need files to test, I have several examples to test with argenteam plugin, but this happening to subdivx too..
All stacks are failing when the package contains the 2 parts inside.

Thanks!



RE: [RELEASE] XBMC Subtitles - Addon Script - pabloalcantara - 2012-10-29

Now it's fixed:
https://github.com/xbmc/xbmc/commit/7197e88c9eb6f67b33a471e2eb9d2176c454be2f



RE: [RELEASE] XBMC Subtitles - Addon Script - dudio - 2012-10-29

[Moved to JSON-RPC]