The branch, gotham has been updated
via f7d71d155810680fcd8b9079880f50f5b5eeba16 (commit)
from d3918524b90a881b6027c980bc295bd41f684d46 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=f7d71d155810680fcd8b9079880f50f5b5eeba16
commit f7d71d155810680fcd8b9079880f50f5b5eeba16
Author: Martijn Kaijser <[email protected]>
Date: Wed Feb 19 15:02:35 2014 +0100
[service.subtitles.subtitle] 4.1.3
diff --git a/service.subtitles.subtitle/addon.xml
b/service.subtitles.subtitle/addon.xml
index de52314..13eec21 100644
--- a/service.subtitles.subtitle/addon.xml
+++ b/service.subtitles.subtitle/addon.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.subtitles.subtitle"
name="Subtitle.co.il"
- version="4.1.2"
+ version="4.1.3"
provider-name="CaTz">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
@@ -14,7 +14,10 @@
sagiben
</description>
<source>https://github.com/XBMCil/service.subtitles.subtitle</source>
+ <language></language>
<email></email>
+ <forum></forum>
+ <website></website>
<license>GNU GENERAL PUBLIC LICENSE. Version 2, June 1991</license>
</extension>
</addon>
diff --git a/service.subtitles.subtitle/changelog.txt
b/service.subtitles.subtitle/changelog.txt
index ad8c143..463eb87 100644
--- a/service.subtitles.subtitle/changelog.txt
+++ b/service.subtitles.subtitle/changelog.txt
@@ -1,3 +1,6 @@
+4.1.3 - by CaTz 17/02/2014
+- Bug fix, usage the year if there is no year value
+
4.1.2 - by CaTz 14/02/2104
- Organization of the settings
diff --git a/service.subtitles.subtitle/resources/lib/SUBUtilities.py
b/service.subtitles.subtitle/resources/lib/SUBUtilities.py
index 84e9a32..d43cd83 100644
--- a/service.subtitles.subtitle/resources/lib/SUBUtilities.py
+++ b/service.subtitles.subtitle/resources/lib/SUBUtilities.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import cookielib
+from distutils.msvc9compiler import query_vcvarsall
import os
import re
import urllib
@@ -48,10 +49,12 @@ def get_cache_key(prefix="", str=""):
str = re.sub('\W+', '_', str).lower()
return prefix + ":" + str
+
def clear_cache():
cache.delete("tv-show%")
xbmc.executebuiltin((u'Notification(%s,%s)' % (__scriptname__,
__language__(32007))).encode('utf-8'))
+
# Returns the corresponding script language name for the Hebrew unicode
language
def heb_to_eng(language):
languages = {
@@ -113,8 +116,10 @@ class SubtitleHelper:
def _search_movie(self, item):
results = []
search_string = item["title"]
- query = {"q": search_string.lower(), "cs": "movies", "fy":
int(item["year"]) - 1,
- "uy": int(item["year"]) + 1}
+ query = {"q": search_string.lower(), "cs": "movies"}
+ if item["year"]:
+ query["fy"] = int(item["year"]) - 1
+ query["uy"] = int(item["year"]) + 1
search_result = self.urlHandler.request(self.BASE_URL + "/browse.php?"
+ urllib.urlencode(query))
if search_result is None:
-----------------------------------------------------------------------
Summary of changes:
.../{LICENSE => LICENSE.txt} | 0
service.subtitles.subtitle/addon.xml | 5 ++++-
service.subtitles.subtitle/changelog.txt | 3 +++
.../resources/lib/SUBUtilities.py | 9 +++++++--
4 files changed, 14 insertions(+), 3 deletions(-)
rename service.subtitles.subtitle/{LICENSE => LICENSE.txt} (100%)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons