diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2024-02-25 05:46:34 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2024-04-01 05:32:15 +0530 |
commit | c305a25c1b16bcf7a5ec499c3b786ed1e2c748da (patch) | |
tree | c511474fa3a4f6f37d25e49f64a7cd4a4a3f6250 /yt_dlp/extractor/panopto.py | |
parent | e3a3ed8a981d9395c4859b6ef56cd02bc3148db2 (diff) |
[cleanup] Standardize `import datetime as dt` (#8978)
Diffstat (limited to 'yt_dlp/extractor/panopto.py')
-rw-r--r-- | yt_dlp/extractor/panopto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/panopto.py b/yt_dlp/extractor/panopto.py index 52e703e04..63c5fd68f 100644 --- a/yt_dlp/extractor/panopto.py +++ b/yt_dlp/extractor/panopto.py @@ -1,5 +1,5 @@ import calendar -import datetime +import datetime as dt import functools import json import random @@ -243,7 +243,7 @@ class PanoptoIE(PanoptoBaseIE): invocation_id = delivery_info.get('InvocationId') stream_id = traverse_obj(delivery_info, ('Delivery', 'Streams', ..., 'PublicID'), get_all=False, expected_type=str) if invocation_id and stream_id and duration: - timestamp_str = f'/Date({calendar.timegm(datetime.datetime.now(datetime.timezone.utc).timetuple())}000)/' + timestamp_str = f'/Date({calendar.timegm(dt.datetime.now(dt.timezone.utc).timetuple())}000)/' data = { 'streamRequests': [ { |