youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 044e3d91b5715f7aa63c578097b77fd510ed0f73
parent c9e538a3b1cde6ce140323a029c7b6f7386eb004
Author: kidol <keyboard.idol@gmail.com>
Date:   Thu, 30 Jun 2016 21:06:22 +0200

[Pornhub] Fix error detection

Diffstat:
Myoutube_dl/extractor/pornhub.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py @@ -87,7 +87,7 @@ class PornHubIE(InfoExtractor): webpage = self._download_webpage(req, video_id) error_msg = self._html_search_regex( - r'(?s)<div class="userMessageSection[^"]*".*?>(.*?)</div>', + r'<div[^>]+class="removed">\s*<div[^>]*>\s*<p>\s*<span>([^<]*)</span>', webpage, 'error message', default=None) if error_msg: error_msg = re.sub(r'\s+', ' ', error_msg)