stremio-official-addons 1.5.4 → 1.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # stremio-official-addons
2
+ [![npm][stremio-official-addons version badge]][v1-npm-link] ![downloads][stremio-official-addons downloads badge]
3
+
4
+ [![npm][@stremio/stremio-official-addons version badge]][v2-npm-link] ![downloads][@stremio/stremio-official-addons downloads badge] [![crates.io version badge][crates version]][v2-crates-io-link] ![Crates.io Downloads (latest version)][crates.io downloads badge]
2
5
 
3
6
  All the stremio official add-ons, in `AddonCollection.load()` format
4
7
 
@@ -7,7 +10,7 @@ The `index.js` file is meant to be generated from the output of `AddonCollection
7
10
 
8
11
  ## Update
9
12
 
10
- To re-generate `index.json` you can do `scripts/gen.js > index.json`
13
+ To re-generate `index.json` you can do `scripts/gen.js > index.json` ( you also need a locally running Stremio Server using either the [Stremio Desktop](https://www.stremio.com/downloads) app or [Stremio service](https://www.stremio.com/download-service))
11
14
 
12
15
 
13
16
  ## Changing the official add-ons
@@ -18,10 +21,26 @@ Besides changing this module, you have to update all it's dependant packages, mo
18
21
 
19
22
  * stremio-api-workers: this is the **most important one**, since it will affect `addonsofficialcollection.json` and therefore the addonCollection API, and therefore all running apps should respect it
20
23
 
21
- * stremio: the desktop/web app
24
+ * stremio: the desktop/web app ([`stremio-official-addons@1`](https://www.npmjs.com/package/stremio-official-addons) package)
22
25
 
23
26
  * stremio-rn: the react native app
24
27
 
25
- * stremio-web: the new desktop/web app
28
+ * stremio-web: the new desktop/web app ([`@stremio/stremio-official-addons@2`](https://www.npmjs.com/package/@stremio/stremio-official-addons) package)
26
29
 
27
30
  * stremio-api-legacy-shim: this one does not *depend on* this module, and does not include it, but it contains a separate list of official add-ons in `addons/official.js` that is respected by all apps using the legacy endpoints
31
+
32
+ [v1-npm-link]: https://www.npmjs.com/package/stremio-official-addons
33
+ [stremio-official-addons downloads badge]: https://img.shields.io/npm/dm/stremio-official-addons?label=stremio-official-addons%20downloads&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fstremio-official-addons
34
+
35
+
36
+ [stremio-official-addons version badge]: https://img.shields.io/npm/v/stremio-official-addons?label=stremio-official-addons&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fstremio-official-addons
37
+
38
+ [v2-npm-link]: https://www.npmjs.com/package/@stremio/stremio-official-addons
39
+ [@stremio/stremio-official-addons downloads badge]: https://img.shields.io/npm/dm/%40stremio/stremio-official-addons?label=%40stremio%2Fstremio-official-addons%20downloads&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40stremio%2Fstremio-official-addons
40
+
41
+ [@stremio/stremio-official-addons version badge]: https://img.shields.io/npm/v/%40stremio/stremio-official-addons?label=%40stremio%2Fstremio-official-addons&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40stremio%2Fstremio-official-addons
42
+
43
+
44
+ [v2-crates-io-link]: https://crates.io/crates/stremio-official-addons
45
+ [crates version]: https://img.shields.io/crates/v/stremio-official-addons
46
+ [crates.io downloads badge]: https://img.shields.io/crates/dv/stremio-official-addons?label=Crates.io%20downloads%20(latest%20version)
package/index.json CHANGED
@@ -2,7 +2,7 @@
2
2
  {
3
3
  "manifest": {
4
4
  "id": "com.linvo.cinemeta",
5
- "version": "3.0.10",
5
+ "version": "3.0.11",
6
6
  "description": "The official addon for movie and series catalogs",
7
7
  "name": "Cinemeta",
8
8
  "resources": [
@@ -211,6 +211,7 @@
211
211
  "type": "movie",
212
212
  "id": "year",
213
213
  "genres": [
214
+ "2024",
214
215
  "2023",
215
216
  "2022",
216
217
  "2021",
@@ -320,6 +321,7 @@
320
321
  {
321
322
  "name": "genre",
322
323
  "options": [
324
+ "2024",
323
325
  "2023",
324
326
  "2022",
325
327
  "2021",
@@ -444,6 +446,7 @@
444
446
  "type": "series",
445
447
  "id": "year",
446
448
  "genres": [
449
+ "2024",
447
450
  "2023",
448
451
  "2022",
449
452
  "2021",
@@ -513,6 +516,7 @@
513
516
  {
514
517
  "name": "genre",
515
518
  "options": [
519
+ "2024",
516
520
  "2023",
517
521
  "2022",
518
522
  "2021",
@@ -724,7 +728,7 @@
724
728
  {
725
729
  "name": "lastVideosIds",
726
730
  "isRequired": true,
727
- "optionsLimit": 500
731
+ "optionsLimit": 100
728
732
  }
729
733
  ],
730
734
  "extraSupported": [
@@ -878,6 +882,31 @@
878
882
  "official": true
879
883
  }
880
884
  },
885
+ {
886
+ "manifest": {
887
+ "id": "org.stremio.opensubtitlesv3",
888
+ "version": "1.0.0",
889
+ "name": "OpenSubtitles v3",
890
+ "description": "OpenSubtitles v3 Addon for Stremio",
891
+ "catalogs": [],
892
+ "resources": [
893
+ "subtitles"
894
+ ],
895
+ "types": [
896
+ "movie",
897
+ "series"
898
+ ],
899
+ "idPrefixes": [
900
+ "tt"
901
+ ],
902
+ "logo": "http://www.strem.io/images/addons/opensubtitles-logo.png"
903
+ },
904
+ "transportName": "http",
905
+ "transportUrl": "https://opensubtitles-v3.strem.io/manifest.json",
906
+ "flags": {
907
+ "official": true
908
+ }
909
+ },
881
910
  {
882
911
  "manifest": {
883
912
  "id": "org.stremio.opensubtitles",
@@ -0,0 +1,29 @@
1
+ # Stremio official addons (v2) packages
2
+
3
+ ## NPM `@stremio/stremio-official-addons`
4
+ [![npm version badge][version badge]][v2-npm-link] ![Downloads monthly][downloads badge]
5
+
6
+ ## Crates.io `stremio-official-addons`
7
+ [![crates.io version badge][crates version]][v2-crates-io-link] ![Crates.io Downloads (latest version)][crates.io downloads badge]
8
+
9
+ All of the stremio official addons.
10
+
11
+ ## Build
12
+
13
+ To re-generate `addons.json` you can run `npm run build`
14
+
15
+ ## Changing the official addons collection
16
+
17
+ To change what's contained in this module, you have to change `scripts/build.js`
18
+
19
+ Besides changing this module, you have to update all it's dependant packages.
20
+
21
+
22
+ [v2-npm-link]: https://www.npmjs.com/package/@stremio/stremio-official-addons
23
+ [downloads badge]: https://img.shields.io/npm/dm/%40stremio/stremio-official-addons?label=%40stremio%2Fstremio-official-addons%20downloads&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40stremio%2Fstremio-official-addons
24
+
25
+ [version badge]: https://img.shields.io/npm/v/%40stremio/stremio-official-addons?label=%40stremio%2Fstremio-official-addons&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40stremio%2Fstremio-official-addons
26
+
27
+ [v2-crates-io-link]: https://crates.io/crates/stremio-official-addons
28
+ [crates version]: https://img.shields.io/crates/v/stremio-official-addons
29
+ [crates.io downloads badge]: https://img.shields.io/crates/dv/stremio-official-addons?label=Crates.io%20downloads%20(latest%20version)
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@stremio/stremio-official-addons",
3
+ "version": "2.0.11",
4
+ "description": "All of the stremio official addons",
5
+ "author": "Smart Code OOD",
6
+ "main": "addons.json",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/stremio/stremio-official-addons.git"
11
+ },
12
+ "keywords": [
13
+ "official",
14
+ "addons",
15
+ "stremio"
16
+ ],
17
+ "scripts": {
18
+ "build": "node ./scripts/build.js"
19
+ },
20
+ "devDependencies": {
21
+ "@stremio/stremio-core-validator": "2.0.2",
22
+ "node-fetch": "2.6.7",
23
+ "stremio-addon-client": "1.16.1",
24
+ "stremio-local-addon": "https://git@github.com/Stremio/stremio-local-addon#79cd88c32aa26270af8b662fa7bd92b657f6e14f"
25
+ }
26
+ }
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "stremio-official-addons",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "All the stremio official add-ons, in AddonCollection.load() format",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "build": "./scripts/gen.js > index.json"
8
9
  },
9
10
  "repository": {
10
11
  "type": "git",
@@ -22,5 +23,9 @@
22
23
  "homepage": "https://github.com/Stremio/stremio-official-addons#readme",
23
24
  "devDependencies": {
24
25
  "stremio-addon-client": "^1.5.2"
25
- }
26
- }
26
+ },
27
+ "workspaces": [
28
+ ".",
29
+ "official-addons-v2"
30
+ ]
31
+ }
package/scripts/gen.js DELETED
@@ -1,35 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const client = require('stremio-addon-client')
4
-
5
- const ENDPOINTS = [
6
- "https://v3-cinemeta.strem.io/manifest.json",
7
- "https://v3-channels.strem.io/manifest.json",
8
- "https://watchhub.strem.io/manifest.json",
9
- "https://caching.stremio.net/publicdomainmovies.now.sh/manifest.json",
10
- "https://opensubtitles.strem.io/stremio/v1",
11
- "http://127.0.0.1:11470/local-addon/manifest.json",
12
- ]
13
-
14
- const col = new client.AddonCollection()
15
-
16
- Promise.all(ENDPOINTS.map(url => client.detectFromURL(url)))
17
- .then(function(responses) {
18
- responses.forEach(function(x, i) {
19
- if (!x.addon) return
20
- if (JSON.stringify(x.addon.manifest).length > 8192) throw 'manifest bigger than 8kb - aborting!'
21
- x.addon.flags = isProtected(x, i) ? { official: true, protected: true } : { official: true }
22
- col.add(x.addon)
23
- })
24
- })
25
- .then(function() {
26
- console.log(JSON.stringify(col.save(), null, 4))
27
- })
28
-
29
- function isProtected(x, i) {
30
- // cinemeta
31
- if (i === 0) return true
32
-
33
- // local
34
- if (x.addon.manifest.id.match('local')) return true
35
- }