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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user