1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

prefer embedded iframe over new window (when running in browser, doesn't work in JFX webkit where new browser popup is preferred)

This commit is contained in:
Reinhard Pointner 2018-06-18 15:51:52 +07:00
parent d176612f33
commit 544c3cec05

View File

@ -66,12 +66,20 @@ function getData() {
}
}
// prefer video file link over youtube link
if (!youtube) {
data.forEach(function(it) {
it.link = it.video
})
}
// prefer embedded iframe over new window
if (!embed) {
data.forEach(function(it) {
it['iframe'] = it.link
})
}
return data
}