aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/motherless.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2024-02-25 05:46:34 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2024-04-01 05:32:15 +0530
commitc305a25c1b16bcf7a5ec499c3b786ed1e2c748da (patch)
treec511474fa3a4f6f37d25e49f64a7cd4a4a3f6250 /yt_dlp/extractor/motherless.py
parente3a3ed8a981d9395c4859b6ef56cd02bc3148db2 (diff)
[cleanup] Standardize `import datetime as dt` (#8978)
Diffstat (limited to 'yt_dlp/extractor/motherless.py')
-rw-r--r--yt_dlp/extractor/motherless.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/motherless.py b/yt_dlp/extractor/motherless.py
index 160150a7b..b6c18fe5b 100644
--- a/yt_dlp/extractor/motherless.py
+++ b/yt_dlp/extractor/motherless.py
@@ -1,4 +1,4 @@
-import datetime
+import datetime as dt
import re
import urllib.parse
@@ -151,7 +151,7 @@ class MotherlessIE(InfoExtractor):
'd': 'days',
}
kwargs = {_AGO_UNITS.get(uploaded_ago[-1]): delta}
- upload_date = (datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(**kwargs)).strftime('%Y%m%d')
+ upload_date = (dt.datetime.now(dt.timezone.utc) - dt.timedelta(**kwargs)).strftime('%Y%m%d')
comment_count = len(re.findall(r'''class\s*=\s*['"]media-comment-contents\b''', webpage))
uploader_id = self._html_search_regex(