Skip to content

Commit

Permalink
use integer division for python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dkg committed Dec 18, 2014
1 parent 95f7af7 commit 7182df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def ytget(bot, trigger, uri):
if duration < 1:
vid_info['length'] = 'LIVE'
else:
hours = duration / (60 * 60)
minutes = duration / 60 - (hours * 60)
hours = duration // (60 * 60)
minutes = duration // 60 - (hours * 60)
seconds = duration % 60
vid_info['length'] = ''
if hours:
Expand Down

0 comments on commit 7182df5

Please sign in to comment.