Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the 7digital preview script doesn't work #7

Open
tangkk opened this issue Jun 8, 2017 · 2 comments
Open

the 7digital preview script doesn't work #7

tangkk opened this issue Jun 8, 2017 · 2 comments

Comments

@tangkk
Copy link

tangkk commented Jun 8, 2017

I tried to get a url of a 30s preview from 7digital.com using this script officially provided by the authors. I do have a 7digital API ID, the generated request is like:
http://api.7digital.com/1.2/track/preview?redirect=false&trackid=8707738&oauth_consumer_key=my_7digital_id

but the script keeps failing when trying to process this url. I did try several other tracks but also failed.

here's the console output of "python get_preview_url.py -7digitalkey my_7digital_id TRAXLZU12903D05F94.h5"

Traceback (most recent call last):
File "get_preview_url.py", line 272, in
preview = get_preview_from_trackid(track_7digitalid)
File "get_preview_url.py", line 203, in get_preview_from_trackid
xmldoc = url_call(url)
File "get_preview_url.py", line 69, in url_call
stream = urllib2.urlopen(url)
File "/Users/junqideng/anaconda/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/Users/junqideng/anaconda/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/Users/junqideng/anaconda/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/Users/junqideng/anaconda/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/Users/junqideng/anaconda/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/Users/junqideng/anaconda/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

Thanks for the fix!

@francarranza
Copy link

Hi! How did you fix this issue?
Thanks

@tangkk
Copy link
Author

tangkk commented Sep 18, 2017

you could try the solutions suggested in this thread:
https://groups.google.com/a/ismir.net/forum/#!topic/community/LPxcfa6Db1w

otherwise post a request in ISMIR's mailing list: https://groups.google.com/a/ismir.net/forum/#!forum/community
Some of us may have copies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants