fix themoviedb scraper

This commit is contained in:
jxxghp
2023-06-06 20:24:04 +08:00
parent 9047e0252a
commit cfe90a4522
12 changed files with 687 additions and 139 deletions

View File

@ -3,6 +3,7 @@ import platform
import re
import shutil
from pathlib import Path
from typing import List
class SystemUtils:
@ -86,7 +87,7 @@ class SystemUtils:
return -1, str(err)
@staticmethod
def list_files_with_extensions(directory: Path, extensions: list) -> list:
def list_files_with_extensions(directory: Path, extensions: list) -> List[Path]:
files = []
pattern = r".*\.(" + "|".join(extensions) + ")$"