diff --git a/README.md b/README.md index 0b9a2ef..2eb99f3 100755 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ # PM2 Deployment ``` +npm run build pm2 start npm --name prod -- run "start" ``` # For DEV @@ -32,4 +33,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 \ No newline at end of file +- [ ] Add authentication so that the user can sign up and log in to save their favorite movies and tv shows permanently diff --git a/pages/post-detail/[id]/[slug].js b/pages/post-detail/[id]/[slug].js index 7c14ef0..9e76201 100644 --- a/pages/post-detail/[id]/[slug].js +++ b/pages/post-detail/[id]/[slug].js @@ -35,9 +35,8 @@ 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 @@ -65,7 +64,7 @@ const Details = () => { .then(res => { setLoader(false) - let url = `magnet:?xt=urn:btih:${res?.data?.info_hash}&dn=${res?.data?.name}${trackers}` + let url = `magnet:?xt=urn:btih:${res?.data?.info_hash}&dn=${res?.data?.name}${tracker}` 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 d44f417..bde6b47 100644 --- a/service/service.js +++ b/service/service.js @@ -1,5 +1,5 @@ import axios from "axios"; -export const API_BASE = 'https://t-rb.org'; +export const API_BASE = 'https://therarbg.to'; //const API_BASE = 'https://therarbg.com'; let token;