diff --git a/README.md b/README.md index 0c9cf34..b888ce8 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,6 @@ ---- -page_type: sample -description: "A minimal sample app that can be used to demonstrate deploying Flask apps to Azure App Service on Linux." -languages: -- python -products: -- azure -- azure-app-service ---- +# PyZuneCatalogServer -# Python Flask sample for Azure App Service (Linux) - -This is a minimal Flask app that can be deployed to Azure App Service on Linux. - -For instructions on running and deploying the code, see [Quickstart: Create a Python app in Azure App Service on Linux](https://docs.microsoft.com/azure/app-service/quickstart-python). +This repository houses a community effort to recreate the Zune Marketplace servers. ## Contributing diff --git a/app.py b/app.py index a46934e..96d103f 100644 --- a/app.py +++ b/app.py @@ -8,6 +8,7 @@ from atom.factory import * from locale import * locale = getdefaultlocale()[0] + app = Flask(__name__) musicbrainzngs.set_useragent("Zune", "4.8", "https://github.com/yoshiask/PyZuneCatalogServer") @@ -121,7 +122,7 @@ def music_album_details(id: str, fragment: str, locale: str): # Get artist information @app.route(f"/v3.2//music/artist//") def music_get_artist(id: str, locale: str): - return music_get_artist_tracks(id) + return music_get_artist_tracks(id, locale) # Get artist's tracks diff --git a/gunicorn_config.py b/gunicorn_config.py new file mode 100644 index 0000000..e1be9ed --- /dev/null +++ b/gunicorn_config.py @@ -0,0 +1,2 @@ +bind = "0.0.0.0:80" +workers = 2