mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-19 05:22:05 +00:00
latest releases feed name resolving improvements, seek thumbnail improvements
This commit is contained in:
parent
1ed728af1c
commit
0d259c6979
2 changed files with 4 additions and 0 deletions
|
|
@ -342,6 +342,9 @@ async function hsRss(url) {
|
|||
if (!store[regexParse[2]] && !alResponse.data.Page.media.some(media => (Object.values(media.title).concat(media.synonyms).filter(name => name != null).includes(regexParse[2]) && ((store[regexParse[2]] = media) && true)))) {
|
||||
//shit not found, lookup
|
||||
let res = await alRequest(regexParse[2], 1)
|
||||
if(!res.data.Page.media[0]){
|
||||
res = await alRequest(regexParse[2].replace(" (TV)","").replace(" (2020)",""), 1)
|
||||
}
|
||||
store[regexParse[2]] = res.data.Page.media[0]
|
||||
}
|
||||
let media = store[regexParse[2]],
|
||||
|
|
|
|||
|
|
@ -117,6 +117,7 @@ function createThumbnail(vid) {
|
|||
function finishThumbnails(file) {
|
||||
if (settings.player5) {
|
||||
let thumbVid = document.createElement("video")
|
||||
thumbnails = []
|
||||
file.getBlobURL((err, url) => {
|
||||
thumbVid.src = url
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue