mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2025-01-24 08:21:01 +00:00
Fix python version, clarify readme
This commit is contained in:
parent
6896467e5b
commit
114183afc2
|
@ -30,7 +30,7 @@ MKBSD comes in two variants! Node.js and Python.
|
||||||
4. Wait a little.
|
4. Wait a little.
|
||||||
5. All wallpapers are now in a newly created `downloads` subfolder.
|
5. All wallpapers are now in a newly created `downloads` subfolder.
|
||||||
|
|
||||||
Alternatively, instead of steps 2 and 3, you can:
|
Alternatively, instead of steps 1-3, you can:
|
||||||
* Install uv (https://docs.astral.sh/uv/#getting-started)
|
* Install uv (https://docs.astral.sh/uv/#getting-started)
|
||||||
* Run `uv run mkbsd.py`
|
* Run `uv run mkbsd.py`
|
||||||
|
|
||||||
|
|
4
mkbsd.py
4
mkbsd.py
|
@ -1,5 +1,5 @@
|
||||||
# /// script
|
# /// script
|
||||||
# requires-python = ">=3.12"
|
# requires-python = ">=3.9"
|
||||||
# dependencies = [
|
# dependencies = [
|
||||||
# "aiohttp",
|
# "aiohttp",
|
||||||
# ]
|
# ]
|
||||||
|
@ -35,7 +35,7 @@ async def main():
|
||||||
raise Exception(f"⛔ Failed to fetch JSON file: {response.status}")
|
raise Exception(f"⛔ Failed to fetch JSON file: {response.status}")
|
||||||
json_data = await response.json()
|
json_data = await response.json()
|
||||||
data = json_data.get('data')
|
data = json_data.get('data')
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
raise Exception('⛔ JSON does not have a "data" property at its root.')
|
raise Exception('⛔ JSON does not have a "data" property at its root.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue