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

Parse background and video events #122

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

OliBomby
Copy link
Contributor

Every good beatmap at least has a background

@tybug
Copy link
Collaborator

tybug commented Sep 14, 2024

Thanks!

@OliBomby would you be interested in the commit bit on slider? I have less time to maintain it that I used to and you've sent good PRs over the years.

Comment on lines 2578 to 2586
background = None
video = None
if 'Events' in groups:
for line in groups['Events']:
if line.startswith('0'):
background = line.split('\"')[1]
elif line.startswith('Video') or line.startswith('1'):
video = line.split('\"')[1]

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can there ever be more than one background or video? I supported multiple in #69. I only ask because it matters whether we expose .background or .backgrounds to the user.

Copy link
Contributor Author

@OliBomby OliBomby Sep 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some tests in osu! stable and it seems to only load the first background in the file and for videos im not sure, because it seems to support multiple videos but the second video wouldn't play for me, at most showing a black screen or a single frame.

I have a vague memory of some issue thread that wanted to fix multiple videos, but I can't find it.

@OliBomby
Copy link
Contributor Author

would you be interested in the commit bit on slider? I have less time to maintain it that I used to and you've sent good PRs over the years.

I use slider for my projects so it would be nice to have the ability to quickly make changes and push out new versions on pip. However i don't plan on actively closing issues beyond the ones I encounter in my projects.

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

Successfully merging this pull request may close these issues.

2 participants