mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
fix compatibility of mtv81 for python3.2/3.3
This commit is contained in:
parent
1dd76593ff
commit
a1f6c6d691
@ -3,13 +3,15 @@
|
||||
__all__ = ['mtv81_download']
|
||||
|
||||
from ..common import *
|
||||
from html.parser import unescape
|
||||
|
||||
from xml.dom.minidom import parseString
|
||||
|
||||
from html.parser import HTMLParser
|
||||
|
||||
|
||||
def mtv81_download(url, output_dir='.', merge=True, info_only=False):
|
||||
html = get_content(url)
|
||||
title = unescape(
|
||||
title = HTMLParser().unescape(
|
||||
"|".join(match1(html, r"<title>(.*?)</title>").split("|")[:-2]))
|
||||
|
||||
# mgid%3Auma%3Avideo%3Amtv81.com%3A897974
|
||||
|
Loading…
x
Reference in New Issue
Block a user