Skip to content

Commit

Permalink
Fix type yap
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Aug 5, 2024
1 parent 6f7015c commit 4e2ceb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vspreview/plugins/builtins/slowpics_comp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class CompUploadWidget(ExtendedWidget):
collection_name_cache: str | None

curr_uuid = ''
tmdb_data = dict[str, dict[str, Any]]()
tmdb_data = dict[str, dict[str, str]]()

_old_threads_workers = list[Any]()

Expand Down Expand Up @@ -343,7 +343,7 @@ def _get_replace_option(self, key: str) -> str | None:

match key:
case '{tmdb_title}':
return data.get('name', data.get('title', ''))
return data.get('name', data.get('title', '')) or ''
case '{tmdb_year}':
return str(
datetime.strptime(
Expand Down

0 comments on commit 4e2ceb0

Please sign in to comment.