aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/mtv.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-04-12 01:39:26 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-04-12 05:32:50 +0530
commitf9934b96145af8ac5dfdcbf684827aeaea9912a7 (patch)
tree0a00b551be555ed8aa70eac863cc83d335dc7b8a /yt_dlp/extractor/mtv.py
parentcfb0511d822b39748c5a64dfe86b61ff8d5af176 (diff)
downloadhypervideo-pre-f9934b96145af8ac5dfdcbf684827aeaea9912a7.tar.lz
hypervideo-pre-f9934b96145af8ac5dfdcbf684827aeaea9912a7.tar.xz
hypervideo-pre-f9934b96145af8ac5dfdcbf684827aeaea9912a7.zip
[cleanup] Mark some compat variables for removal (#2173)
Authored by fstirlitz, pukkandan
Diffstat (limited to 'yt_dlp/extractor/mtv.py')
-rw-r--r--yt_dlp/extractor/mtv.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/extractor/mtv.py b/yt_dlp/extractor/mtv.py
index be5de0a70..cff314e27 100644
--- a/yt_dlp/extractor/mtv.py
+++ b/yt_dlp/extractor/mtv.py
@@ -6,7 +6,6 @@ import re
from .common import InfoExtractor
from ..compat import (
compat_str,
- compat_xpath,
)
from ..utils import (
ExtractorError,
@@ -167,9 +166,9 @@ class MTVServicesInfoExtractor(InfoExtractor):
itemdoc, './/{http://search.yahoo.com/mrss/}category',
'scheme', 'urn:mtvn:video_title')
if title_el is None:
- title_el = itemdoc.find(compat_xpath('.//{http://search.yahoo.com/mrss/}title'))
+ title_el = itemdoc.find('.//{http://search.yahoo.com/mrss/}title')
if title_el is None:
- title_el = itemdoc.find(compat_xpath('.//title'))
+ title_el = itemdoc.find('.//title')
if title_el.text is None:
title_el = None