--- PluginMovieFilmAffinity.py.orig 2013-03-28 12:38:31.276227147 +0100 +++ PluginMovieFilmAffinity.py.modif 2013-03-28 12:38:13.480449625 +0100 @@ -176,15 +176,19 @@ elements = string.split(self.page, '') if (elements[0]<>''): + movieslist=[] for index in range(0, len(elements) - 1, 1): element = elements[index] nextelement = elements[index + 1] id = gutils.trim(element, ''))) + ' ' + string.strip(gutils.before(nextelement, '<')) - self.titles.append(title) + movieslist.append((id, title)) + movieslist = sorted(movieslist, key=lambda titulo: titulo[1]) + for i in movieslist: + self.ids.append(i[0]) + self.titles.append(i[1]) # # Plugin Test