christopher-dG / osu-bot

/r/osugame's benevolent robot overlord | due for another rewrite
https://reddit.com/u/osu-bot
MIT License
23 stars 0 forks source link

Random oppai failures #2

Closed christopher-dG closed 6 years ago

christopher-dG commented 6 years ago

Some calls to oppai fail with "invalid .osu file", this map in particular.

The same command from a regular shell works though, so it might be something to do with subprocess.

christopher-dG commented 6 years ago

Seems that the response text contains some random junk, here's the first line of a file downloaded with requests from Python:

osu file format v14

And with curl:

osu file format v14