Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/blame/commit/23e2626df9fd3cc219eb8b4f612e70d1efe86f5f/libs/pysubs2/common.py You should set ROOT_URL correctly, otherwise the web may not work correctly.
bazarr/libs/pysubs2/common.py

33 lines
614 B

from dataclasses import dataclass
from typing import Union
7 years ago
@dataclass(init=False)
class Color:
7 years ago
"""
8-bit RGB color with alpha channel.
7 years ago
All values are ints from 0 to 255.
"""
r: int
g: int
b: int
a: int = 0
def __init__(self, r: int, g: int, b: int, a: int = 0):
7 years ago
for value in r, g, b, a:
if value not in range(256):
raise ValueError("Color channels must have values 0-255")
self.r = r
self.g = g
self.b = b
self.a = a
7 years ago
#: Version of the pysubs2 library.
VERSION = "1.3.1"
7 years ago
IntOrFloat = Union[int, float]