Skip to content

Commit

Permalink
Make TVDB less noisy
Browse files Browse the repository at this point in the history
  • Loading branch information
palfrey committed Sep 26, 2015
1 parent 9355f00 commit 822d76b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fetch/tvdb.py
Expand Up @@ -9,10 +9,10 @@ class tvdb:
def run(self,inf,sid):
url = "http://thetvdb.com/?tab=seasonall&id=%s"%sid
data = inf["cache"].get(url,max_age=60*60*12).read()
#data = data.encode('utf-8')
data = data.encode('utf-8')
open("dump","wb").write(data)
rows = tvdb.row.findall(data)
print rows
#print rows
neweps = []
for (season, epnum, title, date) in rows:
neweps.append((int(season), int(epnum), strptime(date,"%Y-%m-%d"), title))
Expand Down

0 comments on commit 822d76b

Please sign in to comment.