The branch, gotham has been updated
via e3051e92c0d5ac3568480cce1d6230e0ef43d803 (commit)
from f85f5d46a4e6393e1e2f4afc15f86b1d2b3b56b9 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=e3051e92c0d5ac3568480cce1d6230e0ef43d803
commit e3051e92c0d5ac3568480cce1d6230e0ef43d803
Author: Martijn Kaijser <[email protected]>
Date: Tue Nov 26 08:04:18 2013 +0100
[service.subtitles.bierdopje] 5.0.2
diff --git a/service.subtitles.bierdopje/addon.xml
b/service.subtitles.bierdopje/addon.xml
index 8d92c6b..0da8a33 100644
--- a/service.subtitles.bierdopje/addon.xml
+++ b/service.subtitles.bierdopje/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.subtitles.bierdopje"
name="Bierdopje"
- version="5.0.1"
+ version="5.0.2"
provider-name="mr_blobby">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
diff --git a/service.subtitles.bierdopje/changelog.txt
b/service.subtitles.bierdopje/changelog.txt
index 9bd706e..d50009e 100644
--- a/service.subtitles.bierdopje/changelog.txt
+++ b/service.subtitles.bierdopje/changelog.txt
@@ -1,3 +1,6 @@
+5.0.2
+- bugfix searching correct languages
+
5.0.1
- changed icon.png for add-on manager and added logo.png for skin to use in
window
diff --git a/service.subtitles.bierdopje/service.py
b/service.subtitles.bierdopje/service.py
index f6c104f..a4c0221 100644
--- a/service.subtitles.bierdopje/service.py
+++ b/service.subtitles.bierdopje/service.py
@@ -239,17 +239,15 @@ def search_subtitles( file_original_path, title, tvshow,
year, season, episode,
if tvshow_id is not None:
dutch = 0
english = 0
- if 'dut' in languages: dutch = languages.index('dut')
- if 'eng' in languages: english = languages.index('eng')
+ if 'dut' in languages: dutch = 1
+ if 'eng' in languages: english = 1
if dutch > 0:
getallsubs(tvshow_id, file_original_path, tvshow, season,
episode, "nl", "Dutch", subtitles_list)
if english > 0:
getallsubs(tvshow_id, file_original_path, tvshow, season,
episode, "en", "English", subtitles_list)
subtitles_list.sort(key=lambda x: [ x['sync'], x['rating']],
reverse = True)
- if ((dutch > 0) and (english > 0) and (dutch < english)):
+ if ((dutch == 1) and (english == 1)):
subtitles_list.sort(key=lambda x: [ x['language_name']])
- if ((dutch > 0) and (english > 0) and (dutch > english)):
- subtitles_list.sort(key=lambda x: [ x['language_name']],
reverse = True)
if ((dutch == 0) and (english == 0)):
okdialog = xbmcgui.Dialog()
# ok = okdialog.ok("Error", "Bierdopje is only for Dutch and
English subtitles")
-----------------------------------------------------------------------
Summary of changes:
service.subtitles.bierdopje/addon.xml | 2 +-
service.subtitles.bierdopje/changelog.txt | 3 +++
service.subtitles.bierdopje/service.py | 8 +++-----
3 files changed, 7 insertions(+), 6 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons