[DEPRECIATED] XBMC Subtitles - Addon Script (previously OpenSubtitles OSD) - 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: [DEPRECIATED] XBMC Subtitles - Addon Script (previously OpenSubtitles OSD) (/showthread.php?tid=75437) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
- amet - 2011-02-27 gui.py has all the answers line 279? Code: zip_subs = os.path.join( self.tmp_sub_dir, "zipsubs.zip") - Jani - 2011-02-28 Is there any way to make this addon appear right after hitting play if there's no subtitle track? - amet - 2011-02-28 Jani Wrote:Is there any way to make this addon appear right after hitting play if there's no subtitle track? unfortunately not, that would require changes in xbmc core - Jani - 2011-02-28 amet Wrote:unfortunately not, that would require changes in xbmc coreToo bad. I wonder if the devs would be willing to implement a callback of some sort when a video starts playing? Or has this been discussed earlier? It'd be something simple as one could register his plugin for this callback in settings or something. Then when the video starts the registered addons would be notified. Trouble downloading - simondagman - 2011-03-01 Hey! First of all, thanks for an awesome addon, couldnt be more happy about it Though I've been having som problems with it. When I locate the correct sub for my release It wont start the download, the only thing it does is change the words to download and then nothing happens. The weird thing is that it works with a couple of Movies/tvshows sometimes but most of the times it just freezes. I have my target for subs to a different folder. Is that part of the problem? Here is my log: http://pastebin.com/GR3h7RYs Thank you. - mr_blobby - 2011-03-01 simondagman Wrote:Hey!This is a known problem and it will be fixed in the next version. You can try the new version, that has not been made public yet, by replacing the folder "/Users/Simon/Library/Application Support/XBMC/addons/script.xbmc.subtitles" with the folder "script.xbmc.subtitles" from this zipfile: https://github.com/amet/script.xbmc.subtitles/zipball/master - amet - 2011-03-01 2.3.5 is in official repo Code: 2.3.5 Solved - simondagman - 2011-03-01 Thank you! It seems like that update solved it! - orivar - 2011-03-01 Okay, so this is where I am so far:
However when trying to use the built in zip extraction feature the OSD just closes and the new subtitles fail to play. Amet/anyone, could you try and help me? Here is the code for downloading the file: Code: # Get the file content using geturl() And here is the debug logfile (I'm currently overwriting Titlovi for easier testing and integration): Code: 20:29:04 T:8020 M:1227710464 DEBUG: ### [XBMC Subtitles-services.Titlovi.service] - Fetching subtitles using url http://www.sratim.co.il/downloadsubtitle.php?id=57959 I could of course extract the files myself but since you have a built in operation mode that handles that I'd rather not. After I work out this bug I still need to fix one annoying problem with the search results (searching for "episode 1" returns episodes 1,10,11,12 etc' - I got a refined re pattern lined up), do some documenting and create the logo artwork . Almost there... - amet - 2011-03-01 dont clip the log, also attach the full .py file so that we can test as well. are you looking for "How I met your mother S01E03"? did the script create .srt file? did it unzip correctly? give us something to work with - amet - 2011-03-01 you might be getting two files in a zip, srt and txt. if txt gets activated it will show nothing. I think you will have to unzip to the temp location and then specify the .srt file to be moved and activated Code: import urllib2 - orivar - 2011-03-01 Quote:dont clip the log, also attach the full .py file so that we can test as well.I'm new to the forum, didn't think that much information would be appreciated... sorry. Quote:you might be getting two files in a zip, srt and txt. if txt gets activated it will show nothing.That's exactly it! I assumed the addon will look for resulting srt/sub to play, but when I think of it that's kind of a foolish assumption since some subtitles are .txt and the problem is the content not the extension. I will fix it using one of the (many) examples that unzip the files in the script itseld and let you know as soon as I have a working version. - amet - 2011-03-01 remember that the log should be pasted on pastebin.com and the link here if you decide to post it - orivar - 2011-03-01 Thanks, I actually got it working already using one of the other service.py's (only took a couple of minutes ). I'm now working on fixing that episode results issue, some cleanup, documentation and then the artwork. How can I upload the code when I'm done? Could you create a new folder on your Github and set me up with permissions for it? I'm guessing I'll need help integrating it with the addon, I don't know which files to modify and I don't suppose you'd want me editing them anyway - amet - 2011-03-01 all you need is a new folder in services, let me know once you have it ready and you can e-mail it. or you can fork on github, add the service and request the pull. I will edit the settings.xml to add the radio button for the new service |