Michel Roux
9b6cae5dc2
All checks were successful
continuous-integration/drone/push Build is passing
15 lines
469 B
Python
15 lines
469 B
Python
from config import app
|
|
from connectors import curl_content
|
|
from models import AnimeLink
|
|
|
|
app.config['SQLALCHEMY_ECHO'] = False
|
|
links = AnimeLink.query.all()
|
|
|
|
for link in links:
|
|
html = curl_content(link.link)
|
|
|
|
if html['http_code'] != 200:
|
|
print('(%d) %s %s : %s' % (html['http_code'], link.title.name, link.season, link.link))
|
|
elif 'darkgray' in str(html['output']):
|
|
print('(darkgray) %s %s : %s' % (link.title.name, link.season, link.link))
|