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

Corrects missing images #25

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

Conversation

centrual
Copy link
Contributor

(Fixed) Some paths have \r at the end of the path on Windows 10 environment.
(Fixed) Some image paths not being found. #21

(Fixed) Some paths have \r at the end of the path on Windows 10 environment.
(Fixed) Some image paths not being found. Step7750#21
@@ -795,6 +806,10 @@ class CSGOCdn extends EventEmitter {
}
else {
// Other in items
if( marketHashName.indexOf('(Holo-Foil)') > -1 ) {
Copy link
Owner

Choose a reason for hiding this comment

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

AFAIK, there was an issue earlier where these were misspellings my Valve. They don't have proper market pages, right? Seems hacky to do this conversion if Valve isn't bothered to do it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is a hacky way to do it and not looking the right way. But people who are using this package want to see the correct results. Perhaps we can make hooks or interceptors where users can add their own hacky codes. What do you think about it?

const path = this.vpkFiles.find((t) => t.endsWith(fileName));

if (path) return this.getPathURL(path);
if (path) return this.getPathURL(path).replace('\r', '');
Copy link
Owner

Choose a reason for hiding this comment

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

Is eliminating the carriage return absolutely necessary? If it is, then it should be universally stripped during the parsing of the game files instead of scattered everywhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's necessary. Because URLs become https://steamcommunity.com/.../abcd.png\r or something like that.

You are right. I will change the replacer positions 👍

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