anhthii / Echo

:musical_note: A music streaming app built with React and Nodejs
367 stars 182 forks source link

We are sorry, this song is removed #3

Open joshambush opened 6 years ago

joshambush commented 6 years ago

I set everything up and have the site running but when ever i click on a song it says, "We are sorry, this song is removed". Please help with this issue! Thank You.

kenhgt247 commented 6 years ago

Xin Hãy Giúp Tớ Làm thế Nào để đưa lên host , và cài đặt xong trên localhost thì báo bài này đã bị xóa . thank tớ chưa dùng thử loại code kiểu này bao giờ mong bạn chỉ giúp cảm ơn

thang-d commented 6 years ago

Open file "server\routes\api\media\song.js" Update from line 13 to line 17 following:

    const regex = /key=.{33}/; // get the resouce url
    const match = html.match(regex);

    if (!match) throw new Error("can't find the resource URL");

    const [matchUrl] = match;
    const resource = yield request(`https://mp3.zing.vn/xhr/media/get-source?type=audio&${matchUrl}`);
kenhgt247 commented 6 years ago

bạn ơi mình có thể đưa lên host php để dùng code này ko ? làm ơn chỉ giúp mình

Vào 00:17, T.3, 23 Th10, 2018 Thang Le notifications@github.com đã viết:

Open file "server\routes\api\media\song.js" Update line 13:

const match = html.match(regex);

if (!match) throw new Error("can't find the resource URL");

const [matchUrl] = match;
const resource = yield request(`https://mp3.zing.vn/xhr/media/get-source?type=audio&${matchUrl}` <https://mp3.zing.vn/xhr/media/get-source?type=audio&$%7BmatchUrl%7D>);

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/anhthii/Echo/issues/3#issuecomment-431883827, or mute the thread https://github.com/notifications/unsubscribe-auth/Agff6BT7sjQ8cQLp4Nhu00eDc3svpKAbks5une-EgaJpZM4WMQXS .

thang-d commented 6 years ago

bạn ơi mình có thể đưa lên host php để dùng code này ko ? làm ơn chỉ giúp mình Vào 00:17, T.3, 23 Th10, 2018 Thang Le notifications@github.com đã viết:

Project này có server viết bằng nodejs bạn ơi, nên cần host hỗ trợ nodejs. Nếu bạn muốn chạy trên host php thì viết lại code server bằng php là được.