Giter Club home page Giter Club logo

openopus_api's People

Contributors

adrianosbr avatar bbreslauer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

openopus_api's Issues

[Bug] opera cannot be found

When searching for "La traviata" (by composer Verdi) I get no results, but when I search for just"traviata" I do get the expected result.

Unable to access audio files.

I tried fetching an audio file from the API using the composer's name and the name of the audio, but it returned an error. Does the API's database have the composer's work in an audio format, if it does, how can I fetch it?

This was the function I ran;

@app.route('/audio//')
def get_audio(composer, work):
url = f"https://openopus.org/{composer}/{work}.mp3"
response = requests.get(url)
if response.status_code == 200:
return response.content, 200, {'Content-Type': 'audio/mpeg'}
else:
return jsonify({'error': 'Unable to fetch audio file.'}), 500

Unexpected results when searching works by composer, genre, and title

I am sending the below request:

https://api.openopus.org/work/list/composer/178/genre/Stage/search/hip.json

While the expected opera, 'Hippolyte et Aricie' does appear in the response, I notice many other titles that don't fit the search string (hip):

La guirlande, ou Les fleurs enchantées 
Dardanus
Castor et Pollux
Anacréon
etc.

I was curious what matching method is being used by the api and whether I should be searching titles differently?

[Feature request] Extend Search Bar

It would be nice to be able to search through all composers, artists and works with the same search bar at the top. Now you always have to look for the composer first and then search the work you want using a different search box.

CORS on work guesser / roles?

I am getting CORS 'No Access-Control-Allow-Origin header' error when I POST for work guesser and performer roles from server. Other requests like composers are working fine.

const url = `https://api.openopus.org/dyn/work/guess?works=${encodeURIComponent(blah)}`
let request = new XMLHttpRequest();
request.open("POST", url, true);
request.send();

Am I doing something wrong or is this intended behaviour? Should I fork and create my own API?
My project depends on this API so any help would be greately appreciated! Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.