From cd26b947cfa2acc2cda44b33b307b78cd116b4b2 Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Tue, 2 Jan 2024 12:45:34 +0300 Subject: [PATCH] fixed link corruption when the year is published --- cctv-scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cctv-scheduler.py b/cctv-scheduler.py index b6b60d8..a719b2b 100644 --- a/cctv-scheduler.py +++ b/cctv-scheduler.py @@ -3813,7 +3813,7 @@ class Publish: if period == 'm' or period == 'month': reg_exp = "_(?:[0-9]{4}|yyyy).(?:[0-9]{2}|mm_)(?:|-[0-9]).mp4" if period == 'y' or period == 'year': - reg_exp = "_(?:[0-9]{4}|yyyy)(?:|-[0-9])" + reg_exp = "_(?:[0-9]{4}|yyyy)(?:|-[0-9]).mp4" replace = 0 new_str = link