1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Implemented custom rules

This commit is contained in:
Krateng
2018-11-28 17:45:52 +01:00
parent 144198f933
commit 54bffc5642
5 changed files with 163 additions and 67 deletions

View File

@@ -1,9 +1,12 @@
import sys, os, datetime, re, cleanup
from cleanup import *
log = open(sys.argv[1])
outputlog = open(sys.argv[2],"a")
c = CleanerAgent()
for l in log:
l = l.replace("\n","")
data = l.split(",")
@@ -13,8 +16,8 @@ for l in log:
title = data[2]
time = data[3]
(artists,title) = cleanup.fullclean(artist,title)
(artists,title) = c.fullclean(artist,title)
artistsstr = "".join(artists)