mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-01-13 11:36:12 +00:00
Merge pull request #878 from oddstr13/pr-editorconfig-1
Editorconfig pre-commit and indentation adjustment
This commit is contained in:
commit
d731c80ee7
11 changed files with 131 additions and 107 deletions
|
@ -1,42 +1,55 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.jellyfin"
|
<addon id="plugin.video.jellyfin"
|
||||||
name="Jellyfin"
|
name="Jellyfin"
|
||||||
version=""
|
version=""
|
||||||
provider-name="Jellyfin Contributors, angelblue05">
|
provider-name="Jellyfin Contributors, angelblue05">
|
||||||
<requires>
|
<requires>
|
||||||
</requires>
|
</requires>
|
||||||
<extension point="xbmc.python.pluginsource"
|
<extension point="xbmc.python.pluginsource"
|
||||||
library="default.py">
|
library="default.py">
|
||||||
<provides>video audio image</provides>
|
<provides>video audio image</provides>
|
||||||
</extension>
|
</extension>
|
||||||
<extension point="xbmc.service" library="service.py" start="login">
|
<extension point="xbmc.service" library="service.py" start="login">
|
||||||
</extension>
|
</extension>
|
||||||
<extension point="kodi.context.item">
|
<extension point="kodi.context.item">
|
||||||
<menu id="kodi.core.main">
|
<menu id="kodi.core.main">
|
||||||
<item library="context.py">
|
<item library="context.py">
|
||||||
<label>30401</label>
|
<label>30401</label>
|
||||||
<visible>[!String.IsEmpty(ListItem.DBID) + !String.IsEqual(ListItem.DBID,-1) | !String.IsEmpty(ListItem.Property(jellyfinid))] + !String.IsEmpty(Window(10000).Property(jellyfin_context))</visible>
|
<visible>[!String.IsEmpty(ListItem.DBID) + !String.IsEqual(ListItem.DBID,-1) |
|
||||||
</item>
|
!String.IsEmpty(ListItem.Property(jellyfinid))] +
|
||||||
<item library="context_play.py">
|
!String.IsEmpty(Window(10000).Property(jellyfin_context))</visible>
|
||||||
<label>30402</label>
|
</item>
|
||||||
<visible>[[!String.IsEmpty(ListItem.DBID) + !String.IsEqual(ListItem.DBID,-1) | !String.IsEmpty(ListItem.Property(jellyfinid))] + [String.IsEqual(ListItem.DBTYPE,movie) | String.IsEqual(ListItem.DBTYPE,episode)]] + !String.IsEmpty(Window(10000).Property(jellyfin_context_transcode))</visible>
|
<item library="context_play.py">
|
||||||
</item>
|
<label>30402</label>
|
||||||
</menu>
|
<visible>[[!String.IsEmpty(ListItem.DBID) + !String.IsEqual(ListItem.DBID,-1) |
|
||||||
</extension>
|
!String.IsEmpty(ListItem.Property(jellyfinid))] + [String.IsEqual(ListItem.DBTYPE,movie) |
|
||||||
<extension point="xbmc.addon.metadata">
|
String.IsEqual(ListItem.DBTYPE,episode)]] +
|
||||||
<platform>all</platform>
|
!String.IsEmpty(Window(10000).Property(jellyfin_context_transcode))</visible>
|
||||||
<language>en</language>
|
</item>
|
||||||
<license>GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007</license>
|
</menu>
|
||||||
<forum>https://forum.jellyfin.org</forum>
|
</extension>
|
||||||
<website>https://jellyfin.org/</website>
|
<extension point="xbmc.addon.metadata">
|
||||||
<source>https://github.com/jellyfin/jellyfin-kodi</source>
|
<platform>all</platform>
|
||||||
<summary lang="en"></summary>
|
<language>en</language>
|
||||||
<description lang="en">Welcome to Jellyfin for Kodi! A whole new way to manage and view your media library. The Jellyfin addon for Kodi combines the best of Kodi - ultra smooth navigation, beautiful UIs and playback of any file under the sun, and Jellyfin - the most powerful fully open source multi-client media metadata indexer and server. Jellyfin for Kodi is the absolute best way to enjoy the incredible Kodi playback engine combined with the power of Jellyfin's centralized database. Features: * Direct integration with the Kodi library for native Kodi speed * Instant synchronization with the Jellyfin server * Full support for Movie, TV and Music collections * Jellyfin Server direct stream and transcoding support - use Kodi when you are away from home!</description>
|
<license>GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007</license>
|
||||||
<news>
|
<forum>https://forum.jellyfin.org</forum>
|
||||||
</news>
|
<website>https://jellyfin.org/</website>
|
||||||
<assets>
|
<source>https://github.com/jellyfin/jellyfin-kodi</source>
|
||||||
<icon>resources/icon.png</icon>
|
<summary lang="en"></summary>
|
||||||
<fanart>resources/fanart.png</fanart>
|
<description lang="en">Welcome to Jellyfin for Kodi! A whole new way to manage and view your
|
||||||
</assets>
|
media library. The Jellyfin addon for Kodi combines the best of Kodi - ultra smooth
|
||||||
</extension>
|
navigation, beautiful UIs and playback of any file under the sun, and Jellyfin - the most
|
||||||
|
powerful fully open source multi-client media metadata indexer and server. Jellyfin
|
||||||
|
for Kodi is the absolute best way to enjoy the incredible Kodi playback engine combined with
|
||||||
|
the power of Jellyfin's centralized database. Features: * Direct integration with the Kodi
|
||||||
|
library for native Kodi speed * Instant synchronization with the Jellyfin server *
|
||||||
|
Full support for Movie, TV and Music collections * Jellyfin Server direct stream and
|
||||||
|
transcoding support - use Kodi when you are away from home!</description>
|
||||||
|
<news>
|
||||||
|
</news>
|
||||||
|
<assets>
|
||||||
|
<icon>resources/icon.png</icon>
|
||||||
|
<fanart>resources/fanart.png</fanart>
|
||||||
|
</assets>
|
||||||
|
</extension>
|
||||||
</addon>
|
</addon>
|
||||||
|
|
|
@ -23,19 +23,13 @@ indent_size = 2
|
||||||
# XML indentation
|
# XML indentation
|
||||||
[*.xml]
|
[*.xml]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[resources/settings.xml]
|
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
|
||||||
[resources/skins/**.xml]
|
# JSON indentation
|
||||||
|
[*.json]
|
||||||
|
indent_size = 2
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
|
|
||||||
|
|
||||||
[jellyfin_kodi/objects/obj_map.json]
|
|
||||||
indent_style = tab
|
|
||||||
|
|
||||||
[.devcontainer/Python 3.11/devcontainer.json]
|
|
||||||
indent_style = tab
|
|
||||||
|
|
||||||
[README.md]
|
[README.md]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
# Tool: black
|
# Tool: black
|
||||||
77637622125a187c5b9cbe72b78c8bd3b26f754a
|
77637622125a187c5b9cbe72b78c8bd3b26f754a
|
||||||
|
# Fix editorconfig lints
|
||||||
|
be8333a80c2650c75444281a9b720da438b2b6d0
|
||||||
|
# Change indentation of XML and JSON files
|
||||||
|
7c0e986bd283c764cc16f0c756a03a04e4073ad0
|
||||||
|
|
10
.github/issue_template.md
vendored
10
.github/issue_template.md
vendored
|
@ -18,11 +18,11 @@
|
||||||
<!-- If applicable, add screenshots to help explain your problem. -->
|
<!-- If applicable, add screenshots to help explain your problem. -->
|
||||||
|
|
||||||
**System (please complete the following information):**
|
**System (please complete the following information):**
|
||||||
- OS: [e.g. Android, Debian, Windows]
|
- OS: [e.g. Android, Debian, Windows]
|
||||||
- Jellyfin Version: [e.g. 10.0.1]
|
- Jellyfin Version: [e.g. 10.0.1]
|
||||||
- Kodi Version: [e.g. 18.3]
|
- Kodi Version: [e.g. 18.3]
|
||||||
- Addon Version: [e.g. 0.2.1]
|
- Addon Version: [e.g. 0.2.1]
|
||||||
- Playback Mode: [e.g. Add-On or Native]
|
- Playback Mode: [e.g. Add-On or Native]
|
||||||
|
|
||||||
**Additional context**
|
**Additional context**
|
||||||
<!-- Add any other context about the problem here. -->
|
<!-- Add any other context about the problem here. -->
|
||||||
|
|
2
.github/releasing.md
vendored
2
.github/releasing.md
vendored
|
@ -1,7 +1,7 @@
|
||||||
# Releasing a new Version via GitHub Actions
|
# Releasing a new Version via GitHub Actions
|
||||||
|
|
||||||
0. (optional) label the PRs you want to include in this release (if you want to group them in the GH release based on topics). \
|
0. (optional) label the PRs you want to include in this release (if you want to group them in the GH release based on topics). \
|
||||||
Supported labels can be found in the Release Drafter [config-file](https://github.com/jellyfin/jellyfin-meta-plugins/blob/master/.github/release-drafter.yml) (currently inherited from `jellyfin/jellyfin-meta-plugins`)
|
Supported labels can be found in the Release Drafter [config-file](https://github.com/jellyfin/jellyfin-meta-plugins/blob/master/.github/release-drafter.yml) (currently inherited from `jellyfin/jellyfin-meta-plugins`)
|
||||||
1. ensure you have merged the PRs you want to include in the release and that the so far drafted GitHub release has captured them
|
1. ensure you have merged the PRs you want to include in the release and that the so far drafted GitHub release has captured them
|
||||||
2. Create a `release-prep` PR by manually triggering the 'Create Prepare-Release PR' Workflow from the Actions tab on GitHub
|
2. Create a `release-prep` PR by manually triggering the 'Create Prepare-Release PR' Workflow from the Actions tab on GitHub
|
||||||
3. check the newly created `Prepare for release vx.y.z` PR if updated the `release.yaml` properly (update it manually if need be)
|
3. check the newly created `Prepare for release vx.y.z` PR if updated the `release.yaml` properly (update it manually if need be)
|
||||||
|
|
61
.github/renovate.json
vendored
61
.github/renovate.json
vendored
|
@ -1,26 +1,37 @@
|
||||||
{
|
{
|
||||||
"extends": [
|
"extends": [
|
||||||
"config:base",
|
"config:base",
|
||||||
":dependencyDashboard",
|
":dependencyDashboard",
|
||||||
":timezone(Etc/UTC)",
|
":timezone(Etc/UTC)",
|
||||||
":preserveSemverRanges"
|
":preserveSemverRanges"
|
||||||
],
|
],
|
||||||
"internalChecksFilter": "strict",
|
"internalChecksFilter": "strict",
|
||||||
"rebaseWhen": "conflicted",
|
"rebaseWhen": "conflicted",
|
||||||
"packageRules": [
|
"packageRules": [
|
||||||
{
|
{
|
||||||
"description": "Add the ci and github-actions GitHub label to GitHub Action bump PRs",
|
"description": "Add the ci and github-actions GitHub label to GitHub Action bump PRs",
|
||||||
"matchManagers": ["github-actions"],
|
"matchManagers": [
|
||||||
"labels": ["ci", "github-actions"]
|
"github-actions"
|
||||||
},
|
],
|
||||||
{
|
"labels": [
|
||||||
"description": "Add the ci and github-actions GitHub label to GitHub Action bump PRs",
|
"ci",
|
||||||
"matchManagers": ["pip_requirements"],
|
"github-actions"
|
||||||
"labels": ["pip", "dependencies"]
|
]
|
||||||
}
|
},
|
||||||
|
{
|
||||||
],
|
"description": "Add the ci and github-actions GitHub label to GitHub Action bump PRs",
|
||||||
"pip_requirements": {
|
"matchManagers": [
|
||||||
"fileMatch": ["requirements(-[a-z0-9]+)?\\.txt$"]
|
"pip_requirements"
|
||||||
}
|
],
|
||||||
}
|
"labels": [
|
||||||
|
"pip",
|
||||||
|
"dependencies"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pip_requirements": {
|
||||||
|
"fileMatch": [
|
||||||
|
"requirements(-[a-z0-9]+)?\\.txt$"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -9,11 +9,11 @@ repos:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: no-commit-to-branch
|
- id: no-commit-to-branch
|
||||||
|
|
||||||
# - repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
||||||
# rev: "2.7.3"
|
rev: "2.7.3"
|
||||||
# hooks:
|
hooks:
|
||||||
# - id: editorconfig-checker
|
- id: editorconfig-checker
|
||||||
# exclude: '^LICENSE\.txt$'
|
exclude: '^(LICENSE\.txt|resources/language/.*\.po)$'
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: "24.4.2"
|
rev: "24.4.2"
|
||||||
|
|
8
.vscode/extensions.json
vendored
8
.vscode/extensions.json
vendored
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"ms-vscode-remote.remote-containers",
|
"ms-vscode-remote.remote-containers",
|
||||||
"ms-python.black-formatter"
|
"ms-python.black-formatter"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
28
.vscode/settings.json
vendored
28
.vscode/settings.json
vendored
|
@ -1,16 +1,16 @@
|
||||||
{
|
{
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"python.formatting.provider": "black",
|
"python.formatting.provider": "black",
|
||||||
"python.linting.enabled": true,
|
"python.linting.enabled": true,
|
||||||
"python.linting.flake8Enabled": true,
|
"python.linting.flake8Enabled": true,
|
||||||
"python.linting.mypyEnabled": true,
|
"python.linting.mypyEnabled": true,
|
||||||
"python.testing.pytestEnabled": true,
|
"python.testing.pytestEnabled": true,
|
||||||
"python.analysis.diagnosticMode": "workspace",
|
"python.analysis.diagnosticMode": "workspace",
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"requirements-*.txt": "pip-requirements"
|
"requirements-*.txt": "pip-requirements"
|
||||||
},
|
},
|
||||||
"sonarlint.connectedMode.project": {
|
"sonarlint.connectedMode.project": {
|
||||||
"connectionId": "jellyfin",
|
"connectionId": "jellyfin",
|
||||||
"projectKey": "jellyfin_jellyfin-kodi"
|
"projectKey": "jellyfin_jellyfin-kodi"
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ class Objects(object):
|
||||||
"?": split filters and key name from the query part, i.e. MediaSources/0?$Name
|
"?": split filters and key name from the query part, i.e. MediaSources/0?$Name
|
||||||
"$": lead the key name with $. Only one key value can be requested per element.
|
"$": lead the key name with $. Only one key value can be requested per element.
|
||||||
":": indicates it's a list of elements [], i.e. MediaSources/0/MediaStreams:?$Name
|
":": indicates it's a list of elements [], i.e. MediaSources/0/MediaStreams:?$Name
|
||||||
MediaStreams is a list.
|
MediaStreams is a list.
|
||||||
"/": indicates where to go directly
|
"/": indicates where to go directly
|
||||||
"""
|
"""
|
||||||
self.mapped_item = {}
|
self.mapped_item = {}
|
||||||
|
|
|
@ -15,11 +15,13 @@
|
||||||
</control>
|
</control>
|
||||||
<control type="group">
|
<control type="group">
|
||||||
<animation type="WindowOpen" reversible="false">
|
<animation type="WindowOpen" reversible="false">
|
||||||
<effect type="zoom" start="80" end="100" center="960,540" delay="160" tween="circle" easin="out" time="240" />
|
<effect type="zoom" start="80" end="100" center="960,540" delay="160" tween="circle"
|
||||||
|
easin="out" time="240" />
|
||||||
<effect type="fade" delay="160" end="100" time="240" />
|
<effect type="fade" delay="160" end="100" time="240" />
|
||||||
</animation>
|
</animation>
|
||||||
<animation type="WindowClose" reversible="false">
|
<animation type="WindowClose" reversible="false">
|
||||||
<effect type="zoom" start="100" end="80" center="960,540" easing="in" tween="circle" easin="out" time="240" />
|
<effect type="zoom" start="100" end="80" center="960,540" easing="in" tween="circle"
|
||||||
|
easin="out" time="240" />
|
||||||
<effect type="fade" start="100" end="0" time="240" />
|
<effect type="fade" start="100" end="0" time="240" />
|
||||||
</animation>
|
</animation>
|
||||||
<centerleft>50%</centerleft>
|
<centerleft>50%</centerleft>
|
||||||
|
@ -98,4 +100,4 @@
|
||||||
</control>
|
</control>
|
||||||
</control>
|
</control>
|
||||||
</controls>
|
</controls>
|
||||||
</window>
|
</window>
|
||||||
|
|
Loading…
Reference in a new issue