Fixed old trending page api call (#1297)

This commit is contained in:
Luca Hohmann 2021-05-18 20:59:23 +02:00 committed by GitHub
parent c15316080c
commit 0cc88642b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -68,7 +68,13 @@ export default Vue.extend({
this.isLoading = true
console.log('getting local trending')
ytrend.scrape_trending_page(this.region).then((result) => {
const param = {
parseCreatorOnRise: false,
page: 'default',
geoLocation: this.region
}
ytrend.scrape_trending_page(param).then((result) => {
const returnData = result.filter((item) => {
return item.type === 'video' || item.type === 'channel' || item.type === 'playlist'
})