iobroker.emby 1.0.2 → 1.1.0

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/.eslintignore ADDED
@@ -0,0 +1,2 @@
1
+ **/.eslintrc.js
2
+ admin/words.js
package/.eslintrc.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "root": true,
3
+ "env": {
4
+ "es6": true,
5
+ "node": true,
6
+ "mocha": true
7
+ },
8
+ "extends": ["eslint:recommended"],
9
+ "plugins": [],
10
+ "rules": {
11
+ "indent": [
12
+ "error",
13
+ 4,
14
+ {
15
+ "SwitchCase": 1
16
+ }
17
+ ],
18
+ "no-console": "off",
19
+ "no-unused-vars": [
20
+ "error",
21
+ {
22
+ "ignoreRestSiblings": true,
23
+ "argsIgnorePattern": "^_"
24
+ }
25
+ ],
26
+ "no-var": "error",
27
+ "no-trailing-spaces": "error",
28
+ "prefer-const": "error",
29
+ "quotes": [
30
+ "error",
31
+ "single",
32
+ {
33
+ "avoidEscape": true,
34
+ "allowTemplateLiterals": true
35
+ }
36
+ ],
37
+ "semi": ["error", "always"]
38
+ },
39
+ "parserOptions": {
40
+ "ecmaVersion": 2020
41
+ }
42
+ }
package/.gitattributes ADDED
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -1,38 +1,38 @@
1
- ---
2
- name: Bug report
3
- about: Create a report to help us improve
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Describe the bug**
11
- A clear and concise description of what the bug is.
12
-
13
- **To Reproduce**
14
- Steps to reproduce the behavior:
15
- 1. Go to '...'
16
- 2. Click on '....'
17
- 3. Scroll down to '....'
18
- 4. See error
19
-
20
- **Expected behavior**
21
- A clear and concise description of what you expected to happen.
22
-
23
- **Screenshots**
24
- If applicable, add screenshots to help explain your problem.
25
-
26
- **Desktop (please complete the following information):**
27
- - OS: [e.g. iOS]
28
- - Browser [e.g. chrome, safari]
29
- - Version [e.g. 22]
30
-
31
- **Smartphone (please complete the following information):**
32
- - Device: [e.g. iPhone6]
33
- - OS: [e.g. iOS8.1]
34
- - Browser [e.g. stock browser, safari]
35
- - Version [e.g. 22]
36
-
37
- **Additional context**
38
- Add any other context about the problem here.
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Desktop (please complete the following information):**
27
+ - OS: [e.g. iOS]
28
+ - Browser [e.g. chrome, safari]
29
+ - Version [e.g. 22]
30
+
31
+ **Smartphone (please complete the following information):**
32
+ - Device: [e.g. iPhone6]
33
+ - OS: [e.g. iOS8.1]
34
+ - Browser [e.g. stock browser, safari]
35
+ - Version [e.g. 22]
36
+
37
+ **Additional context**
38
+ Add any other context about the problem here.
@@ -1,20 +1,20 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: ''
6
- assignees: ''
7
-
8
- ---
9
-
10
- **Is your feature request related to a problem? Please describe.**
11
- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
-
13
- **Describe the solution you'd like**
14
- A clear and concise description of what you want to happen.
15
-
16
- **Describe alternatives you've considered**
17
- A clear and concise description of any alternative solutions or features you've considered.
18
-
19
- **Additional context**
20
- Add any other context or screenshots about the feature request here.
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,17 @@
1
+ # Configure here which dependency updates should be merged automatically.
2
+ # The recommended configuration is the following:
3
+ - match:
4
+ # Only merge patches for production dependencies
5
+ dependency_type: production
6
+ update_type: "semver:patch"
7
+ - match:
8
+ # Except for security fixes, here we allow minor patches
9
+ dependency_type: production
10
+ update_type: "security:minor"
11
+ - match:
12
+ # and development dependencies can have a minor update, too
13
+ dependency_type: development
14
+ update_type: "semver:minor"
15
+
16
+ # The syntax is based on the legacy dependabot v1 automerged_updates syntax, see:
17
+ # https://dependabot.com/docs/config-file/#automerged_updates
@@ -0,0 +1,27 @@
1
+ # Automatically merge Dependabot PRs when version comparison is within the range
2
+ # that is configured in .github/auto-merge.yml
3
+
4
+ name: Auto-Merge Dependabot PRs
5
+
6
+ on:
7
+ # WARNING: This needs to be run in the PR base, DO NOT build untrusted code in this action
8
+ # details under https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/
9
+ pull_request_target:
10
+
11
+ jobs:
12
+ auto-merge:
13
+ if: github.actor == 'dependabot[bot]'
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v3
18
+
19
+ - name: Check if PR should be auto-merged
20
+ uses: ahmadnassri/action-dependabot-auto-merge@v2
21
+ with:
22
+ # In order to use this, you need to go to https://github.com/settings/tokens and
23
+ # create a Personal Access Token with the permission "public_repo".
24
+ # Enter this token in your repository settings under "Secrets" and name it AUTO_MERGE_TOKEN
25
+ github-token: ${{ secrets.AUTO_MERGE_TOKEN }}
26
+ # By default, squash and merge, so Github chooses nice commit messages
27
+ command: squash and merge
@@ -0,0 +1,92 @@
1
+ name: Test and Release
2
+
3
+ # Run this job on all pushes and pull requests
4
+ # as well as tags with a semantic version
5
+ on:
6
+ push:
7
+ branches:
8
+ - 'master'
9
+ tags:
10
+ # normal versions
11
+ - 'v[0-9]+.[0-9]+.[0-9]+'
12
+ # pre-releases
13
+ - 'v[0-9]+.[0-9]+.[0-9]+-**'
14
+ pull_request: {}
15
+
16
+ # Cancel previous PR/branch runs when a new commit is pushed
17
+ concurrency:
18
+ group: ${{ github.ref }}
19
+ cancel-in-progress: true
20
+
21
+ jobs:
22
+ # Performs quick checks before the expensive test runs
23
+ check-and-lint:
24
+ if: contains(github.event.head_commit.message, '[skip ci]') == false
25
+
26
+ runs-on: ubuntu-latest
27
+
28
+ steps:
29
+ - uses: ioBroker/testing-action-check@v1
30
+ with:
31
+ node-version: '18.x'
32
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
33
+ # install-command: 'npm install'
34
+ lint: true
35
+
36
+ # Runs adapter tests on all supported node versions and OSes
37
+ adapter-tests:
38
+ if: contains(github.event.head_commit.message, '[skip ci]') == false
39
+
40
+ runs-on: ${{ matrix.os }}
41
+ strategy:
42
+ matrix:
43
+ node-version: [16.x, 18.x, 20.x]
44
+ os: [ubuntu-latest, windows-latest, macos-latest]
45
+
46
+ steps:
47
+ - uses: ioBroker/testing-action-adapter@v1
48
+ with:
49
+ node-version: ${{ matrix.node-version }}
50
+ os: ${{ matrix.os }}
51
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
52
+ # install-command: 'npm install'
53
+
54
+ # TODO: To enable automatic npm releases, create a token on npmjs.org
55
+ # Enter this token as a GitHub secret (with name NPM_TOKEN) in the repository options
56
+ # Then uncomment the following block:
57
+
58
+ # Deploys the final package to NPM
59
+ deploy:
60
+ needs: [check-and-lint, adapter-tests]
61
+
62
+ # Trigger this step only when a commit on any branch is tagged with a version number
63
+ if: |
64
+ contains(github.event.head_commit.message, '[skip ci]') == false &&
65
+ github.event_name == 'push' &&
66
+ startsWith(github.ref, 'refs/tags/v')
67
+
68
+ runs-on: ubuntu-latest
69
+
70
+ # Write permissions are required to create Github releases
71
+ permissions:
72
+ contents: write
73
+
74
+ steps:
75
+ - uses: ioBroker/testing-action-deploy@v1
76
+ with:
77
+ node-version: '18.x'
78
+ # Uncomment the following line if your adapter cannot be installed using 'npm ci'
79
+ # install-command: 'npm install'
80
+ npm-token: ${{ secrets.NPM_TOKEN }}
81
+ github-token: ${{ secrets.GITHUB_TOKEN }}
82
+
83
+ # When using Sentry for error reporting, Sentry can be informed about new releases
84
+ # To enable create a API-Token in Sentry (User settings, API keys)
85
+ # Enter this token as a GitHub secret (with name SENTRY_AUTH_TOKEN) in the repository options
86
+ # Then uncomment and customize the following block:
87
+ # sentry: true
88
+ # sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
89
+ # sentry-project: "iobroker-pid"
90
+ # sentry-version-prefix: "iobroker.pid"
91
+ # # If your sentry project is linked to a GitHub repository, you can enable the following option
92
+ # # sentry-github-integration: true
package/.mocharc.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "require": [
3
+ "./test/mocha.setup.js"
4
+ ]
5
+ }
@@ -0,0 +1,2 @@
1
+ package.json
2
+ package-lock.json
package/.prettierrc.js ADDED
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ semi: true,
3
+ trailingComma: 'all',
4
+ singleQuote: true,
5
+ printWidth: 120,
6
+ useTabs: false,
7
+ tabWidth: 4,
8
+ endOfLine: 'lf',
9
+ };
@@ -0,0 +1,3 @@
1
+ {
2
+ "plugins": ["iobroker", "license", "manual-review"]
3
+ }
package/LICENSE CHANGED
@@ -1,21 +1,22 @@
1
- MIT License
2
-
3
- Copyright (c) 2020 thewhobox
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 iobroker-community-adapters
4
+ Copyright (c) 2020-2023 thewhobox
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.