mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-04-25 07:07:44 -04:00
Updated vendored dependencies.
This commit is contained in:
parent
708fbfcd8e
commit
bbe2483e21
1750 changed files with 53887 additions and 34406 deletions
8
libs/srt_tools/utils.py
Normal file → Executable file
8
libs/srt_tools/utils.py
Normal file → Executable file
|
@ -6,9 +6,13 @@ import srt
|
|||
import logging
|
||||
import sys
|
||||
import itertools
|
||||
import collections
|
||||
import os
|
||||
|
||||
try:
|
||||
from collections.abc import MutableSequence
|
||||
except ImportError:
|
||||
from collections import MutableSequence
|
||||
|
||||
PROG_NAME = os.path.basename(sys.argv[0]).replace("-", " ", 1)
|
||||
|
||||
STDIN_BYTESTREAM = getattr(sys.stdin, "buffer", sys.stdin)
|
||||
|
@ -175,7 +179,7 @@ def set_basic_args(args):
|
|||
else:
|
||||
log.debug("%s not in DASH_STREAM_MAP", stream_name)
|
||||
if stream is args.input:
|
||||
if isinstance(args.input, collections.MutableSequence):
|
||||
if isinstance(args.input, MutableSequence):
|
||||
for i, input_fn in enumerate(args.input):
|
||||
if input_fn in DASH_STREAM_MAP.values():
|
||||
if stream is args.input:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue