mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2025-04-20 16:06:32 -04:00
Merge db230248e6
into 82e50c64f0
This commit is contained in:
commit
ffc6274f44
2 changed files with 11 additions and 1 deletions
|
@ -30,6 +30,10 @@ MKBSD comes in two variants! Node.js and Python.
|
|||
4. Wait a little.
|
||||
5. All wallpapers are now in a newly created `downloads` subfolder.
|
||||
|
||||
Alternatively, instead of steps 1-3, you can:
|
||||
1. Install uv (https://docs.astral.sh/uv/#getting-started)
|
||||
2. Run `uv run mkbsd.py`
|
||||
|
||||
## FAQ
|
||||
|
||||
### Q: What's the story behind this?
|
||||
|
|
8
mkbsd.py
8
mkbsd.py
|
@ -1,3 +1,9 @@
|
|||
# /// script
|
||||
# requires-python = ">=3.9"
|
||||
# dependencies = [
|
||||
# "aiohttp",
|
||||
# ]
|
||||
# ///
|
||||
# Licensed under the WTFPL License
|
||||
|
||||
import os
|
||||
|
@ -29,7 +35,7 @@ async def main():
|
|||
raise Exception(f"⛔ Failed to fetch JSON file: {response.status}")
|
||||
json_data = await response.json()
|
||||
data = json_data.get('data')
|
||||
|
||||
|
||||
if not data:
|
||||
raise Exception('⛔ JSON does not have a "data" property at its root.')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue