]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[spankbang] Fix description and uploader (closes #10339)
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 25 Aug 2016 12:45:57 +0000 (20:45 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 25 Aug 2016 12:47:35 +0000 (20:47 +0800)
ChangeLog
youtube_dl/extractor/spankbang.py

index c3cc8f38fd99b58d6aabfd5f04d45154e206876f..5fb596e335a2b8d79a9811c9d5b945f27e1a1c77 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 version <unreleased>
 
 Extractors
+* [spankbang] Fix description and uploader (#10339)
 * [mtvservices:embedded] Fix extraction for the new 'edge' player (#10363)
 
 
index 50433d0f678f27c348031dbe0d6fcc3774d021b7..186d22b7d1608b01bb0a3d45082403e6a58bb05e 100644 (file)
@@ -14,7 +14,7 @@ class SpankBangIE(InfoExtractor):
             'id': '3vvn',
             'ext': 'mp4',
             'title': 'fantasy solo',
-            'description': 'dillion harper masturbates on a bed',
+            'description': 'Watch fantasy solo free HD porn video - 05 minutes - dillion harper masturbates on a bed free adult movies.',
             'thumbnail': 're:^https?://.*\.jpg$',
             'uploader': 'silly2587',
             'age_limit': 18,
@@ -44,12 +44,10 @@ class SpankBangIE(InfoExtractor):
 
         title = self._html_search_regex(
             r'(?s)<h1[^>]*>(.+?)</h1>', webpage, 'title')
-        description = self._search_regex(
-            r'class="desc"[^>]*>([^<]+)',
-            webpage, 'description', default=None)
+        description = self._og_search_description(webpage)
         thumbnail = self._og_search_thumbnail(webpage)
         uploader = self._search_regex(
-            r'class="user"[^>]*>([^<]+)',
+            r'class="user"[^>]*><img[^>]+>([^<]+)',
             webpage, 'uploader', fatal=False)
 
         age_limit = self._rta_search(webpage)