Prevent multiples of same music for same user
This commit is contained in:
parent
96c6bfa8fa
commit
7d8c152543
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def generate_list(args):
|
||||||
(re.compile(r"[\?\&]v=(\w+)").search(_musik) or ("", _musik))[1]
|
(re.compile(r"[\?\&]v=(\w+)").search(_musik) or ("", _musik))[1]
|
||||||
for _musik in f.read().splitlines()
|
for _musik in f.read().splitlines()
|
||||||
]
|
]
|
||||||
_musiks = list(filter(lambda _m: _m not in blacklist, _raw_musiks))
|
_musiks = list(set(filter(lambda _m: _m not in blacklist, _raw_musiks)))
|
||||||
|
|
||||||
if len(_musiks) < args.number:
|
if len(_musiks) < args.number:
|
||||||
logger.error(
|
logger.error(
|
||||||
|
|
Loading…
Reference in a new issue