From 09bd1b3fbc28452633de2a894dfb50a8da1ea7f1 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Mon, 7 Aug 2023 15:11:38 +0200 Subject: [PATCH 1/2] fix 3.12 regex issue --- gui/slick/interfaces/default/inc_top.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/slick/interfaces/default/inc_top.tmpl b/gui/slick/interfaces/default/inc_top.tmpl index 056384e4..2853a85d 100644 --- a/gui/slick/interfaces/default/inc_top.tmpl +++ b/gui/slick/interfaces/default/inc_top.tmpl @@ -190,7 +190,7 @@ trakt_played='most played this month', trakt_played_period_year='most played this year', trakt_collected='most collected this month', trakt_collected_period_year='most collected this year', trakt_recommended='recommended', trakt_watchlist='watchlist') -#set $trakt_mode = $trakt_modes.get(re.sub('[\?=]', '_', $sg_var('TRAKT_MRU')), 'trends, tailored suggestions') +#set $trakt_mode = $trakt_modes.get(re.sub(r'[\?=]', '_', $sg_var('TRAKT_MRU')), 'trends, tailored suggestions')
  • Trakt Cards
  • #set $imdb_func = $sg_str('IMDB_MRU').split('-') From 81a76461b23cae5968c3ac69636c1f6513171285 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Wed, 26 Jul 2023 20:14:29 +0200 Subject: [PATCH 2/2] py3 fix: guessit return list instead of range object --- CHANGES.md | 1 + lib/guessit/transfo/guess_episodes_rexps.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 15edc6d2..21c9ad0c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -2,6 +2,7 @@ * Update Beautiful Soup 4.11.1 (r642) to 4.12.2 * Update soupsieve 2.3.2.post1 (792d566) to 2.4.1 (2e66beb) +* Fix regex that was not using py312 notation ### 3.29.4 (2023-06-07 13:45:00 UTC) diff --git a/lib/guessit/transfo/guess_episodes_rexps.py b/lib/guessit/transfo/guess_episodes_rexps.py index 4523441b..27a8a7c8 100644 --- a/lib/guessit/transfo/guess_episodes_rexps.py +++ b/lib/guessit/transfo/guess_episodes_rexps.py @@ -32,7 +32,7 @@ def number_list(s): if len(l) == 2: # it is an episode interval, return all numbers in between - return range(l[0], l[1]+1) + return list(range(l[0], l[1]+1)) return l