[totem] Replaced XBMC-specific code in iPlayer library with Totem code
- From: pwithnall src gnome org
- To: svn-commits-list gnome org
- Subject: [totem] Replaced XBMC-specific code in iPlayer library with Totem code
- Date: Tue, 5 May 2009 14:39:06 -0400 (EDT)
commit a8045276ee3c5112d0c2a5aade54583bc43dcb2d
Author: Philip Withnall <philip tecnocode co uk>
Date: Sun Apr 26 09:41:52 2009 +0100
Replaced XBMC-specific code in iPlayer library with Totem code
---
src/plugins/iplayer/iplayer2.py | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/src/plugins/iplayer/iplayer2.py b/src/plugins/iplayer/iplayer2.py
index 11a5e59..6555198 100644
--- a/src/plugins/iplayer/iplayer2.py
+++ b/src/plugins/iplayer/iplayer2.py
@@ -7,9 +7,8 @@ import logging
from pprint import pformat
from socket import timeout as SocketTimeoutError
from time import time
-
-# XBMC libs
-import xbmcgui
+
+import totem
# external libs
import httplib2
@@ -324,10 +323,8 @@ def httpget(url):
try:
resp, data = http.request(url, 'GET')
except:
- #print "Response for status %s for %s" % (resp.status, data)
- dialog = xbmcgui.Dialog()
- dialog.ok('Network Error', 'Failed to fetch URL', url)
- print 'Network Error. Failed to fetch URL %s' % url
+ #print "Response for status %s for %s" % (resp.status, data)
+ totem.action_error ('Network Error', 'Failed to fetch URL %s' % url)
raise
return data
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]