Move id = comment[id]
in treatComment(comment)
to an inner scope
This commit is contained in:
parent
08a9880a58
commit
2888f5973d
@ -19,9 +19,9 @@ nextPageToken = ''
|
||||
commentRegexCompiled = re.compile(COMMENT_REGEX)
|
||||
|
||||
def treatComment(comment):
|
||||
id = comment['id']
|
||||
textOriginal = comment['snippet']['textOriginal']
|
||||
if commentRegexCompiled.search(textOriginal):
|
||||
id = comment['id']
|
||||
url = f'https://www.youtube.com/watch?v={VIDEO_ID}&lc={id}'
|
||||
print(f'{url} {textOriginal}')
|
||||
if OPEN_IN_FIREFOX:
|
||||
|
Reference in New Issue
Block a user