Ensure start_time exists
This commit is contained in:
parent
9544ccc425
commit
e7a4f58229
|
@ -119,7 +119,7 @@ class URLPlaylistEntry(BasePlaylistEntry):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def progress(self):
|
def progress(self):
|
||||||
if self.start_time:
|
if hasattr(self, 'start_time') and self.start_time:
|
||||||
return round(time.time() - self.start_time)
|
return round(time.time() - self.start_time)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in a new issue