Skip to content

Commit

Permalink
search results
Browse files Browse the repository at this point in the history
  • Loading branch information
ldenoue authored Nov 24, 2024
1 parent 34bc448 commit e7524d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ async function search(q) {
for (let item of json.items) {
let d = document.createElement('div')
d.className = 'r'
d.innerHTML = `<a href="?id=${item.id}"><img src="${item.thumbnail}"></a><div><a href="?id=${item.id}">${item.name || item.title}</a><div>${item.duration} - ${item.published}</div></div><br>`
d.innerHTML = `<a href="?id=${item.id}"><img src="https://img.youtube.com/vi/${item.id}/mqdefault.jpg"></a><div><a href="?id=${item.id}">${item.name || item.title}</a><div>${item.duration} - ${item.publishedTimeText || item.published}</div></div><br>`
items.appendChild(d)
}
}
Expand Down

0 comments on commit e7524d5

Please sign in to comment.