summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNaglis Jonaitis <[email protected]>2014-12-14 18:03:05 +0200
committerNaglis Jonaitis <[email protected]>2014-12-14 18:03:05 +0200
commit4a4fbfc9670cb3d2e5f0bc486c83ef1e6eb21ad3 (patch)
tree59570e92ac2895d306fda63591c4e66e8b996f68
parent408b5839b186ffaea09a67e584b8da33525ed967 (diff)
downloadyoutube-dl-4a4fbfc9670cb3d2e5f0bc486c83ef1e6eb21ad3.tar.gz
youtube-dl-4a4fbfc9670cb3d2e5f0bc486c83ef1e6eb21ad3.zip
[yesjapan] Look for datetime inside `submit_info`
Oops..
-rw-r--r--youtube_dl/extractor/yesjapan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/yesjapan.py b/youtube_dl/extractor/yesjapan.py
index fec1ad1ac..112a6c030 100644
--- a/youtube_dl/extractor/yesjapan.py
+++ b/youtube_dl/extractor/yesjapan.py
@@ -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)