Commit a8045276 authored by Philip Withnall's avatar Philip Withnall

Replaced XBMC-specific code in iPlayer library with Totem code

parent 4c2dd220
......@@ -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):
resp, data = http.request(url, 'GET')
#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)
return data
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment