From b7b6ac0f876d6a9452d2273cfa0d7ff2d1e10efa Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Fri, 17 Mar 2023 23:54:32 -0700 Subject: [PATCH] python-codecs: fix python3.7 maybe --- plugins/python-codecs/package-lock.json | 4 ++-- plugins/python-codecs/package.json | 2 +- plugins/python-codecs/src/main.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/python-codecs/package-lock.json b/plugins/python-codecs/package-lock.json index 607d5304e..e41356c00 100644 --- a/plugins/python-codecs/package-lock.json +++ b/plugins/python-codecs/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/python-codecs", - "version": "0.1.11", + "version": "0.1.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@scrypted/python-codecs", - "version": "0.1.11", + "version": "0.1.12", "devDependencies": { "@scrypted/sdk": "file:../../sdk" } diff --git a/plugins/python-codecs/package.json b/plugins/python-codecs/package.json index e77847a46..465ac0104 100644 --- a/plugins/python-codecs/package.json +++ b/plugins/python-codecs/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/python-codecs", - "version": "0.1.11", + "version": "0.1.12", "description": "Python Codecs for Scrypted", "keywords": [ "scrypted", diff --git a/plugins/python-codecs/src/main.py b/plugins/python-codecs/src/main.py index b41e6542a..6301e2967 100644 --- a/plugins/python-codecs/src/main.py +++ b/plugins/python-codecs/src/main.py @@ -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 @@ -30,7 +30,7 @@ class GstreamerGenerator(scrypted_sdk.ScryptedDeviceBase, scrypted_sdk.VideoFram 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',