Compare commits

...

2 commits

2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
/blacklists /blacklists
/lists* /lists*
/results /results
/youtube.pickle
# ---> Python # ---> Python
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files

View file

@ -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(