Update list_merge.py

This commit is contained in:
Mirei 2022-10-01 21:03:10 +03:30 committed by GitHub
parent 5aeaeafe74
commit 100c6889dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,12 @@ class sub_merge():
file.write('Url Subscription could not be parsed')
file.close()
print(f'Writing error of {remarks} to {ids:0>2d}.txt\n')
print('Remove Duplicate Lines ...\n')
print('Before Count: %s' % str(content_list.__len__()))
content_list = list(set(content_list))
print('After Count: %s' % str(content_list.__len__()))
print('Remove Duplicate Lines Completed\n')
print('Merging nodes...\n')
content_raw = ''.join(content_list) # https://python3-cookbook.readthedocs.io/zh_CN/latest/c02/p14_combine_and_concatenate_strings.html