Miserlou / Miserlou/SoundScrape
KeyError: 'track'
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 143
- PR merge metrics
- No merged PRs in 30d
Description
I get the following stack trace whenever I run the command soundscrape muramasamusic:
Scraping: APZIP.01 (free ziptape and beats 1 radio show)
[################################] 4942/4942 - 00:00:01
Traceback (most recent call last):
File "//anaconda/bin/soundscrape", line 11, in <module>
sys.exit(main())
File "//anaconda/lib/python3.5/site-packages/soundscrape/soundscrape.py", line 119, in main
process_soundcloud(vargs)
File "//anaconda/lib/python3.5/site-packages/soundscrape/soundscrape.py", line 285, in process_soundcloud
d_track = track['track']
KeyError: 'track'
Maybe it's an issue with SoundCloud Go only tracks?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with soundscrape muramasamusic, then inspect soundscrape/soundscrape.py around process_soundcloud line 285 and the track['track'] lookup. Compare the returned data for the failing entry with normal entries and determine the expected handling for records without that key; done means the command no longer raises this uncaught KeyError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100