Skip to content

Commit

Permalink
Update eztv.py
Browse files Browse the repository at this point in the history
Changed the random choice to the secrets library
  • Loading branch information
nindogo authored Jan 22, 2024
1 parent 0b5a928 commit 5c0463a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nova3/engines/eztv.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from html.parser import HTMLParser

import random
import secrets
import http.cookiejar
import urllib.request
import urllib.parse
Expand Down Expand Up @@ -56,7 +56,7 @@ def random_user_agent():
'96.0.4664.93',
'97.0.4692.20',
)
return _USER_AGENT_TPL % random.choice(_CHROME_VERSIONS)
return _USER_AGENT_TPL % secrets.choice(_CHROME_VERSIONS)

class eztv(object):
name = "EZTV"
Expand Down

0 comments on commit 5c0463a

Please sign in to comment.