1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-14 05:17:25 +00:00

Removed inaccurate warning

This commit is contained in:
Philipp Hagemeister 2011-07-22 15:28:42 +02:00
parent 91e6a3855b
commit 47b8dab29e

View File

@ -1233,7 +1233,6 @@ class YoutubeIE(InfoExtractor):
except NameError: except NameError:
video_description = u'No description available.' video_description = u'No description available.'
if self._downloader.params.get('forcedescription', False) or self._downloader.params.get('writedescription', False): if self._downloader.params.get('forcedescription', False) or self._downloader.params.get('writedescription', False):
warnings.warn(u'You are using an old Python version, install Python 2.6+ or lxml. Falling back to old video description extractor.')
mobj = re.search(r'<meta name="description" content="(.*)"(?:\s*/)?>', video_webpage) mobj = re.search(r'<meta name="description" content="(.*)"(?:\s*/)?>', video_webpage)
if mobj is not None: if mobj is not None:
video_description = mobj.group(1).decode('utf-8') video_description = mobj.group(1).decode('utf-8')