Update app.js
Browse files
app.js
CHANGED
|
@@ -82,7 +82,7 @@ builder.defineMetaHandler(({ id }) => {
|
|
| 82 |
return Promise.reject("Invalid meta request.");
|
| 83 |
});
|
| 84 |
|
| 85 |
-
// Stream handler
|
| 86 |
builder.defineStreamHandler(({ id }) => {
|
| 87 |
const index = parseInt(id.split("_")[1]);
|
| 88 |
const file = torrentInfo.files[index];
|
|
@@ -96,8 +96,7 @@ builder.defineStreamHandler(({ id }) => {
|
|
| 96 |
resolve({
|
| 97 |
streams: [{
|
| 98 |
title: "Stream Now",
|
| 99 |
-
url: streamURL
|
| 100 |
-
description: `"**Heal Palestine, Stop Arming Israel**\n\n Support Palestine by learning more and donating to the cause. [Donate Now](http://charity-link)"`
|
| 101 |
}]
|
| 102 |
});
|
| 103 |
} else {
|
|
|
|
| 82 |
return Promise.reject("Invalid meta request.");
|
| 83 |
});
|
| 84 |
|
| 85 |
+
// Stream handler (Fixing Stream URL for two files)
|
| 86 |
builder.defineStreamHandler(({ id }) => {
|
| 87 |
const index = parseInt(id.split("_")[1]);
|
| 88 |
const file = torrentInfo.files[index];
|
|
|
|
| 96 |
resolve({
|
| 97 |
streams: [{
|
| 98 |
title: "Stream Now",
|
| 99 |
+
url: streamURL
|
|
|
|
| 100 |
}]
|
| 101 |
});
|
| 102 |
} else {
|