mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-08 21:23:39 +08:00
获取其他源时,排除当前源
This commit is contained in:
@@ -747,7 +747,8 @@ export default {
|
||||
async getOtherSites () {
|
||||
this.right.other = []
|
||||
sites.all().then(sitesRes => {
|
||||
for (const siteItem of sitesRes.filter(x => x.isActive)) {
|
||||
// 排除已关闭的源和当前源
|
||||
for (const siteItem of sitesRes.filter(x => x.isActive && x.key !== this.video.key)) {
|
||||
zy.search(siteItem.key, this.name).then(searchRes => {
|
||||
const type = Object.prototype.toString.call(searchRes)
|
||||
if (type === '[object Array]') {
|
||||
|
||||
Reference in New Issue
Block a user