Skip to content

Commit

Permalink
remove explicit UTF-8 calls [fix: Error on load public url #2]
Browse files Browse the repository at this point in the history
  • Loading branch information
ddurdle committed Mar 8, 2014
1 parent 522ac22 commit f2aa3f3
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 6 deletions.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion addon.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.gdrive" version="0.2.7.20140307" name="gdrive" provider-name="dmdsoftware">
<addon id="plugin.video.gdrive" version="0.2.7.20140308" name="gdrive" provider-name="dmdsoftware">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
</requires>
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- remove explicit UTF-8 calls [Error on load public url #2]
- add remote-debugger code
- cleanup of logging statements
- don't login or provide authorization token for public videos (unless denied access)
- add thumbnail previews
Version 0.2.7
Expand Down
6 changes: 3 additions & 3 deletions default.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

def log(msg, err=False):
if err:
xbmc.log(addon.getAddonInfo('name') + ': ' + msg.encode('utf-8'), xbmc.LOGERROR)
xbmc.log(addon.getAddonInfo('name') + ': ' + msg, xbmc.LOGERROR)
else:
xbmc.log(addon.getAddonInfo('name') + ': ' + msg.encode('utf-8'), xbmc.LOGDEBUG)
xbmc.log(addon.getAddonInfo('name') + ': ' + msg, xbmc.LOGDEBUG)

def parse_query(query):
queries = cgi.parse_qs(query)
Expand All @@ -42,7 +42,7 @@ def parse_query(query):
def addVideo(url, infolabels, img='', fanart='', total_items=0,
cm=[], cm_replace=False):
infolabels = decode_dict(infolabels)
log('adding video: %s - %s' % (infolabels['title'].decode('utf-8','ignore'), url))
log('adding video: %s - %s' % (infolabels['title'], url))
listitem = xbmcgui.ListItem(infolabels['title'], iconImage=img,
thumbnailImage=img)
listitem.setInfo('video', infolabels)
Expand Down
Empty file modified icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icon.xcf
100644 → 100755
Empty file.
Empty file modified resources/__init__.py
100644 → 100755
Empty file.
Empty file modified resources/__init__.pyc
100644 → 100755
Empty file.
Empty file modified resources/language/english/strings.xml
100644 → 100755
Empty file.
Empty file modified resources/lib/__init__.py
100644 → 100755
Empty file.
Empty file modified resources/lib/__init__.pyc
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions resources/lib/gdrive.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

def log(msg, err=False):
if err:
xbmc.log(addon.getAddonInfo('name') + ': ' + msg.encode('utf-8'), xbmc.LOGERROR)
xbmc.log(addon.getAddonInfo('name') + ': ' + msg, xbmc.LOGERROR)
else:
xbmc.log(addon.getAddonInfo('name') + ': ' + msg.encode('utf-8'), xbmc.LOGDEBUG)
xbmc.log(addon.getAddonInfo('name') + ': ' + msg, xbmc.LOGDEBUG)

class gdrive:

Expand Down
Empty file modified resources/lib/gdrive.pyc
100644 → 100755
Empty file.
Empty file modified resources/settings.xml
100644 → 100755
Empty file.

0 comments on commit f2aa3f3

Please sign in to comment.