aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/eroprofile.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-05-09 21:19:09 +0600
committerSergey M․ <dstftw@gmail.com>2015-05-09 21:19:09 +0600
commit32fffff2ccc044c639c8723281981aa347423762 (patch)
treecbb6056d906cd036b0e479faebe6665784c0488e /youtube_dl/extractor/eroprofile.py
parent3c47824d6be7aa1eb710716ecad514c8de49ee64 (diff)
[eroprofile] Fix video URL extraction (Closes #5657)
Diffstat (limited to 'youtube_dl/extractor/eroprofile.py')
-rw-r--r--youtube_dl/extractor/eroprofile.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/eroprofile.py b/youtube_dl/extractor/eroprofile.py
index 0cbca90b0..316033cf1 100644
--- a/youtube_dl/extractor/eroprofile.py
+++ b/youtube_dl/extractor/eroprofile.py
@@ -4,7 +4,10 @@ import re
from .common import InfoExtractor
from ..compat import compat_urllib_parse
-from ..utils import ExtractorError
+from ..utils import (
+ ExtractorError,
+ unescapeHTML
+)
class EroProfileIE(InfoExtractor):
@@ -75,8 +78,8 @@ class EroProfileIE(InfoExtractor):
[r"glbUpdViews\s*\('\d*','(\d+)'", r'p/report/video/(\d+)'],
webpage, 'video id', default=None)
- video_url = self._search_regex(
- r'<source src="([^"]+)', webpage, 'video url')
+ video_url = unescapeHTML(self._search_regex(
+ r'<source src="([^"]+)', webpage, 'video url'))
title = self._html_search_regex(
r'Title:</th><td>([^<]+)</td>', webpage, 'title')
thumbnail = self._search_regex(