removed commented-out code, added another TODO note
This commit is contained in:
parent
3bfc82f7c0
commit
c5084901b5
|
@ -271,13 +271,8 @@ public class YoutubeExtractor implements Extractor {
|
||||||
}
|
}
|
||||||
|
|
||||||
// upload date
|
// upload date
|
||||||
//videoInfo.upload_date = doc.select("strong[class=\"watch-time-text\"").first().text();
|
|
||||||
videoInfo.upload_date = doc.select("meta[itemprop=datePublished]").attr("content");
|
videoInfo.upload_date = doc.select("meta[itemprop=datePublished]").attr("content");
|
||||||
|
|
||||||
// Extracting the date itself from header
|
|
||||||
//videoInfo.upload_date =
|
|
||||||
// matchGroup1("([0-9]{2}\\.[0-9]{2}\\.[0-9]{4})", videoInfo.upload_date);
|
|
||||||
|
|
||||||
//TODO: Format date locale-specifically
|
//TODO: Format date locale-specifically
|
||||||
|
|
||||||
|
|
||||||
|
@ -306,7 +301,7 @@ public class YoutubeExtractor implements Extractor {
|
||||||
.select("img").first()
|
.select("img").first()
|
||||||
.attr("abs:data-thumb");
|
.attr("abs:data-thumb");
|
||||||
|
|
||||||
// view count
|
// view count TODO: format locale-specifically
|
||||||
videoInfo.view_count = doc.select("meta[itemprop=interactionCount]").attr("content");
|
videoInfo.view_count = doc.select("meta[itemprop=interactionCount]").attr("content");
|
||||||
|
|
||||||
// next video
|
// next video
|
||||||
|
|
Loading…
Reference in New Issue