The branch, eden has been updated
       via  ea3ae152905d058ec3cb9d50a183b4efdd8cc7b2 (commit)
      from  2033345df1e1ad1d2a3b71632d11eca78a1b7a19 (commit)

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

commit ea3ae152905d058ec3cb9d50a183b4efdd8cc7b2
Author: beenje <[email protected]>
Date:   Sun Jun 9 22:06:34 2013 +0200

    [plugin.video.g4tv] updated to version 2.0.2

diff --git a/plugin.video.g4tv/addon.xml b/plugin.video.g4tv/addon.xml
index ca3b60f..67ba268 100644
--- a/plugin.video.g4tv/addon.xml
+++ b/plugin.video.g4tv/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.video.g4tv"
        name="G4TV"
-       version="2.0.1"
+       version="2.0.2"
        provider-name="stacked">
   <requires>
     <import addon="xbmc.python" version="2.0"/>
@@ -17,5 +17,9 @@
     <description lang="en">G4TV is the one destination on television that 
feeds your addiction for the latest must-have tech gadgets, web culture and 
video games.</description>
     <platform>all</platform>
        <language>en</language>
+       <website>https://code.google.com/p/plugin</website>
+       <source>https://github.com/stacked/plugin.video.g4tv</source>
+       <forum>http://forum.xbmc.org/showthread.php?tid=43556</forum>
+       <email>[email protected]</email>
   </extension>
 </addon>
diff --git a/plugin.video.g4tv/changelog.txt b/plugin.video.g4tv/changelog.txt
index 80bbfed..78421b2 100644
--- a/plugin.video.g4tv/changelog.txt
+++ b/plugin.video.g4tv/changelog.txt
@@ -1,4 +1,8 @@
-[B]Version 2.0.1[/B]
+[B]Version 2.0.2[/B]
+
+- Fixed 'AttributeError' when using the search function
+
+[B]Version 3.0.1[/B]
 
 - Fixed 'Script failed!' Error
 - Fixed index error caused by getParameters
diff --git a/plugin.video.g4tv/default.py b/plugin.video.g4tv/default.py
index 1a428d0..ad28170 100644
--- a/plugin.video.g4tv/default.py
+++ b/plugin.video.g4tv/default.py
@@ -4,8 +4,8 @@ import xbmc, xbmcgui, xbmcplugin, xbmcaddon, urllib, re, 
string, sys, os, buggal
 plugin = 'G4TV'
 __author__ = 'stacked <[email protected]>'
 __url__ = 'http://code.google.com/p/plugin/'
-__date__ = '01-21-2013'
-__version__ = '2.0.1'
+__date__ = '06-09-2013'
+__version__ = '2.0.2'
 settings = xbmcaddon.Addon(id='plugin.video.g4tv')
 buggalo.SUBMIT_URL = 'http://www.xbmc.byethost17.com/submit.php'
 dbg = False
@@ -61,8 +61,11 @@ def build_sub_directory(name, type):
 
 def build_video_directory(name, url):
        if name == settings.getLocalizedString( 30012 ):
-               searchr = common.getUserInput(settings.getLocalizedString( 
30001 ), "").replace(' ','%20')
-               url = 'http://g4tv.com/videos/?sort=mostrecent&q='+ searchr 
+'&ajax=true'
+               searchr = common.getUserInput(settings.getLocalizedString( 
30001 ), "")
+               if searchr == None:
+                       build_main_directory()
+                       return
+               url = 'http://g4tv.com/videos/?sort=mostrecent&q='+ 
searchr.replace(' ','%20') +'&ajax=true'
        nexturl = url
        html = getUrl(url + '&page=' + str(page))
        wrap1 = common.parseDOM(html, "div", attrs = { "class": "li-wrap-1" })
@@ -76,6 +79,7 @@ def build_video_directory(name, url):
        if len(img) == 0:
                dialog = xbmcgui.Dialog()
                ok = dialog.ok( plugin , settings.getLocalizedString( 30002 ) + 
'\n' + settings.getLocalizedString( 30003 ) )
+               build_main_directory()
                return
        for item_count in range(len(img)):
                if common.stripTags(info[item_count]).find('Views') == -1:

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

Summary of changes:
 plugin.video.g4tv/addon.xml     |    6 +++++-
 plugin.video.g4tv/changelog.txt |    6 +++++-
 plugin.video.g4tv/default.py    |   12 ++++++++----
 3 files changed, 18 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to