Skip to content

Commit

Permalink
Fixed: Highlighter of searchresults were shown in the favourites (Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
basrieter committed Jul 30, 2024
1 parent b839d4e commit f7c5599
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
13 changes: 5 additions & 8 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
[B]Retrospect v5.7.14 - Changelog - 2024-07-21[/B]
[B]Retrospect v5.7.x - Changelog - 2024-xx-xx[/B]

This version introduces enhanced searching and keeps track of previous searches, so you can reuse them. It also includes a number of fixes for channels, such as GoPlay and UR Play. And finally some artwork was updated.
t.b.d.

[B]Framework related[/B]
* Added: New search functionality with search history options (Fixes #1805).
* Fixed: Highlighter of searchresults were shown in the favourites (Fixes #1818).
* Fixed: In some cases a new searched items would be cleaned up immediately.

[B]GUI/Settings/Language related[/B]
_None_

[B]Channel related[/B]
* Updated: UR Play artwork and fixed categories.
* Updated: SVT poster and icon.
* Fixed: SVT HTML based videos (Fixes #1808).
* Fixed: GoPlay (Vier, Vijf, Zes, Zeven) channels broken (Fixes #1809).
* Fixed: UR Play listings (Fixes #1812).
_None_
16 changes: 8 additions & 8 deletions resources/lib/actions/searchaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ def execute(self):

else:
media_items = self.__channel.search_site(needle=self.__needle)
re_needle = re.escape(self.__needle)
Logger.debug(f"Highlighting {self.__needle} `{re_needle}` in results.")
highlighter = re.compile(f"({re_needle})", re.IGNORECASE)

for item in media_items:
item.name = highlighter.sub(r"[COLOR gold]\1[/COLOR]", item.name)
if item.description:
item.description = highlighter.sub(r"[COLOR gold]\1[/COLOR]", item.description)
# re_needle = re.escape(self.__needle)
# Logger.debug(f"Highlighting {self.__needle} `{re_needle}` in results.")
# highlighter = re.compile(f"({re_needle})", re.IGNORECASE)
#
# for item in media_items:
# item.name = highlighter.sub(r"[COLOR gold]\1[/COLOR]", item.name)
# if item.description:
# item.description = highlighter.sub(r"[COLOR gold]\1[/COLOR]", item.description)
folder_action = FolderAction(self.parameter_parser, self.__channel, items=media_items)
folder_action.execute()

Expand Down

0 comments on commit f7c5599

Please sign in to comment.