It's an always issue. No way to workaround. Unsplash downloader Python script is crashing because of json does not contain "categories" entries.
To Reproduce
Go to Preferences
Select Unsplash as image source
Attach Variety's log file
INFO: 2022-10-28 22:09:27,749: fill_queue() 'Filling Unsplash queue from https://api.unsplash.com/photos/random?count=30&client_id=072e5048dfcb73a8d9ad59fcf402471518ff8df725df462b0c4fa665f466515a&orientation=landscape'
ERROR: 2022-10-28 22:09:28,426: fill_queue() 'Could not process an item from Unsplash'
Traceback (most recent call last):
File "/home/silviu/.local/lib/python3.10/site-packages/variety/plugins/builtin/downloaders/UnsplashDownloader.py", line 109, in fill_queue
"keywords": [cat["title"].lower().strip() for cat in item["categories"]],
KeyError: 'categories'
ERROR: 2022-10-28 22:09:28,426: download_one_from() 'Could not download wallpaper:'
Traceback (most recent call last):
File "/home/silviu/.local/lib/python3.10/site-packages/variety/VarietyWindow.py", line 1164, in download_one_from
file = downloader.download_one()
File "/home/silviu/.local/lib/python3.10/site-packages/variety/plugins/downloaders/DefaultDownloader.py", line 141, in download_one
items = self.fill_queue()
File "/home/silviu/.local/lib/python3.10/site-packages/variety/plugins/builtin/downloaders/UnsplashDownloader.py", line 109, in fill_queue
"keywords": [cat["title"].lower().strip() for cat in item["categories"]],
KeyError: 'categories'
Version of Variety 0.8.9
Describe the bug
No image is loaded from Unsplash.com
Context
It's an always issue. No way to workaround. Unsplash downloader Python script is crashing because of json does not contain "categories" entries.
To Reproduce
Attach Variety's log file
INFO: 2022-10-28 22:09:27,749: fill_queue() 'Filling Unsplash queue from https://api.unsplash.com/photos/random?count=30&client_id=072e5048dfcb73a8d9ad59fcf402471518ff8df725df462b0c4fa665f466515a&orientation=landscape' ERROR: 2022-10-28 22:09:28,426: fill_queue() 'Could not process an item from Unsplash' Traceback (most recent call last): File "/home/silviu/.local/lib/python3.10/site-packages/variety/plugins/builtin/downloaders/UnsplashDownloader.py", line 109, in fill_queue "keywords": [cat["title"].lower().strip() for cat in item["categories"]], KeyError: 'categories' ERROR: 2022-10-28 22:09:28,426: download_one_from() 'Could not download wallpaper:' Traceback (most recent call last): File "/home/silviu/.local/lib/python3.10/site-packages/variety/VarietyWindow.py", line 1164, in download_one_from file = downloader.download_one() File "/home/silviu/.local/lib/python3.10/site-packages/variety/plugins/downloaders/DefaultDownloader.py", line 141, in download_one items = self.fill_queue() File "/home/silviu/.local/lib/python3.10/site-packages/variety/plugins/builtin/downloaders/UnsplashDownloader.py", line 109, in fill_queue "keywords": [cat["title"].lower().strip() for cat in item["categories"]], KeyError: 'categories'
Desktop environment and version
OS name and version
Linux Mint 21 Vanessa \n \l
NAME="Linux Mint" VERSION="21 (Vanessa)" ID=linuxmint ID_LIKE="ubuntu debian" PRETTY_NAME="Linux Mint 21" VERSION_ID="21" HOME_URL="https://www.linuxmint.com/" SUPPORT_URL="https://forums.linuxmint.com/" BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/" PRIVACY_POLICY_URL="https://www.linuxmint.com/" VERSION_CODENAME=vanessa UBUNTU_CODENAME=jammy
Screenshots
Attached files
Additional context