Fix missing author name for channel_videos

This commit is contained in:
Omar Roth
2019-04-12 16:29:23 -05:00
parent ca9ea109c6
commit ce2a3361eb
2 changed files with 4 additions and 8 deletions

View File

@@ -179,8 +179,8 @@ def html_to_content(description_html)
return description_html, description
end
def extract_videos(nodeset, ucid = nil)
videos = extract_items(nodeset, ucid)
def extract_videos(nodeset, ucid = nil, author_name = nil)
videos = extract_items(nodeset, ucid, author_name)
videos.select! { |item| !item.is_a?(SearchChannel | SearchPlaylist) }
videos.map { |video| video.as(SearchVideo) }
end