Add template icon

This commit is contained in:
2023-03-20 19:05:22 +01:00
parent 3e8cfec634
commit 9bc6f0cd2d
8 changed files with 686 additions and 63 deletions
+10
View File
@@ -53,6 +53,16 @@ class Kitsu(Tracker):
return assets
def download_preview(self, preview_id, filepath):
if isinstance(filepath, str):
filepath = Path(filepath)
if filepath.exists():
return
filepath.parent.mkdir(parents=True, exist_ok=True)
gazu.files.download_preview_file_thumbnail(preview_id, filepath.as_posix())
def connect(self, url=None, login=None, password=None):
'''Connect to kitsu api using provided url, login and password'''