Allow music ID instead of URLS in music lists
This commit is contained in:
parent
16f909fa0d
commit
d0ca4899a6
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ for q in ROOT_PATH.iterdir():
|
||||||
print("> > > Lecture de la liste")
|
print("> > > Lecture de la liste")
|
||||||
with q.open() as f:
|
with q.open() as f:
|
||||||
_raw_musiks = [
|
_raw_musiks = [
|
||||||
re.compile(r"[\?\&]v=(\w+)").search(_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: not _m in blacklist, _raw_musiks))
|
_musiks = list(filter(lambda _m: not _m in blacklist, _raw_musiks))
|
||||||
|
|
Loading…
Reference in a new issue