diff --git a/README.md b/README.md index 2eb99f3..0b9a2ef 100755 --- a/README.md +++ b/README.md @@ -13,7 +13,6 @@ # PM2 Deployment ``` -npm run build pm2 start npm --name prod -- run "start" ``` # For DEV @@ -33,4 +32,4 @@ npm run dev - [ ] Add a bookmark page to store the user's favorite movies and tv shows - [ ] Add the video playing feature when the user hover over the card and play the video -- [ ] Add authentication so that the user can sign up and log in to save their favorite movies and tv shows permanently +- [ ] Add authentication so that the user can sign up and log in to save their favorite movies and tv shows permanently \ No newline at end of file diff --git a/pages/post-detail/[id]/[slug].js b/pages/post-detail/[id]/[slug].js index 9e76201..7c14ef0 100644 --- a/pages/post-detail/[id]/[slug].js +++ b/pages/post-detail/[id]/[slug].js @@ -35,8 +35,9 @@ const Details = () => { let temp = '&tr=' let tracker = '' trackers.map(item => { - tracker = tracker + temp + item + tracker = tracker + temp + item }) + const router = useRouter() let id let slug @@ -64,7 +65,7 @@ const Details = () => { .then(res => { setLoader(false) - let url = `magnet:?xt=urn:btih:${res?.data?.info_hash}&dn=${res?.data?.name}${tracker}` + let url = `magnet:?xt=urn:btih:${res?.data?.info_hash}&dn=${res?.data?.name}${trackers}` let url_t = `https://m2t.mirrorbay.org/info-hash/${res?.data?.info_hash}/${res?.data?.name}/?apikey=therarbg` setMagnateDownload(url) setTorrentDownload(url_t) diff --git a/service/service.js b/service/service.js index bde6b47..d44f417 100644 --- a/service/service.js +++ b/service/service.js @@ -1,5 +1,5 @@ import axios from "axios"; -export const API_BASE = 'https://therarbg.to'; +export const API_BASE = 'https://t-rb.org'; //const API_BASE = 'https://therarbg.com'; let token;