diff --git a/lib/routes/caixin/templates/article.art b/lib/routes/caixin/templates/article.art index fd30a943e..25839ba2a 100644 --- a/lib/routes/caixin/templates/article.art +++ b/lib/routes/caixin/templates/article.art @@ -13,10 +13,12 @@ {{ if $('.article .content_video').length }} <% const video = $('script').text().match(/initPlayer\('(.*?)','(.*?)'\)/); %> - <% const videoUrl = video[1]; %> - <% const poster = video[2]; %> - -
+ {{ if video}} + <% const videoUrl = video[1]; %> + <% const poster = video[2]; %> + +
+ {{ /if }} {{ /if }} {{ if $('div#Main_Content_Val.text').length }}