Skip to content

Commit

Permalink
Merge pull request #9 from shopgirl284/kidfix
Browse files Browse the repository at this point in the history
Fix duration error
  • Loading branch information
sander1 authored Sep 28, 2017
2 parents 1355ef2 + b6c4593 commit 7aa0645
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def VideoPage(type, title, start=0):
url = VIDEO_URL % item['guid']
video_title = item['title']
summary = item['description']
duration = item['videos']['iphone']['length']
try: duration = item['videos']['iphone']['length']
except: duration = None

try: thumb = item['images']['originalres_16x9']['url']
except:
Expand Down

0 comments on commit 7aa0645

Please sign in to comment.