mirror of
https://github.com/abc1763613206/myiptv.git
synced 2025-12-17 23:34:35 +08:00
feat: check unique
This commit is contained in:
6
main.py
6
main.py
@@ -22,6 +22,8 @@ SKIP_FFPROBE_MESSAGES = [re.compile(pattern) for pattern in (
|
||||
'number of reference frames .+ exceeds max',
|
||||
)]
|
||||
|
||||
uniqueList = []
|
||||
|
||||
@func_set_timeout(12)
|
||||
def get_stream(num, clist, uri):
|
||||
try:
|
||||
@@ -98,6 +100,10 @@ def main():
|
||||
print('Channel,Group,Source,Link', file=f0)
|
||||
for row in f_csv:
|
||||
try:
|
||||
if row[3] in uniqueList:
|
||||
ret = False
|
||||
else:
|
||||
uniqueList.append(row[3])
|
||||
ret = check_channel(row,num)
|
||||
except FunctionTimedOut as e:
|
||||
#traceback.print_exc()
|
||||
|
||||
Reference in New Issue
Block a user