summaryrefslogtreecommitdiff
path: root/src/plugins/iplayer
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2009-04-26 09:41:52 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2009-05-05 19:13:06 +0100
commita8045276ee3c5112d0c2a5aade54583bc43dcb2d (patch)
tree8d71aa65ea447a2672c8afd4fd85a71a3fd45b6a /src/plugins/iplayer
parent4c2dd22057134d25bae5196ef89b6927edcc4020 (diff)
downloadtotem-a8045276ee3c5112d0c2a5aade54583bc43dcb2d.tar.gz
Replaced XBMC-specific code in iPlayer library with Totem code
Diffstat (limited to 'src/plugins/iplayer')
-rw-r--r--src/plugins/iplayer/iplayer2.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/plugins/iplayer/iplayer2.py b/src/plugins/iplayer/iplayer2.py
index 11a5e599c..6555198a5 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