|
|
@ -303,9 +303,14 @@ def extract_videos(nodeset, ucid = nil)
|
|
|
|
published = Time.epoch(metadata[0].xpath_node(%q(.//span)).not_nil!["data-timestamp"].to_i64)
|
|
|
|
published = Time.epoch(metadata[0].xpath_node(%q(.//span)).not_nil!["data-timestamp"].to_i64)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
# Livestream
|
|
|
|
# Livestream
|
|
|
|
view_count = metadata[0].content.delete("Streamed, watching").to_i64
|
|
|
|
if metadata[0].content.starts_with? "Streamed "
|
|
|
|
|
|
|
|
view_count = 0_i64
|
|
|
|
|
|
|
|
published = decode_date(metadata[0].content.lchop("Streamed "))
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
view_count = metadata[0].content.delete(" watching,").to_i64
|
|
|
|
published = Time.now
|
|
|
|
published = Time.now
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
else
|
|
|
|
else
|
|
|
|
published = decode_date(metadata[0].content)
|
|
|
|
published = decode_date(metadata[0].content)
|
|
|
|
|
|
|
|
|
|
|
|