-
Notifications
You must be signed in to change notification settings - Fork 19
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
base: master
Are you sure you want to change the base?
Conversation
(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 ) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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', ''); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 👍
(Fixed) Some paths have \r at the end of the path on Windows 10 environment.
(Fixed) Some image paths not being found. #21