Skip to content

Commit

Permalink
buf fix for availabilityStartTime 1970-01-01
Browse files Browse the repository at this point in the history
  • Loading branch information
xhlove committed May 21, 2022
1 parent f88dc3b commit f64f1a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion XstreamDL_CLI/extractors/dash/mpd.py
Expand Up @@ -31,7 +31,8 @@ def generate(self):
if isinstance(self.minBufferTime, str):
self.minBufferTime = self.match_duration(self.minBufferTime)
if isinstance(self.availabilityStartTime, str):
if self.availabilityStartTime in ['1970-01-01T00:00:00Z', '1970-01-01T00:00:00.000Z']:
# if self.availabilityStartTime in ['1970-01-01T00:00:00Z', '1970-01-01T00:00:00.000Z']:
if self.availabilityStartTime.startswith('1970-01-01'):
self.availabilityStartTime = 0.0
# 2019-03-05T08:26:06.748000+00:00
if isinstance(self.availabilityStartTime, str) and self.availabilityStartTime[-9:] == '000+00:00':
Expand Down

0 comments on commit f64f1a5

Please sign in to comment.