Test temporary search fix

This commit is contained in:
Preston 2020-10-21 11:15:42 -04:00
parent 3b9938c530
commit a7cd21b7ad
5 changed files with 4411 additions and 6850 deletions

11289
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -48,7 +48,7 @@
"yt-xml2vtt": "^1.1.2", "yt-xml2vtt": "^1.1.2",
"ytdl-core": "^3.3.0", "ytdl-core": "^3.3.0",
"ytpl": "^1.0.1", "ytpl": "^1.0.1",
"ytsr": "^1.0.4" "ytsr": "github:TimeForANinja/node-ytsr#wip-api-adjustments"
}, },
"description": "A private YouTube client", "description": "A private YouTube client",
"devDependencies": { "devDependencies": {

View File

@ -30,8 +30,8 @@
} }
.text { .text {
background-color: black; background-color: rgba(0, 0, 0, 0.8);
border-radius: 2px; border-radius: 20px;
color: #fff; color: #fff;
font-size: 1rem; font-size: 1rem;
line-height: 120%; line-height: 120%;

View File

@ -122,7 +122,9 @@ export default Vue.extend({
} }
const returnData = result.items.filter((item) => { const returnData = result.items.filter((item) => {
if (typeof item !== 'undefined') {
return item.type === 'video' || item.type === 'channel' || item.type === 'playlist' return item.type === 'video' || item.type === 'channel' || item.type === 'playlist'
}
}) })
const returnDataInvidious = [] const returnDataInvidious = []

View File

@ -396,7 +396,7 @@ export default Vue.extend({
console.log(err) console.log(err)
const errorMessage = this.$t('Invidious API Error (Click to copy)') const errorMessage = this.$t('Invidious API Error (Click to copy)')
this.showToast({ this.showToast({
message: `${errorMessage}: ${err.responseText}`, message: `${errorMessage}: ${err}`,
time: 10000, time: 10000,
action: () => { action: () => {
navigator.clipboard.writeText(err) navigator.clipboard.writeText(err)