Support adding video to playlist from watch page

This commit is contained in:
Omar Roth
2020-04-07 13:34:40 -05:00
parent 2e378da922
commit 3f97bebd69
7 changed files with 57 additions and 9 deletions

View File

@@ -732,9 +732,7 @@ def cache_annotation(db, id, annotations)
body = XML.parse(annotations)
nodeset = body.xpath_nodes(%q(/document/annotations/annotation))
if nodeset == 0
return
end
return if nodeset == 0
has_legacy_annotations = false
nodeset.each do |node|