Revision bac96457
Added by koszko over 1 year ago
src/odysee.js | ||
---|---|---|
287 | 287 |
description_div.textContent = result.value.description; |
288 | 288 |
|
289 | 289 |
result_a.setAttribute("style", "display: block; width: 100%; text-decoration: none; color: #333; margin: 8px; border-style: solid; border-width: 3px 0 0 0; border-color: #7aa;"); |
290 |
result_a.href = `https://odysee.com${channel_specifier}/${video_name}:${video_id}`; |
|
290 |
result_a.href = `https://odysee.com/${channel_specifier}/${video_name}:${video_id}`;
|
|
291 | 291 |
|
292 | 292 |
if (result.value.thumbnail.url) |
293 | 293 |
result_a.appendChild(thumbnail); |
... | ... | |
325 | 325 |
|
326 | 326 |
function get_detailed_search_entries(new_results_div, response) |
327 | 327 |
{ |
328 |
/* TODO: Simplify JSON handling using sanitize_JSON.js from Hachette. */
|
|
328 |
/* TODO: Simplify JSON handling using JSON schemas. */
|
|
329 | 329 |
try { |
330 | 330 |
var response_data = JSON.parse(response); |
331 | 331 |
if (!Array.isArray(response_data)) |
Also available in: Unified diff
improve some of the fixes and add sample URLs for testing