diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index 7221d32..5b2d7e2 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -356,11 +356,9 @@ class ListCtrl(wx.ListCtrl, ListCtrlAutoWidthMixin): def write(self, data): ''' Write data on ListCtrl row-column. ''' - for key in data: - for column in self.columns: - if key == column[0]: - self._write_data(data[key], data['index'], column[1]) - break + for column in self.columns: + column_key = column[0] + self._write_data(data[column_key], data['index'], column[1]) def load_urls(self, url_list, func=None): for url in url_list: