1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Ensure start_time exists

This commit is contained in:
Phxntxm 2017-05-21 17:16:36 -05:00
parent 9544ccc425
commit e7a4f58229

View file

@ -119,7 +119,7 @@ class URLPlaylistEntry(BasePlaylistEntry):
@property
def progress(self):
if self.start_time:
if hasattr(self, 'start_time') and self.start_time:
return round(time.time() - self.start_time)
@property