Skip to content

Commit

Permalink
python-codecs: fix python3.7 maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 18, 2023
1 parent e5fb65d commit b7b6ac0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugins/python-codecs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/python-codecs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/python-codecs",
"version": "0.1.11",
"version": "0.1.12",
"description": "Python Codecs for Scrypted",
"keywords": [
"scrypted",
Expand Down
4 changes: 2 additions & 2 deletions plugins/python-codecs/src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import scrypted_sdk
from scrypted_sdk import Setting, SettingValue
from typing import Any
from typing import Any, List
import gstreamer
import libav
import vips
Expand Down Expand Up @@ -30,7 +30,7 @@ async def generateVideoFrames(self, mediaObject: scrypted_sdk.MediaObject, optio
forked: CodecFork = await worker.result
return await forked.generateVideoFramesGstreamer(mediaObject, options, filter, self.storage.getItem('h264Decoder'))

async def getSettings(self) -> list[Setting]:
async def getSettings(self) -> List[Setting]:
return [
{
'key': 'h264Decoder',
Expand Down

0 comments on commit b7b6ac0

Please sign in to comment.