]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[tnaflix] Fix metadata extraction (Closes #10249)
authorSergey M․ <dstftw@gmail.com>
Sun, 7 Aug 2016 08:57:42 +0000 (15:57 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 7 Aug 2016 09:00:03 +0000 (16:00 +0700)
youtube_dl/extractor/tnaflix.py

index 78174178e6ef69362462f96f997b7a37a640a275..74a0c8f172761290abe54a83b281e770dfc6d926 100644 (file)
@@ -189,9 +189,9 @@ class TNAFlixNetworkEmbedIE(TNAFlixNetworkBaseIE):
 class TNAFlixIE(TNAFlixNetworkBaseIE):
     _VALID_URL = r'https?://(?:www\.)?tnaflix\.com/[^/]+/(?P<display_id>[^/]+)/video(?P<id>\d+)'
 
-    _TITLE_REGEX = r'<title>(.+?) - TNAFlix Porn Videos</title>'
-    _DESCRIPTION_REGEX = r'<meta[^>]+name="description"[^>]+content="([^"]+)"'
-    _UPLOADER_REGEX = r'<i>\s*Verified Member\s*</i>\s*<h1>(.+?)</h1>'
+    _TITLE_REGEX = r'<title>(.+?) - (?:TNAFlix Porn Videos|TNAFlix\.com)</title>'
+    _DESCRIPTION_REGEX = r'(?s)>Description:</[^>]+>(.+?)<'
+    _UPLOADER_REGEX = r'<i>\s*Verified Member\s*</i>\s*<h\d+>(.+?)<'
     _CATEGORIES_REGEX = r'(?s)<span[^>]*>Categories:</span>(.+?)</div>'
 
     _TESTS = [{