This commit is contained in:
Shiny Nematoda 2022-04-14 22:19:48 +05:30
parent c3c22fc455
commit e3192f7438
4 changed files with 11 additions and 7 deletions

View file

@ -231,7 +231,7 @@ export default {
async getSong(e) {
console.log(e);
const hash = e.split('?v=').pop(),
const hash = new UrlSearchParams(e.substring(e.indexOf('?'))).get('v'),
json = await this.getJson(
'https://pipedapi.kavin.rocks/streams/' + hash,
);
@ -251,7 +251,7 @@ export default {
async getAlbum(e) {
console.log('Album: ', e);
const hash = e.split('?list=').pop(),
const hash = new UrlSearchParams(e.substring(e.indexOf('?'))).get('list'),
json = await this.getJson(
'https://pipedapi.kavin.rocks/playlists/' + hash,
);