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

streamlink: trim custom paths #4834

Merged

Conversation

brian6932
Copy link
Contributor

Windows paths can't have trailing whitespace, currently having trailing whitespace in the path will result in the path not being found

@brian6932 brian6932 force-pushed the fix/trim-streamlink-custom-path-windows branch from e88242f to 967df2e Compare September 22, 2023 07:41
@brian6932 brian6932 force-pushed the fix/trim-streamlink-custom-path-windows branch from 967df2e to 127a472 Compare September 22, 2023 07:42
@pajlada
Copy link
Member

pajlada commented Sep 22, 2023

I don't think there would be any issue with trimming this path for other platforms as well, can anyone else come up with any scenarios where that would be unwanted?

@iProdigy
Copy link
Contributor

Technically other platforms do allow whitespace at the end of folder names

@brian6932
Copy link
Contributor Author

brian6932 commented Sep 22, 2023

Technically other platforms do allow whitespace at the end of folder names

Yea this is why I didn't want to do that, just in the case that someone had such an edge case.
Unix platforms allow trailing and leading whitespace in paths.

@pajlada pajlada changed the title streamlink: trim custom Windows paths streamlink: trim custom paths Sep 23, 2023
@pajlada pajlada enabled auto-merge (squash) September 23, 2023 07:41
@pajlada pajlada merged commit c71e912 into Chatterino:master Sep 23, 2023
17 checks passed
Nerixyz pushed a commit to SevenTV/chatterino7 that referenced this pull request Sep 28, 2023
this makes sure no spaces are accidentally left in the custom path

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
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.

4 participants