Skip to content

Commit

Permalink
Add <trakt> tag hilighting
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 9, 2023
1 parent e090f8b commit 038df36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plextraktsync/rich_addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class RichHighlighter(RegexHighlighter):
r"(?P<attrib_name>[\w_]{1,50})=(?P<attrib_value>\"?[\w_]+\"?)?",
r"(?P<tag_start>\<)(?P<tag_name>(?:Movie|Episode|Show):\d+:[^>]+)(?P<tag_end>\>)",
r"(?P<tag_start>\<)(?P<tag_name>(?:PlexGuid|Guid|PlexLibrarySection):[^>]+)(?P<tag_end>\>)",
r"(?P<tag_start>\<)(?P<tag_name>(?:trakt):[^>]+)(?P<tag_end>\>)",
r"(?P<tag_start>\<)(?P<tag_name>(?:imdb|tmdb|tvdb|local):(?:(?:tt)?\d+:)[^>]+)(?P<tag_end>\>)",
r"\b(?P<bool_true>True)\b|\b(?P<bool_false>False)\b|\b(?P<none>None)\b",
r"(?<![\\\w])(?P<str>b?\'\'\'.*?(?<!\\)\'\'\'|b?\'.*?(?<!\\)\'|b?\"\"\".*?(?<!\\)\"\"\"|b?\".*?(?<!\\)\")",
Expand Down

0 comments on commit 038df36

Please sign in to comment.