From 16446fef7ea023e4c2c4009779010eaab29af732 Mon Sep 17 00:00:00 2001 From: Peter Taylor Date: Wed, 9 Mar 2022 11:32:17 +0000 Subject: [PATCH] Forgot to rename things, doh! --- itchiodl/bundle_tool/__main__.py | 6 +++--- itchiodl/downloader/__main__.py | 6 +++--- itchiodl/game.py | 6 +++--- itchiodl/library.py | 2 +- pyproject.toml | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/itchiodl/bundle_tool/__main__.py b/itchiodl/bundle_tool/__main__.py index 513208d..6592b51 100644 --- a/itchiodl/bundle_tool/__main__.py +++ b/itchiodl/bundle_tool/__main__.py @@ -1,11 +1,11 @@ from getpass import getpass -import itchio +import itchiodl user = input("Username: ") password = getpass("Password: ") -l = itchio.LoginWeb(user, password) +l = itchiodl.LoginWeb(user, password) url = input("Bundle URL: ") -b = itchio.Bundle(l, url) +b = itchiodl.Bundle(l, url) b.load_games() \ No newline at end of file diff --git a/itchiodl/downloader/__main__.py b/itchiodl/downloader/__main__.py index e13457f..c53a03f 100644 --- a/itchiodl/downloader/__main__.py +++ b/itchiodl/downloader/__main__.py @@ -1,7 +1,7 @@ import argparse from getpass import getpass -import itchio +import itchiodl parser = argparse.ArgumentParser( prog='python -m hstp', @@ -17,10 +17,10 @@ l = "" if not args.api_key: user = input("Username: ") password = getpass("Password: ") - l = itchio.LoginAPI(user, password) + l = itchiodl.LoginAPI(user, password) else: l = args.api_key -lib = itchio.Library(l) +lib = itchiodl.Library(l) lib.load_games() lib.download_library() diff --git a/itchiodl/game.py b/itchiodl/game.py index 5d95829..55c2bfe 100644 --- a/itchiodl/game.py +++ b/itchiodl/game.py @@ -6,7 +6,7 @@ import urllib -import itchio.utils +import itchiodl.utils class Game: def __init__(self, data): @@ -59,8 +59,8 @@ class Game: url = f"https://api.itch.io/uploads/{d['id']}/download?api_key={token}&download_key_id={self.id}&uuid={j['uuid']}" # response_code = urllib.request.urlopen(url).getcode() try: - itchio.utils.download(url, path, self.name +" - "+file) - except itchio.utils.NoDownloadError as e: + itchiodl.utils.download(url, path, self.name +" - "+file) + except itchiodl.utils.NoDownloadError as e: print("Http response is not a download, skipping") with open('errors.txt', 'a') as f: diff --git a/itchiodl/library.py b/itchiodl/library.py index 71b57e3..112a0a7 100644 --- a/itchiodl/library.py +++ b/itchiodl/library.py @@ -1,7 +1,7 @@ import requests import json -from itchio.game import Game +from itchiodl.game import Game class Library: def __init__(self, login): diff --git a/pyproject.toml b/pyproject.toml index abfaafe..9f4bbf2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "itchiodl" -version = "1.1.1" +version = "1.1.2" description = "Python Scripts for downloading / archiving your itchio library" authors = ["Peter Taylor "] license = "MIT"