<%for (const [year, yearMap] of dataMaps) {%>
<%for (const [month, monthItems] of yearMap) {%>
<%for (let index = 0; index < monthItems.length; index++) {%>
<%const favorite = monthItems[index]%>
<%favorite.uid = 'QZFAV-' + API.Utils.newSimpleUid(16)%>
<%total = total -1%>
<%/* 多媒体内容 */%>
<%}%>
<%}%>
<%}%>
<%}%>
<%:=API.Common.formatContent(API.Favorites.getFavoriteOwner(favorite).name, 'HTML', false, false, false, false, true)%>
<%:=API.Favorites.getType(favorite.type)%>
<%:=API.Common.formatContent(favorite.custom_create_time)%>
<%/* 视频内容 */%>
<%if(favorite.custom_videos){%>
<%let imgIdex = 0%>
<%for(let video of favorite.custom_videos){%>
<% video.vid = 'QZ-' + API.Utils.newSimpleUid(16); %>
<%if(video.play_url){%>
<%/* 音乐内容(目前PC端已无法正常播放,直接显示专辑图片与歌曲信息) */%>
<%if(favorite.custom_audios && favorite.custom_audios.length > 0){%>
<%}else{%>
<%imgIdex++%>
<%}%>
<%}%>
<%}%>
<%/* 图片内容 */%>
<%if(favorite.custom_origin_images || favorite.custom_images){%>
<%let imgIdex = 0%>
<%let favImages = favorite.custom_origin_images || favorite.custom_images%>
<%for(let image of favImages){%>
<%imgIdex++%>
<%}%>
<%}%>
-
<%let imgIdex = 0%>
<%for(let music of favorite.custom_audios){%>
- <%imgIdex++%> <%}%>