commit 0348f5600e4165bb8328d88f0bffdc3c11b3c272 Author: Yoshi Askharoun Date: Wed May 19 11:41:41 2021 -0500 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f10212 --- /dev/null +++ b/.gitignore @@ -0,0 +1,95 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# IPython Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# dotenv +.env + +# virtualenv +venv/ +ENV/ +.venv/ + +# Spyder project settings +.spyderproject + +# Rope project settings +.ropeproject + +# Visual Studio Code +.vscode/ +.azure/ +.idea/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..2107107 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..ca6e941 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: gunicorn app:app diff --git a/README.md b/README.md new file mode 100644 index 0000000..cee9fb3 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# PyZuneResourcesServer + +This repository houses a community effort to recreate the Zune Marketplace resource server. + +## Contributing + +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. diff --git a/app.py b/app.py new file mode 100644 index 0000000..9a0cc98 --- /dev/null +++ b/app.py @@ -0,0 +1,19 @@ +from flask import Flask, abort, send_from_directory + +from locale import * + + +app = Flask(__name__) + + +@app.route(f"/") +def get_image(filepath: str): + try: + print(filepath) + return send_from_directory("./static", filename=filepath, as_attachment=True) + except FileNotFoundError: + abort(404) + + +if __name__ == "__main__": + app.run(port=80) 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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3a7547a --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +Flask>=1.0,<=1.1.2 +gunicorn; platform_system == "Linux" diff --git a/static/DracoBaseline.Cab b/static/DracoBaseline.Cab new file mode 100644 index 0000000..2fda275 Binary files /dev/null and b/static/DracoBaseline.Cab differ diff --git a/static/KeelBaseline.Cab b/static/KeelBaseline.Cab new file mode 100644 index 0000000..5c6643b Binary files /dev/null and b/static/KeelBaseline.Cab differ diff --git a/static/PavoBaseline.Cab b/static/PavoBaseline.Cab new file mode 100644 index 0000000..54b3b59 Binary files /dev/null and b/static/PavoBaseline.Cab differ diff --git a/static/ScorpiusBaseline.Cab b/static/ScorpiusBaseline.Cab new file mode 100644 index 0000000..c17776e Binary files /dev/null and b/static/ScorpiusBaseline.Cab differ diff --git a/static/firmware/FirmwareUpdate.xml b/static/firmware/FirmwareUpdate.xml new file mode 100644 index 0000000..55e7849 --- /dev/null +++ b/static/firmware/FirmwareUpdate.xml @@ -0,0 +1,244 @@ + + + + + + + Zune firmware version 3.3 + + + + + + + + + + Microprogramme Zune version 3.3 + + + + + + + + + + Versión 3.3 del firmware de Zune + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Zune firmware version 3.3 + + + + + + + + + + Microprogramme Zune version 3.3 + + + + + + + + + + Versión 3.3 del firmware de Zune + + + + + + + + + + + + + + + + + + + + + + + + + + + Zune firmware version 3.3 + + + + + + + + + + Microprogramme Zune version 3.3 + + + + + + + + + + Versión 3.3 del firmware de Zune + + + + + + + + + + + + + + + + + + + + + + + + + + + Zune firmware version 4.5 + + + + + + + + + + Microprogramme Zune version 4.5 + + + + + + + + + + Versión 4.5 del firmware de Zune + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/firmware/v4_5/zuneprod.xml b/static/firmware/v4_5/zuneprod.xml new file mode 100644 index 0000000..258a028 --- /dev/null +++ b/static/firmware/v4_5/zuneprod.xml @@ -0,0 +1,244 @@ + + + + + + + Zune firmware version 3.3 + + + + + + + + + + Microprogramme Zune version 3.3 + + + + + + + + + + Versión 3.3 del firmware de Zune + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Zune firmware version 3.3 + + + + + + + + + + Microprogramme Zune version 3.3 + + + + + + + + + + Versión 3.3 del firmware de Zune + + + + + + + + + + + + + + + + + + + + + + + + + + + Zune firmware version 3.3 + + + + + + + + + + Microprogramme Zune version 3.3 + + + + + + + + + + Versión 3.3 del firmware de Zune + + + + + + + + + + + + + + + + + + + + + + + + + + + Zune firmware version 4.5 + + + + + + + + + + Microprogramme Zune version 4.5 + + + + + + + + + + Versión 4.5 del firmware de Zune + + + + + + + + + + + + + + + + + + + + + + +