mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-06 04:51:29 +08:00
支持"豆瓣热门综艺"
This commit is contained in:
@@ -166,7 +166,7 @@ export default {
|
||||
filteredList: [],
|
||||
// 不同推荐
|
||||
recommendationsDefault: [],
|
||||
recommendationTypes: ['作者推荐', '豆瓣热门电影', '豆瓣热门剧集', '豆瓣高分电影', '豆瓣热门动漫', '豆瓣热门纪录片'],
|
||||
recommendationTypes: ['作者推荐', '豆瓣热门电影', '豆瓣热门剧集', '豆瓣高分电影', '豆瓣热门综艺', '豆瓣热门动漫', '豆瓣热门纪录片'],
|
||||
selectedRecommendationType: '作者推荐',
|
||||
// Toolbar
|
||||
showToolbar: false,
|
||||
@@ -189,7 +189,9 @@ export default {
|
||||
hotAnimePageStart: 0,
|
||||
hotAnime: [],
|
||||
hotDocumentaryPageStart: 0,
|
||||
hotDocumentary: []
|
||||
hotDocumentary: [],
|
||||
hotTVShowPageStart: 0,
|
||||
hotTVShow: []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -274,6 +276,9 @@ export default {
|
||||
if (this.selectedRecommendationType === '豆瓣热门纪录片') {
|
||||
this.recommendations = [...this.douban.hotDocumentary]
|
||||
}
|
||||
if (this.selectedRecommendationType === '豆瓣热门综艺') {
|
||||
this.recommendations = [...this.douban.hotTVShow]
|
||||
}
|
||||
if (this.recommendations.length === 0) {
|
||||
this.updateDoubanRecommendationsEvent()
|
||||
}
|
||||
@@ -310,6 +315,9 @@ export default {
|
||||
if (this.selectedRecommendationType === '豆瓣热门纪录片') {
|
||||
this.douban.hotDocumentary.push(movie)
|
||||
}
|
||||
if (this.selectedRecommendationType === '豆瓣热门综艺') {
|
||||
this.douban.hotTVShow.push(movie)
|
||||
}
|
||||
},
|
||||
searchAndCacheMovie (element) {
|
||||
zy.searchFirstDetail(this.sites[0].key, element.title).then(detailRes => {
|
||||
@@ -376,6 +384,10 @@ export default {
|
||||
doubanUrl = `https://movie.douban.com/j/search_subjects?type=tv&tag=纪录片&sort=recommend&page_limit=${this.douban.page_limit}&page_start=${this.douban.hotDocumentaryPageStart}`
|
||||
this.douban.hotDocumentaryPageStart = this.douban.hotDocumentaryPageStart + this.douban.page_limit
|
||||
}
|
||||
if (this.selectedRecommendationType === '豆瓣热门综艺') {
|
||||
doubanUrl = `https://movie.douban.com/j/search_subjects?type=tv&tag=综艺&sort=recommend&page_limit=${this.douban.page_limit}&page_start=${this.douban.hotTVShowPageStart}`
|
||||
this.douban.hotTVShowPageStart = this.douban.hotTVShowPageStart + this.douban.page_limit
|
||||
}
|
||||
this.getRecommendationsDoubanMovieOrTV(doubanUrl)
|
||||
},
|
||||
toggleViewMode () {
|
||||
|
||||
Reference in New Issue
Block a user