remove hardcoded addition of cloud video type in videosTable and videos.js
parent
8e8e147f02
commit
661b935c93
|
|
@ -712,7 +712,7 @@ async function unarchiveVideos(videos){
|
|||
}
|
||||
function buildDefaultVideoMenuItems(file,options){
|
||||
var isLocalVideo = !file.videoSet || file.videoSet === 'videos'
|
||||
var href = file.href + `${!isLocalVideo ? `?type=${file.type}` : ''}`
|
||||
var href = file.href// + `${!isLocalVideo ? `?type=${file.type}` : ''}`
|
||||
options = options ? options : {play: true}
|
||||
return `
|
||||
<li><a class="dropdown-item" href="${href}" download>${lang.Download}</a></li>
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ $(document).ready(function(e){
|
|||
],
|
||||
data: loadedVideosTable.map((file) => {
|
||||
var isLocalVideo = !wantCloudVideo;
|
||||
var href = file.href + `${!isLocalVideo ? `?type=${file.type}` : ''}`;
|
||||
var href = file.href// + `${!isLocalVideo ? `?type=${file.type}` : ''}`;
|
||||
var loadedMonitor = loadedMonitors[file.mid];
|
||||
return {
|
||||
image: `<div class="video-thumbnail" data-mid="${file.mid}" data-ke="${file.ke}" data-time="${file.time}" data-end="${file.end}" data-filename="${file.filename}">
|
||||
|
|
|
|||
Loading…
Reference in New Issue