Skip to content

Centered Splash Arts corrupted under 13.4.1 #167

@Cinzya

Description

@Cinzya

Data Dragon just released a new version, 13.4.1, which leads the backend to download the assets for this new patch.
However, CommunityDragon hasn't come out with a package for 13.4 as of the time of writing, which leads to a dead end, when trying to access material under this version.

image

This affects the centered splash arts, as they are being accessed under the latest major version, which are corrupted when they are downloaded. When inspecting the properties you can see that the centered splash arts are only a few bytes large and reveal following when opened in an text editor:

<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
<script defer src="https://static.cloudflareinsights.com/beacon.min.js/vaafb692b2aea4879b33c060e79fe94621666317369993" integrity="sha512-0ahDYl866UMhKuYcW078ScMalXqtFJggm7TmlUtp0UlD4eQk0Ixfnm5ykXKvGJNFjLMoortdseTfsRT8oCfgGA==" data-cf-beacon='{"rayId":"79dcdb576e33b742","token":"1d93d63ea58c4eb382141ef0047426c3","version":"2023.2.0","si":100}' crossorigin="anonymous"></script>
</body>
</html>

image

Changing the source code, to retrieve data from string latest instead of the latest Major/Minor Version would fix this issue and avoid conflicts like this in the future.

champion.splashCenteredImg = `https://raw.communitydragon.org/${this.state.getMajorMinorVersion()}/plugins/rcp-be-lol-game-data/global/default/v1/champion-splashes/${champion.key}/${champion.key}000.jpg`;

I'd love to do a pull request, but I think that might be a bit overkill for a one-liner fix :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions