Skip to content

Commit

Permalink
Merge pull request #6 from bneijt/issue-4
Browse files Browse the repository at this point in the history
Minor changes
  • Loading branch information
bneijt authored Apr 3, 2022
2 parents d4e81e5 + d6c7f9c commit 52eab1c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
- run: poetry install
- name: static code analysis
run: |
poetry run black --check ipfs_video_kodi test
poetry run black --check ipfs_video_kodi tests
poetry run mypy ipfs_video_kodi
- run: poetry run pytest
- name: build package
run: |
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ It has a configurable gateway and a configurable root CID that you can browse.
- `make package`
- Copy the `build/plugin_video_ipfs.zip`

The main branch in github is _not_ installable as a kodi package, please use the [zip from the releases](https://github.com/bneijt/ipfs-video-kodi/releases) if you want to install a zip directly from github.

# Viewing your own content

- Install IPFS on your media player
Expand Down
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.ipfs" version="" name="IPFS" provider-name="ipfs.video">
<addon id="plugin.video.ipfs" version="0.0.1" name="IPFS" provider-name="ipfs.video">
<requires>
<import addon="xbmc.python" version="3.0.0" />
<import addon="script.module.requests" version="2.22.0" />
Expand Down
5 changes: 3 additions & 2 deletions ipfs_video_kodi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
# Python 3
from urllib.parse import parse_qsl, urlencode
except ImportError:
from urllib import urlencode
from urlparse import parse_qsl
# Python 2
from urllib import urlencode # type: ignore
from urlparse import parse_qsl # type: ignore

import ipfs

Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ requests = "^2.26.0"

[tool.poetry.dev-dependencies]
pytest = "^6.2.5"
black = {version = "^21.12b0", allow-prereleases = true}
black = { version = "^21.12b0", allow-prereleases = true }
mypy = "^0.930"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[[tool.mypy.overrides]]
module = ["requests", "xbmcgui", "xbmcplugin"]
ignore_missing_imports = true
2 changes: 1 addition & 1 deletion resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<settings>
<category label="5">
<setting label="32000" type="text" id="rootCid" default="QmYHDhsgUgdKSAimguGC92MzQ8VNFHZw3yp6kAHwiXCFLm" />
<setting label="32001" type="labelenum" id="ipfsGateway" default="https://ipfs.io" values="http://127.0.0.1:8080|https://ipfs.io|https://dweb.link|https://gateway.pinata.cloud" />
<setting label="32001" type="labelenum" id="ipfsGateway" default="https://ipfs.io" values="http://127.0.0.1:8080|https://ipfs.io|https://dweb.link|https://gateway.pinata.cloud|https://ipfs.infura.io" />
</category>
</settings>
File renamed without changes.

0 comments on commit 52eab1c

Please # to comment.