chore: update TypeScript build info cache
This commit is contained in:
@@ -66,6 +66,17 @@ export class YoutubeApiService {
|
||||
}
|
||||
}
|
||||
|
||||
// Build a proxied URL through our backend to avoid ORB/CORS on Odysee CDN
|
||||
private proxiedOdyseeThumb(url?: string): string {
|
||||
const norm = this.normalizeOdyseeThumb(url);
|
||||
if (!norm) return '';
|
||||
try {
|
||||
return `/proxy/api/img/odysee?u=${encodeURIComponent(norm)}`;
|
||||
} catch {
|
||||
return `/proxy/api/img/odysee?u=${encodeURIComponent(String(norm))}`;
|
||||
}
|
||||
}
|
||||
|
||||
// ... (rest of the code remains the same)
|
||||
|
||||
// ===================== Twitch Search Helpers =====================
|
||||
@@ -634,7 +645,7 @@ export class YoutubeApiService {
|
||||
const lbryUrl = i?.permanent_url || i?.canonical_url || '';
|
||||
const webUrl = this.lbryToOdyseeUrl(lbryUrl) || (i?.name ? `https://odysee.com/${i.name}` : '');
|
||||
const thumbRaw = val?.thumbnail?.url || '';
|
||||
const thumb = this.normalizeOdyseeThumb(thumbRaw);
|
||||
const thumb = this.proxiedOdyseeThumb(thumbRaw);
|
||||
const publishedAt = val?.release_time ? new Date(val.release_time * 1000).toISOString() : '';
|
||||
const duration = val?.video?.duration || 0;
|
||||
const views = (i?.meta?.view_count != null) ? Number(i.meta.view_count) : 0;
|
||||
@@ -648,7 +659,7 @@ export class YoutubeApiService {
|
||||
thumbnail: thumb,
|
||||
uploaderName,
|
||||
uploaderUrl: channel?.permanent_url ? this.lbryToOdyseeUrl(channel.permanent_url) : '',
|
||||
uploaderAvatar: this.normalizeOdyseeThumb(channelVal?.thumbnail?.url) || thumb,
|
||||
uploaderAvatar: this.proxiedOdyseeThumb(channelVal?.thumbnail?.url) || thumb,
|
||||
uploadedDate: publishedAt,
|
||||
duration: Number(duration || 0),
|
||||
views: views,
|
||||
|
||||
Reference in New Issue
Block a user