Advertisement
Guest User

Code changes USTVnow Plus

a guest
Nov 12th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1.  
  2. ---------------
  3. ustvnow_plus.py
  4. ---------------
  5.  
  6. def get_recordings
  7.  
  8.     datetimestart = datetime.fromtimestamp(i['ut_start']).strftime('%Y-%m-%d %H:%M')
  9.  
  10. if (type == 'recordings' and event_inprogress == 0):
  11.     recordings.append({'channel': chan,
  12.                        'title': title,
  13.                        'datetimestart': datetimestart,
  14.  
  15.  
  16. ---------------
  17. main.py
  18. ---------------
  19.  
  20. if recordings:
  21.     for r in sorted(recordings, key=lambda k: k['datetimestart'], reverse=True):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement