diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2024-04-01 05:31:09 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 05:31:09 +0530 |
commit | e3a3ed8a981d9395c4859b6ef56cd02bc3148db2 (patch) | |
tree | 2f61a343fd48af1ea30ea1edea365d8c85e7bddb /yt_dlp/extractor/rokfin.py | |
parent | a25a424323267e3f6f9f63c0b62df499bd7b8d46 (diff) |
[ie, cleanup] No `from` stdlib imports in extractors (#8978)
Diffstat (limited to 'yt_dlp/extractor/rokfin.py')
-rw-r--r-- | yt_dlp/extractor/rokfin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/rokfin.py b/yt_dlp/extractor/rokfin.py index 5099f3ae4..56bbccde4 100644 --- a/yt_dlp/extractor/rokfin.py +++ b/yt_dlp/extractor/rokfin.py @@ -1,8 +1,8 @@ +import datetime import itertools import json import re import urllib.parse -from datetime import datetime from .common import InfoExtractor, SearchInfoExtractor from ..utils import ( @@ -156,7 +156,7 @@ class RokfinIE(InfoExtractor): self.raise_login_required('This video is only available to premium users', True, method='cookies') elif scheduled: self.raise_no_formats( - f'Stream is offline; scheduled for {datetime.fromtimestamp(scheduled).strftime("%Y-%m-%d %H:%M:%S")}', + f'Stream is offline; scheduled for {datetime.datetime.fromtimestamp(scheduled).strftime("%Y-%m-%d %H:%M:%S")}', video_id=video_id, expected=True) uploader = traverse_obj(metadata, ('createdBy', 'username'), ('creator', 'username')) |