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

how to put inside folder if the folder path contain space #5

Closed
kucingkembar opened this issue Jan 26, 2024 · 7 comments
Closed

how to put inside folder if the folder path contain space #5

kucingkembar opened this issue Jan 26, 2024 · 7 comments

Comments

@kucingkembar
Copy link

hi sorry for my bad english,
i have problem,
if i doing this:
downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o E:\TestUrl\Test.mp4 --tempdir E:\TestUrl\
it work,
but if:
downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o E:\Test Url\Test.mp4 --tempdir E:\Test Url\
it not work,
i tried to add " like this:
downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o "E:\Test Url\Test.mp4" --tempdir "E:\Test Url\"
it still not work, please help

@josephcappadona
Copy link
Owner

I'm not an expert on Windows, but try

downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o E:\"Test Url"\Test.mp4 --tempdir E:\"Test Url"\

Does that work?

@kucingkembar
Copy link
Author

m3u8downloader: error: unrecognized arguments: Url"\Test.mp4 --tempdir E:"Test Url"\

@josephcappadona
Copy link
Owner

ChatGPT suggests this:

Try escaping the spaces in your file path using the caret symbol ^ in Windows command line. Your command would look like this:

downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o E:\Test^ Url\Test.mp4 --tempdir E:\Test^ Url\

Alternatively, replace the spaces with %20, which is the URL encoding for a space character:

downloadm3u8 https://example.com/123-456-abc/video.m3u8 -o E:\Test%20Url\Test.mp4 --tempdir E:\Test%20Url\

@kucingkembar
Copy link
Author

the ^ do not work,
but the %20 working,
i just need add .replace(" ","%20") in the path,
thank you mate

@kucingkembar
Copy link
Author

additional result :
the result folder from E:\Test%20Url\Test.mp4,
literally E:\Test%20Url\Test.mp4
not equal to E:\Test Url\Test.mp4

@kucingkembar
Copy link
Author

after i do some reserach, turn out, the problem in my side,
at --tempdir "E:\Test Url\", the Url\", or more correctly \" count as escape character,
so to make it work, you must type path without \" at the end line,
so it became like this --tempdir "E:\Test Url"
at this point, i am really sorry

@josephcappadona
Copy link
Owner

No worries at all, glad you got it figured out!

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

No branches or pull requests

2 participants