original -> source
This commit is contained in:
parent
34fa9e9262
commit
d2e45ccbc9
3 changed files with 25 additions and 25 deletions
|
|
@ -292,7 +292,7 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
if (data.type?.join('').includes('ai:')) {
|
||||
$('<div>').addClass('ai-preview').appendTo($text);
|
||||
}
|
||||
if (data.type?.includes('original')) {
|
||||
if (data.type?.includes('source')) {
|
||||
|
||||
$('<a>').attr({
|
||||
href: 'https://power-video.rmozone.com/#ox/' + data.id,
|
||||
|
|
@ -659,7 +659,7 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
};
|
||||
$element.appendTo($text);
|
||||
pandora.api.find(request, function(response) {
|
||||
let original;
|
||||
let source;
|
||||
response.data.items.forEach(item => {
|
||||
if (item.id != data.id) {
|
||||
var type = item.type ? item.type[0] : 'Unknown'
|
||||
|
|
@ -669,17 +669,17 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
$element.append(
|
||||
` <a href="/${item.id}/info">${type}</a>`
|
||||
)
|
||||
if (type == 'original') {
|
||||
original = item.id
|
||||
if (type == 'source') {
|
||||
source = item.id
|
||||
}
|
||||
}
|
||||
})
|
||||
$element.append(`[<a href="/grid/title/title=${pandora.escapeQueryValue(title)}">all</a>]`)
|
||||
pandora.createLinks($element)
|
||||
if (data.type?.join('').includes('ai:') && original) {
|
||||
if (data.type?.join('').includes('ai:') && source) {
|
||||
const preview = $text[0].querySelector('.ai-preview')
|
||||
const src_ai = '480p.mp4'
|
||||
const src = `/${original}/480p.mp4`
|
||||
const src = `/${source}/480p.mp4`
|
||||
preview.innerHTML = `
|
||||
<video src="${src}" controls loop></video>
|
||||
<video src="${src_ai}" loop></video>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue