1
0
forked from Mirrors/itch-dl
This commit is contained in:
Jeremie J. Jarosh
2023-08-19 09:07:38 -05:00
committed by Dragoon Aethis
parent 4960fee953
commit 6e7de8b5dc
2 changed files with 27 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ from .api import ItchApiClient
from .utils import ItchDownloadError, get_int_after_marker_in_json
from .consts import ITCH_BASE, ITCH_URL, ITCH_BROWSER_TYPES
from .config import Settings
from .keys import get_owned_games
def get_jobs_for_game_jam_json(game_jam_json: dict) -> List[str]:
@@ -132,6 +133,9 @@ def get_jobs_for_itch_url(url: str, client: ItchApiClient) -> List[str]:
raise ValueError("itch-dl expects a username in profile links.")
elif site == "my-purchases": # User Purchased Games
return get_owned_games(client)
# Something else?
raise NotImplementedError(f"itch-dl does not understand \"{site}\" URLs. Please file a new issue.")