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:
parent
d176612f33
commit
544c3cec05
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user