fix unicode error when adding linux luddites - ogg
The title is unicode when put in the model but comes out as str. It needs to be converted back to unicode (long '-' in the title) otherwise there is an error in model.py#_format_description
This commit is contained in:
parent
213b3e3207
commit
60426eddbc
|
@ -72,7 +72,7 @@ class DirectoryPodcastsModel(Gtk.ListStore):
|
|||
self.callback_can_subscribe(len(self.get_selected_podcasts()) > 0)
|
||||
|
||||
def get_selected_podcasts(self):
|
||||
return [(row[self.C_TITLE], row[self.C_URL]) for row in self if row[self.C_SELECTED]]
|
||||
return [(unicode(row[self.C_TITLE],'utf8'), row[self.C_URL]) for row in self if row[self.C_SELECTED]]
|
||||
|
||||
|
||||
class DirectoryProvidersModel(Gtk.ListStore):
|
||||
|
@ -230,6 +230,7 @@ class gPodderPodcastDirectory(BuilderWidget):
|
|||
|
||||
def on_tv_providers_cursor_changed(self, treeview):
|
||||
path, column = treeview.get_cursor()
|
||||
if path is not None:
|
||||
self.on_tv_providers_row_activated(treeview, path, column)
|
||||
|
||||
def obtain_podcasts_with(self, callback):
|
||||
|
|
Loading…
Reference in a new issue