DenverCoder1 / DenverCoder1/github-readme-youtube-cards
🐛 Bug: View count no longer working
- Dominant language
- Python
- Stars
- 282
- Forks
- 65
- Avg merge
- 5d 9h
- Merged PRs (30d)
- 2
Description
### Description
View count was displayed next to the relative time but the API we used (img.shields.io) has retired showing YouTube stats.
### Steps to reproduce
Effects all cards
```
=========================== short test summary info ============================
FAILED tests/test_app.py::test_request_valid_params - assert None is not None
FAILED tests/test_app.py::test_request_right_to_left - assert None is not None
FAILED tests/test_utils.py::test_fetch_views - AssertionError: assert None
========================= 3 failed, 26 passed in 3.30s =========================
python3.11: exit 1 (3.85 seconds) /home/runner/work/github-readme-youtube-cards/github-readme-youtube-cards> pytest tests -s pid=2229
.pkg: _exit> python /opt/hostedtoolcache/Python/3.11.16/x64/lib/python3.11/site-packages/pyproject_api/_backend.py True hatchling.build
python3.11: FAIL code 1 (12.13=setup[8.28]+cmd[3.85] seconds)
evaluation failed :( (12.15 seconds)
```
### Screenshots
Views no longer showing:
Views used to be shown before the publish date:
Contributor guide
Research direction
Start by running the failing tests listed in tests/test_app.py and tests/test_utils.py, then inspect the view-fetching path that calls the retired img.shields.io YouTube stats API. Restore view counts for all cards and make the three reported tests pass without breaking the 26 passing tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100