Fixed invalid timestamp video urls

This commit is contained in:
Luca 2020-11-14 20:21:22 +01:00
parent 796bf0e644
commit 96805f9b20
2 changed files with 3 additions and 1 deletions

View File

@ -127,6 +127,9 @@ export default Vue.extend({
},
getFinalUrl(url) {
if (url.indexOf('?') === -1) {
return this.includeTimestamp ? `${url}?t=${this.getTimestamp()}` : url
}
return this.includeTimestamp ? `${url}&t=${this.getTimestamp()}` : url
},

View File

@ -69,7 +69,6 @@ export default Vue.extend({
console.log('getting local trending')
ytrend.scrape_trending_page(this.region).then((result) => {
console.log(result)
const returnData = result.filter((item) => {
return item.type === 'video' || item.type === 'channel' || item.type === 'playlist'
})