The branch, gotham has been updated
       via  ae12e6e6e1a6aae9476d8a9a6a663dfa3b0587e4 (commit)
       via  5ce5d5d30e340d77d4cb6bf37d9415f1c025b1e0 (commit)
       via  d15f4ed27f505ca17351b7f3de3d3c0c15e9b9fa (commit)
      from  55dc9a57828e8787ed9f56f2ff48711bbcac0f9f (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=ae12e6e6e1a6aae9476d8a9a6a663dfa3b0587e4

commit ae12e6e6e1a6aae9476d8a9a6a663dfa3b0587e4
Author: sphere <[email protected]>
Date:   Tue May 6 10:25:59 2014 +0200

    [service.subtitles.subscene] updated to version 1.0.0

diff --git a/service.subtitles.subscene/addon.xml 
b/service.subtitles.subscene/addon.xml
index 6e18766..91f00f6 100755
--- a/service.subtitles.subscene/addon.xml
+++ b/service.subtitles.subscene/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="service.subtitles.subscene"
        name="Subscene.com"
-       version="0.9.4"
+       version="1.0.0"
        provider-name="CrowleyAJ">
     <requires>
         <import addon="xbmc.python" version="2.14.0"/>
diff --git a/service.subtitles.subscene/changelog.txt 
b/service.subtitles.subscene/changelog.txt
index d55c3e5..c56a1c4 100644
--- a/service.subtitles.subscene/changelog.txt
+++ b/service.subtitles.subscene/changelog.txt
@@ -1,33 +1,8 @@
-0.9.4
-- fixed ratings (5 stars = rated good, 0 stars = not rated)
-- fixed description
-
-0.9.3
-- added file number for season packs
-
-0.9.2
-- better handling of files without scraper data
-
-0.9.1
-- fixed an issue with tv shows with no exact title match
-
-0.9.0
-- release candidate
-- "sync" flagged subtitles are now sorted first
-
-0.0.5
-- new feature: pick file from season pack for tv shows
-  - additionally to files with matching episode codes you can now also choose 
downloads, which contain more than 2 files
-  - from that archive only files with matching episode codes (SxxExx) for the 
current episode will be returned
-
-0.0.4
-- added ability to search for manually entered search string
-
-0.0.3
-- now shows sync flag, when subtitle name matches the video file name
-
-0.0.2
-- improved title matching for some special chars in titles
-
-0.0.1
-- initial port from former XBMC subtitles plugin by amet
+1.0.0
+New release for XBMC 13.0 Gotham.
+
+New features:
+- Improved title matching (works best with library titles)
+- Download file from season pack
+- Shows Sync flag when filename matches
+- Manual search
diff --git a/service.subtitles.subscene/service.py 
b/service.subtitles.subscene/service.py
index 60b03b6..4557e8f 100644
--- a/service.subtitles.subscene/service.py
+++ b/service.subtitles.subscene/service.py
@@ -220,7 +220,7 @@ def search_tvshow(tvshow, season, episode, languages, 
filename):
 
 def search_manual(searchstr, languages, filename):
     search_string = prepare_search_string(searchstr)
-    url = main_url + "/subtitles/release?q=" + 
urllib.quote_plus(search_string) + '&r=true'
+    url = main_url + "/subtitles/release?q=" + search_string + '&r=true'
     content, response_url = geturl(url)
 
     if content is not None:

http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=5ce5d5d30e340d77d4cb6bf37d9415f1c025b1e0


http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=d15f4ed27f505ca17351b7f3de3d3c0c15e9b9fa

commit d15f4ed27f505ca17351b7f3de3d3c0c15e9b9fa
Author: sphere <[email protected]>
Date:   Tue May 6 10:17:53 2014 +0200

    [service.subtitles.legendasdivx] updated to version 0.0.4

diff --git a/service.subtitles.legendasdivx/addon.xml 
b/service.subtitles.legendasdivx/addon.xml
index 1ab97b9..059ddc6 100644
--- a/service.subtitles.legendasdivx/addon.xml
+++ b/service.subtitles.legendasdivx/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="service.subtitles.legendasdivx"
        name="LegendasDivx.com"
-       version="0.0.3"
+       version="0.0.4"
        provider-name="HiGhLaNdeR">
   <requires>
     <import addon="xbmc.python" version="2.14.0"/>
@@ -9,8 +9,8 @@
   <extension point="xbmc.subtitle.module"
              library="service.py" />
   <extension point="xbmc.addon.metadata">
-    <summary lang="en">LegendasDivx.com</summary>
-    <description lang="en">Search and download subtitles from 
LegendasDivx.com! Ain't it nice?</description>
+    <summary lang="en">LegendasDivx.com - Search and Download 
Subtitles</summary>
+    <description lang="en">Search and download subtitles from 
LegendasDivx.com. Please check the add-on configuration before using 
it!</description>
     <disclaimer lang="en">[email protected]</disclaimer>
     <language>pt en</language>
     <platform>all</platform>
diff --git a/service.subtitles.legendasdivx/changelog.txt 
b/service.subtitles.legendasdivx/changelog.txt
index bb692db..e5b712b 100644
--- a/service.subtitles.legendasdivx/changelog.txt
+++ b/service.subtitles.legendasdivx/changelog.txt
@@ -1,3 +1,7 @@
+0.0.4
+- Added Parent Folder search and sync matching. Choose in addon settings AUTO 
or OFF. AUTO checks if parent folder is a release and if true it will be used 
for search and sync.
+- Reviewed Release pattern for better Description display.
+- Improved SYNC matching.
 0.0.3
 - Added Release pattern for better Description display. Now you can choose 
Full Description or Release only Description (Default) on addon settings!
 - Some fixes and changes on the code.
diff --git 
a/service.subtitles.legendasdivx/resources/language/English/strings.xml 
b/service.subtitles.legendasdivx/resources/language/English/strings.xml
index 57a7f62..3fb24bd 100644
--- a/service.subtitles.legendasdivx/resources/language/English/strings.xml
+++ b/service.subtitles.legendasdivx/resources/language/English/strings.xml
@@ -9,4 +9,9 @@
     <string id="32006">Spanish Enabled</string>
     <string id="32007">English Enabled</string>
     <string id="32008">Full Description</string>
+    <string id="32009">No RELEASE in description!</string>
+    <string id="32010">Parent Folder Search and Match</string>
+    <string id="32011">Auto</string>
+    <string id="32012">Always on</string>
+    <string id="32013">Off</string>
 </strings>
diff --git 
a/service.subtitles.legendasdivx/resources/language/Portuguese/strings.xml 
b/service.subtitles.legendasdivx/resources/language/Portuguese/strings.xml
index d0de616..c112aaa 100644
--- a/service.subtitles.legendasdivx/resources/language/Portuguese/strings.xml
+++ b/service.subtitles.legendasdivx/resources/language/Portuguese/strings.xml
@@ -8,5 +8,10 @@
     <string id="32005">Português Brasileiro Activo</string>
     <string id="32006">Espanhol Activo</string>
     <string id="32007">Inglês Activo</string>
-    <string id="32007">Descrição Completa</string>
+    <string id="32008">Descrição Completa</string>
+    <string id="32009">Sem RELEASE na descrição!</string>
+    <string id="32010">Procura e sincronia pela pasta do filme</string>
+    <string id="32011">Auto</string>
+    <string id="32012">Sempre ligado</string>
+    <string id="32013">Desligado</string>
 </strings>
diff --git a/service.subtitles.legendasdivx/resources/settings.xml 
b/service.subtitles.legendasdivx/resources/settings.xml
index dbca84a..5797b00 100644
--- a/service.subtitles.legendasdivx/resources/settings.xml
+++ b/service.subtitles.legendasdivx/resources/settings.xml
@@ -8,5 +8,6 @@
       <setting id="ES" type="bool" label="32006" default="true"/>
       <setting id="EN" type="bool" label="32007" default="true"/>
       <setting id="DESC" type="bool" label="32008" default="false"/>
+      <setting id="PARENT" type="enum" lvalues="32011|32013" label="3010" 
default="0"/>
     </category>   
 </settings>
diff --git a/service.subtitles.legendasdivx/service.py 
b/service.subtitles.legendasdivx/service.py
index 1b1a9be..d511108 100644
--- a/service.subtitles.legendasdivx/service.py
+++ b/service.subtitles.legendasdivx/service.py
@@ -25,8 +25,6 @@ import xbmcplugin
 import xbmcvfs
 import cookielib
 import urllib2
-from operator import itemgetter, attrgetter
-#import operator
 
 __addon__ = xbmcaddon.Addon()
 __author__     = __addon__.getAddonInfo('author')
@@ -42,25 +40,16 @@ __temp__       = xbmc.translatePath(pjoin(__profile__, 
'temp')).decode("utf-8")
 
 sys.path.append (__resource__)
 
+__descon__ = __addon__.getSetting( 'DESC' )
+
 main_url = "http://www.legendasdivx.com/";
 debug_pretext = "LegendasDivx"
-subext = ['srt', 'aas', 'ssa', 'sub', 'smi']
-sub_ext = "srt,aas,ssa,sub,smi"
-packext = ['rar', 'zip']
-
-
-MAIN_SUBDIVX_URL = "http://www.legendasdivx.com/";
-SEARCH_PAGE_URL = MAIN_SUBDIVX_URL + 
"modules.php?name=Downloads&file=jz&d_op=search_next&order=&form_cat=28&page=%(page)s&query=%(query)s"
+SEARCH_PAGE_URL = main_url + 
"modules.php?name=Downloads&file=jz&d_op=search_next&order=&form_cat=28&page=%(page)s&query=%(query)s"
 
 INTERNAL_LINK_URL = 
"plugin://%(scriptid)s/?action=download&id=%(id)s&filename=%(filename)s"
-SUB_EXTS = ['srt', 'sub', 'txt']
+SUB_EXTS = ['srt', 'sub', 'txt', 'aas', 'ssa', 'smi']
 HTTP_USER_AGENT = "User-Agent=Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; 
rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729)"
 
-#SUBTITLE_RE = 
re.compile(r'<div\sclass=\"sub_box\">[\r\n\t]{2}<div\sclass=\"sub_header\">[\r\n\t]{2}<b>(.+?)</b>\s\((\d\d\d\d)\)\s.+?[\r\n\t
 
]+?[\r\n\t]</div>[\r\n\t]{2}<table\sclass=\"sub_main\scolor1\"\scellspacing=\"0\">[\r\n\t]{2}<tr>[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}<th>CDs:</th>[\r\n\t
 
]{2}<td>(.+?)</td>[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}<a\shref=\"\?name=Downloads&d_op=ratedownload&lid=(.+?)\">[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}<th\sclass=\"color2\">Hits:</th>[\r\n\t]{2}<td>(.+?)</td>[\r\n\t
 ]{2}.+?[\r\n\t]{2}<td>(.+?)</td>[\r\n\t ]{2}.+?[\r\n\t ]{2}.+?[\r\n\t 
]{2}.+?[\r\n\t ]{2}.+?.{2,5}[\r\n\t ]{2}.+?[\r\n\t 
]{2}<td\scolspan=\"5\"\sclass=\"td_desc\sbrd_up\">((\n|.)*)</td>',
-#                         re.IGNORECASE | re.DOTALL | re.MULTILINE | 
re.UNICODE)
-#DOWNLOAD_LINK_RE = re.compile(r'bajar.php\?id=(.*?)&u=(.*?)\"', re.IGNORECASE 
| re.DOTALL | re.MULTILINE | re.UNICODE)
-
-
 
#====================================================================================================================
 # Regular expression patterns
 
#====================================================================================================================
@@ -103,7 +92,7 @@ Release: The.Dark.Knight.2008.720p.BluRay.DTS.x264-ESiR</td>
 """
 
 subtitle_pattern = 
"<div\sclass=\"sub_box\">[\r\n\t]{2}<div\sclass=\"sub_header\">[\r\n\t]{2}<b>(.+?)</b>\s\((\d\d\d\d)\)\s.+?[\r\n\t
 
]+?[\r\n\t]</div>[\r\n\t]{2}<table\sclass=\"sub_main\scolor1\"\scellspacing=\"0\">[\r\n\t]{2}<tr>[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}<th>CDs:</th>[\r\n\t
 
]{2}<td>(.+?)</td>[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}<a\shref=\"\?name=Downloads&d_op=ratedownload&lid=(.+?)\">[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}.+?[\r\n\t]{2}<th\sclass=\"color2\">Hits:</th>[\r\n\t]{2}<td>(.+?)</td>[\r\n\t
 ]{2}.+?[\r\n\t]{2}<td>(.+?)</td>[\r\n\t ]{2}.+?[\r\n\t ]{2}.+?[\r\n\t 
]{2}.+?[\r\n\t ]{2}.+?.{2,5}[\r\n\t ]{2}.+?[\r\n\t 
]{2}<td\scolspan=\"5\"\sclass=\"td_desc\sbrd_up\">((\n|.)*)</td>"
-release_pattern = "([^\W][\w{3,}\.|\-|\(\d\d\d\d)]{3,}\w{3,}[\-|\.]\w{2,})"
+release_pattern = 
"([^\W]\w{1,}\.{1,1}[^\.][\w{1,}\.|\-|\(\d\d\d\d\)]{3,}[\w{3,}\-|\.{1,1}]\w{2,})"
 # group(1) = Name, group(2) = Year, group(3) = Number Files, group(4) = ID, 
group(5) = Hits, group(6) = Requests, group(7) = Description
 #==========
 # Functions
@@ -156,66 +145,83 @@ def getallsubs(searchstring, languageshort, languagelong, 
file_original_path, se
             id = matches.group(4)
             movieyear = matches.group(2)
             no_files = matches.group(3)
-            downloads = int(matches.group(5)) / 300
-            if (downloads > 10):
-                downloads=10
+            downloads = int(matches.group(5)) / 200
+            if (downloads > 5):
+                downloads=5
             filename = string.strip(matches.group(1))
             desc = string.strip(matches.group(7))
             #log(u"_desc_dirty '%s' ..." % desc)
             #Remove new lines on the commentaries
             filename = re.sub('\n',' ',filename)
+            if __descon__ == "false":
+                desc = re.findall(release_pattern, desc, re.IGNORECASE | 
re.VERBOSE | re.DOTALL | re.UNICODE | re.MULTILINE)
+                desc = " / ".join(desc)
+                if desc == "":
+                    desc = __language__(32009)
+            desc = desc.decode('latin1')
             desc = re.sub('<br />',' ',desc)
+            desc = re.sub('<br>',' ',desc)
             desc = re.sub('\n',' ',desc)
             desc = re.sub(':.','',desc)
             #Remove HTML tags on the commentaries
             filename = re.sub(r'<[^<]+?>','', filename)
             desc = re.sub(r'<[^<]+?>|[~]','', desc)
-            DESC_ON = __addon__.getSetting( 'DESC' )
-            if DESC_ON == "false":
-                desc = re.findall(release_pattern, desc, re.IGNORECASE | 
re.VERBOSE | re.DOTALL | re.UNICODE | re.MULTILINE)
-                desc = " / ".join(desc)
-                if desc == "":
-                    desc = "No Description!"
             #log(u"_desc '%s' ..." % desc)
             #Find filename on the comentaries to show sync label using 
filename or dirname (making it global for further usage)
             global filesearch
             filesearch = os.path.abspath(file_original_path)
             #For DEBUG only uncomment next line
             #log( __name__ ,"%s abspath: '%s'" % (debug_pretext, filesearch))
+            log(u"filesearch1: '%s'" % filesearch)
             filesearch = os.path.split(filesearch)
             #For DEBUG only uncomment next line
             #log( __name__ ,"%s path.split: '%s'" % (debug_pretext, 
filesearch))
             dirsearch = filesearch[0].split(os.sep)
             #For DEBUG only uncomment next line
             #log( __name__ ,"%s dirsearch: '%s'" % (debug_pretext, dirsearch))
+            log(u"dirsearch: '%s'" % dirsearch)
             dirsearch_check = string.split(dirsearch[-1], '.')
             #For DEBUG only uncomment next line
             #log( __name__ ,"%s dirsearch_check: '%s'" % (debug_pretext, 
dirsearch_check))
-            if (searchstring_notclean != ""):
-                sync = False
-                #log(u"inside the sync '%s' ..." % searchstring_notclean)
-                #log(u"inside the sync '%s' ..." % desc)
-                if re.search(searchstring_notclean, desc, re.IGNORECASE):
+            log(u"dirsearch_check: '%s'" % dirsearch_check)
+            #### PARENT FOLDER TWEAK DEFINED IN THE ADD-ON SETTINGS (AUTO | 
ALWAYS ON (DEACTIVATED) | OFF)
+            __parentfolder__ = __addon__.getSetting( 'PARENT' )
+            if __parentfolder__ == '0':
+                if re.search(release_pattern, dirsearch[-1], re.IGNORECASE):
+                    __parentfolder__ = '1'
+                else:
+                    __parentfolder__ = '2'
+            if __parentfolder__ == '1':
+                if re.search(dirsearch[-1], desc, re.IGNORECASE):
                     sync = True
-            else:
-                if (string.lower(dirsearch_check[-1]) == "rar") or 
(string.lower(dirsearch_check[-1]) == "cd1") or 
(string.lower(dirsearch_check[-1]) == "cd2"):
-                    sync = False
-                    if len(dirsearch) > 1 and dirsearch[1] != '':
-                        if re.search(filesearch[1][:len(filesearch[1])-4], 
desc) or re.search(dirsearch[-2], desc):
-                            sync = True
-                    else:
-                        if re.search(filesearch[1][:len(filesearch[1])-4], 
desc):
-                            sync = True
                 else:
                     sync = False
-                    if len(dirsearch) > 1 and dirsearch[1] != '':
-                        if re.search(filesearch[1][:len(filesearch[1])-4], 
desc) or re.search(dirsearch[-1], desc):
-                            sync = True
+            if __parentfolder__ == '2':
+                if (searchstring_notclean != ""):
+                    sync = False
+                    if string.lower(searchstring_notclean) in 
string.lower(desc):
+                        sync = True
+                else:
+                    if (string.lower(dirsearch_check[-1]) == "rar") or 
(string.lower(dirsearch_check[-1]) == "cd1") or 
(string.lower(dirsearch_check[-1]) == "cd2"):
+                        sync = False
+                        if len(dirsearch) > 1 and dirsearch[1] != '':
+                            if re.search(filesearch[1][:len(filesearch[1])-4], 
desc, re.IGNORECASE) or re.search(dirsearch[-2], desc, re.IGNORECASE):
+                                sync = True
+                        else:
+                            if re.search(filesearch[1][:len(filesearch[1])-4], 
desc, re.IGNORECASE):
+                                sync = True
                     else:
-                        if re.search(filesearch[1][:len(filesearch[1])-4], 
desc):
-                            sync = True
-            filename = filename + " " + "(" + movieyear + ")" + "  " + "hits: 
" + hits + " - " + desc
-            #log(u"DN string = %s" % (downloads,))
+                        sync = False
+                        if len(dirsearch) > 1 and dirsearch[1] != '':
+                            if re.search(filesearch[1][:len(filesearch[1])-4], 
desc) or re.search(dirsearch[-1], desc, re.IGNORECASE):
+                                sync = True
+                        else:
+                            if re.search(filesearch[1][:len(filesearch[1])-4], 
desc, re.IGNORECASE):
+                                sync = True
+            if __descon__ == "false":
+                filename = desc + "  " + "hits: " + hits
+            else:
+                filename = filename + " " + "(" + movieyear + ")" + "  " + 
"hits: " + hits + " - " + desc
             subtitles_list.append({'rating': str(downloads), 'no_files': 
no_files, 'filename': filename, 'desc': desc, 'sync': sync, 'hits' : hits, 
'id': id, 'language_short': languageshort, 'language_name': languagelong})
         page = page + 1
         
@@ -266,10 +272,29 @@ def Search(item):
     #### Do what's needed to get the list of subtitles from service site
     #### use item["some_property"] that was set earlier
     #### once done, set xbmcgui.ListItem() below and pass it to 
xbmcplugin.addDirectoryItem()
-    filename = 
os.path.splitext(os.path.basename(item['file_original_path']))[0]
+    #
+    #### PARENT FOLDER TWEAK DEFINED IN THE ADD-ON SETTINGS (AUTO | ALWAYS ON 
(DEACTIVATED) | OFF)
     file_original_path = item['file_original_path']
-    filename = xbmc.getCleanMovieTitle(filename)
-    searchstring_notclean = 
os.path.splitext(os.path.basename(item['file_original_path']))[0]
+    __parentfolder__ = __addon__.getSetting( 'PARENT' )
+    if __parentfolder__ == '0':
+        filename = os.path.abspath(file_original_path)
+        dirsearch = filename.split(os.sep)
+        log(u"dirsearch_search string = %s" % (dirsearch,))
+        if re.search(release_pattern, dirsearch[-2], re.IGNORECASE):
+            __parentfolder__ = '1'
+        else:
+            __parentfolder__ = '2'
+    if __parentfolder__ == '1':
+        filename = os.path.abspath(file_original_path)
+        dirsearch = filename.split(os.sep)
+        filename = dirsearch[-2]
+        log(u"__parentfolder1__ = %s" % (filename,))
+    if __parentfolder__ == '2':   
+        filename = os.path.splitext(os.path.basename(file_original_path))[0]
+        log(u"__parentfolder2__ = %s" % (filename,))
+ 
+    filename = xbmc.getCleanMovieTitle(filename)[0]
+    searchstring_notclean = 
os.path.splitext(os.path.basename(file_original_path))[0]
     searchstring = ""
     global israr
     israr = os.path.abspath(file_original_path)
@@ -282,8 +307,8 @@ def Search(item):
     tvshow = item['tvshow']
     season = item['season']
     episode = item['episode']
-    #log(u"Tvshow string = %s" % (tvshow,))
-    #log(u"Title string = %s" % (title,))
+    log(u"Tvshow string = %s" % (tvshow,))
+    log(u"Title string = %s" % (title,))
     subtitles_list = []
     
     if item['mansearch']:
@@ -292,7 +317,6 @@ def Search(item):
     else:
         if tvshow != '':
             searchstring = "%s S%#02dE%#02d" % (tvshow, int(season), 
int(episode))
-            #log(u"TV Searchstring string = %s" % (searchstring,))
         if tvshow == '':
             if 'rar' in israr and searchstring is not None:
                 log(u"RAR Searchstring string = %s" % (searchstring,))
@@ -329,7 +353,7 @@ def Search(item):
                     searchstring = title[-1]
                     #log(u"TITLE NULL Searchstring string = %s" % 
(searchstring,))
                 else:
-                    searchstring = title
+                    searchstring = filename
                     #log(u"TITLE Searchstring string = %s" % (searchstring,))
 
     PT_ON = __addon__.getSetting( 'PT' )
@@ -341,20 +365,20 @@ def Search(item):
         subtitles_list = getallsubs(searchstring, "pt", "Portuguese", 
file_original_path, searchstring_notclean)
         for sub in subtitles_list:
             append_subtitle(sub)
-    if 'por' in item['languages'] and PTBR_ON == 'true':
+    elif 'por' in item['languages'] and PTBR_ON == 'true':
         subtitles_list = getallsubs(searchstring, "pb", "Brazilian", 
file_original_path, searchstring_notclean)
         for sub in subtitles_list:
             append_subtitle(sub)
-    if 'spa' in item['languages'] and ES_ON == 'true':
+    elif 'spa' in item['languages'] and ES_ON == 'true':
         subtitles_list = getallsubs(searchstring, "es", "Spanish", 
file_original_path, searchstring_notclean)
         for sub in subtitles_list:
             append_subtitle(sub)
-    if 'eng' in item['languages'] and EN_ON == 'true':
+    elif 'eng' in item['languages'] and EN_ON == 'true':
         subtitles_list = getallsubs(searchstring, "en", "English", 
file_original_path, searchstring_notclean)
         for sub in subtitles_list:
             append_subtitle(sub)
-    #else:
-        #xbmc.executebuiltin((u'Notification(%s,%s)' % (__scriptname__ , 'only 
works for Portuguese,Brazilian,English,Spanish')).encode('utf-8'))
+    else:
+        xbmc.executebuiltin((u'Notification(%s,%s,%d)' % (__scriptname__ , 
'Only Portuguese | Portuguese Brazilian | English | Spanish.',15000)))
 
 def recursive_glob(treeroot, pattern):
     results = []

-----------------------------------------------------------------------

Summary of changes:
 service.subtitles.legendasdivx/addon.xml           |    6 +-
 service.subtitles.legendasdivx/changelog.txt       |    4 +
 .../resources/language/English/strings.xml         |    5 +
 .../resources/language/Portuguese/strings.xml      |    7 +-
 .../resources/settings.xml                         |    1 +
 service.subtitles.legendasdivx/service.py          |  140 +++++----
 .../LICENSE.txt                                    |    0
 .../README.md                                      |    0
 .../__init__.py                                    |    0
 .../addon.xml                                      |   10 +-
 service.subtitles.napisy24pl/changelog.txt         |    5 +
 service.subtitles.napisy24pl/icon.png              |  Bin 0 -> 27328 bytes
 service.subtitles.napisy24pl/logo.png              |  Bin 0 -> 19068 bytes
 .../resources/language/English/strings.po          |   22 +-
 .../resources/lib}/__init__.py                     |    0
 .../resources/settings.xml                         |   10 +
 service.subtitles.napisy24pl/service.py            |  358 ++++++++++++++++++++
 service.subtitles.subscene/addon.xml               |    2 +-
 service.subtitles.subscene/changelog.txt           |   41 +--
 service.subtitles.subscene/service.py              |    2 +-
 20 files changed, 508 insertions(+), 105 deletions(-)
 copy {service.subtitles.napiprojekt => 
service.subtitles.napisy24pl}/LICENSE.txt (100%)
 copy {service.subtitles.napiprojekt => service.subtitles.napisy24pl}/README.md 
(100%)
 copy {service.subtitles.napiprojekt => 
service.subtitles.napisy24pl}/__init__.py (100%)
 copy {service.subtitles.napiprojekt => service.subtitles.napisy24pl}/addon.xml 
(71%)
 create mode 100644 service.subtitles.napisy24pl/changelog.txt
 create mode 100644 service.subtitles.napisy24pl/icon.png
 create mode 100644 service.subtitles.napisy24pl/logo.png
 copy {service.subtitles.subtitle => 
service.subtitles.napisy24pl}/resources/language/English/strings.po (79%)
 copy {script.cu.lrclyrics/resources/lib/culrcscrapers => 
service.subtitles.napisy24pl/resources/lib}/__init__.py (100%)
 create mode 100644 service.subtitles.napisy24pl/resources/settings.xml
 create mode 100644 service.subtitles.napisy24pl/service.py


hooks/post-receive
-- 
Scripts

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to