Merge remote-tracking branch 'dstftw/multifeed-videos' (closes #6360)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 29 Jul 2015 19:55:20 +0000 (21:55 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 29 Jul 2015 19:55:20 +0000 (21:55 +0200)
1  2 
youtube_dl/extractor/youtube.py

index 4c449fd741ba3d0445060204e13f0fc5e378b97e,8a5ef2e7028a58f6bc33d2f100197442ba34aca1..67a1df9a0a1bebeaea4577411ff0c65f99d0166f
@@@ -1076,30 -1171,6 +1175,10 @@@ class YoutubeIE(YoutubeBaseInfoExtracto
          else:
              video_categories = None
  
-         # description
-         video_description = get_element_by_id("eow-description", video_webpage)
-         if video_description:
-             video_description = re.sub(r'''(?x)
-                 <a\s+
-                     (?:[a-zA-Z-]+="[^"]+"\s+)*?
-                     title="([^"]+)"\s+
-                     (?:[a-zA-Z-]+="[^"]+"\s+)*?
-                     class="yt-uix-redirect-link"\s*>
-                 [^<]+
-                 </a>
-             ''', r'\1', video_description)
-             video_description = clean_html(video_description)
-         else:
-             fd_mobj = re.search(r'<meta name="description" content="([^"]+)"', video_webpage)
-             if fd_mobj:
-                 video_description = unescapeHTML(fd_mobj.group(1))
-             else:
-                 video_description = ''
 +        video_tags = [
 +            unescapeHTML(m.group('content'))
 +            for m in re.finditer(self._meta_regex('og:video:tag'), video_webpage)]
 +
          def _extract_count(count_name):
              return str_to_int(self._search_regex(
                  r'-%s-button[^>]+><span[^>]+class="yt-uix-button-content"[^>]*>([\d,]+)</span>'