From b980e90068d4143e82cbd1294ab0f5df7e5c2372 Mon Sep 17 00:00:00 2001 From: blank X Date: Wed, 7 Apr 2021 16:22:38 +0700 Subject: [PATCH] Strip date from video title --- autoytarchive/workers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/autoytarchive/workers.py b/autoytarchive/workers.py index 949f5c5..d33506b 100644 --- a/autoytarchive/workers.py +++ b/autoytarchive/workers.py @@ -147,6 +147,7 @@ async def _video_worker(): text = 'New video' if is_late: text += ' (is late)' + video_json['title'] = strip_date.sub('', video_json['title']).strip() text += f': {video_json["title"]}\nhttps://youtube.com/watch?v={video_json["id"]}' with BytesIO(json.dumps(video_json, indent=4).encode()) as file: file.name = video_json['id'] + '.json'