[yesjapan] Look for datetime inside `submit_info`
authorNaglis Jonaitis <njonaitis@gmail.com>
Sun, 14 Dec 2014 16:03:05 +0000 (18:03 +0200)
committerNaglis Jonaitis <njonaitis@gmail.com>
Sun, 14 Dec 2014 16:03:05 +0000 (18:03 +0200)
Oops..

youtube_dl/extractor/yesjapan.py

index fec1ad1acb61e28872a05be5ee2a86cd2ce7344e..112a6c030138e6c7d0e58619d40f3af012e13362 100644 (file)
@@ -38,7 +38,7 @@ class YesJapanIE(InfoExtractor):
         submit_info = get_element_by_attribute('class', 'pm-submit-data', webpage)
         if submit_info:
             timestamp = parse_iso8601(self._search_regex(
-                r'datetime="([^"]+)"', webpage, 'upload date', fatal=False, default=None))
+                r'datetime="([^"]+)"', submit_info, 'upload date', fatal=False, default=None))
 
         # attempt to resolve the final URL in order to get a proper extension
         redirect_req = HEADRequest(video_url)