@@ -27,17 +27,17 @@ # # Untested. import action -import http +import ahttp from config import conf from channels import * import os, os.path from pq import pq import lxml.etree -import mygtk +import uikit # return text entry from etree list def get(item, tag, hint=None): @@ -84,11 +84,11 @@ ChannelPlugin.__init__(self,parent) # gtk.messagebox def warn(self): - mygtk.msg("Podspiderpdb.xml.tmp_ couldn't be found anywhere.\nInstall Radiograbber via Wine to create it.") + uikit.msg("Podspiderpdb.xml.tmp_ couldn't be found anywhere. Install Radiograbber via Wine to create it.") # prevent cache file creation, as it would contain sublists and ends up being unreadable by json module def save(self, *a): pass @@ -147,11 +147,11 @@ # loads RSS and gets first entry url def play(self, row): audio = "audio/mp3" r = [] - for e in pq(http.get(row["homepage"])).find("enclosure"): + for e in pq(ahttp.get(row["homepage"])).find("enclosure"): r.append(e.get("url")) audio = e.get("type") if r: action.action.play(r[0], audioformat=audio, listformat="url/direct")