Merge pull request #1891 from clinton-hall/nightly

Nightly
This commit is contained in:
Clinton Hall 2022-07-15 09:24:28 +12:00 committed by GitHub
commit 084e404b92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -398,7 +398,7 @@ def configure_general():
FFMPEG_PATH = CFG['General']['ffmpeg_path']
SYS_PATH = CFG['General']['sys_path']
CHECK_MEDIA = int(CFG['General']['check_media'])
REQUIRE_LAN = CFG['General']['require_lan'] or None
REQUIRE_LAN = CFG['General']['require_lan'].split(',') or None
SAFE_MODE = int(CFG['General']['safe_mode'])
NOEXTRACTFAILED = int(CFG['General']['no_extract_failed'])

View file

@ -64,7 +64,7 @@ def is_video_good(videofile, status, require_lan=None):
video_streams = [item for item in video_details['streams'] if item['codec_type'] == 'video']
audio_streams = [item for item in video_details['streams'] if item['codec_type'] == 'audio']
if require_lan:
valid_audio = [item for item in audio_streams if 'tags' in item and 'language' in item['tags'] and item['tags']['language'] == require_lan ]
valid_audio = [item for item in audio_streams if 'tags' in item and 'language' in item['tags'] and item['tags']['language'] in require_lan ]
else:
valid_audio = audio_streams
if len(video_streams) > 0 and len(valid_audio) > 0:

View file

@ -281,7 +281,7 @@ class SeekPoint(tuple):
"""
def __new__(cls, first_sample, byte_offset, num_samples):
return super(cls, SeekPoint).__new__(
return super(SeekPoint, cls).__new__(
cls, (first_sample, byte_offset, num_samples))
first_sample = property(lambda self: self[0])