Mercurial > codedump
diff getlist.py @ 41:37f231f85a67
add tabs to some c++ files and fix win95kg.cpp
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 30 Jun 2021 02:38:59 -0400 |
parents | 2aa9614cb39a |
children | eac6dae753ca |
line wrap: on
line diff
--- a/getlist.py Mon Jun 21 15:16:15 2021 -0400 +++ b/getlist.py Wed Jun 30 02:38:59 2021 -0400 @@ -43,8 +43,7 @@ f.close() count = 1 for i in range(amount): # this may count as spamming the api but i don't care lol - with urllib.request.urlopen( - f'https://api.themoviedb.org/3/tv/{str(id)}/season/{season}/episode/{count}?api_key={key}') as url: + with urllib.request.urlopen(f'https://api.themoviedb.org/3/tv/{str(id)}/season/{season}/episode/{count}?api_key={key}') as url: data = json.loads(url.read().decode()) f = open("list.txt", "a", encoding="utf-8") f.write(data["name"].replace("?", "?").replace(