fixed link corruption when the year is published

This commit is contained in:
Pavel Muhortov 2024-01-02 12:45:34 +03:00
parent b06619e6a0
commit cd26b947cf

View File

@ -3813,7 +3813,7 @@ class Publish:
if period == 'm' or period == 'month': if period == 'm' or period == 'month':
reg_exp = "_(?:[0-9]{4}|yyyy).(?:[0-9]{2}|mm_)(?:|-[0-9]).mp4" reg_exp = "_(?:[0-9]{4}|yyyy).(?:[0-9]{2}|mm_)(?:|-[0-9]).mp4"
if period == 'y' or period == 'year': 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 replace = 0
new_str = link new_str = link