Scripts
This commit is contained in:
commit
ffbe866bc6
3 changed files with 132 additions and 0 deletions
18
checkduplicate.py
Normal file
18
checkduplicate.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
duplicate = []
|
||||
with open("musiclist.txt", "r") as file:
|
||||
lines = file.readlines()
|
||||
for line in lines:
|
||||
url = line.split("---")[1]
|
||||
a = 0
|
||||
for line2 in lines:
|
||||
url2 = line2.split("---")[1]
|
||||
if url == url2:
|
||||
a += 1
|
||||
if a >= 2:
|
||||
if not line in duplicate:
|
||||
duplicate.append(line)
|
||||
else:
|
||||
continue
|
||||
|
||||
for duplines in duplicate:
|
||||
print(duplines)
|
Loading…
Add table
Add a link
Reference in a new issue