-
Notifications
You must be signed in to change notification settings - Fork 3
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
Question: Why "Creating directories."? #9
Comments
I can explain the weird names, by sending you this link: https://superuser.com/questions/458995/files-folders-get-weird-names-and-become-inaccessible-on-samba-share It's called file name mangling and it's an SMB issue. I've had the same issues on my end as well. I can't do anything about that, unfortunately. I don't understand why it would create a bunch of empty directories. It creates a folder dependent on your custom save expression, but it should only create that folder if there's going to be a clip saved in that folder as well. What is your custom save expression and what parameters did you input (streamer, start/end)? |
1b) The pattern I used is below. I just tried
So if necessary, as a last resort, one could use --restrict-filenames and --windows-filenames all the time no matter what. Thank you again for your responsiveness! |
@LuminairPrime I create the folders in C# not via yt-dlp. yt-dlp is ONLY used to save the files in the folders created by C#. The save expression you listed should create 1 folder (the broadcaster's name) and then 1 file per clip inside of that folder. Which other folders are created? Except those Samba errors. Unfortunately there's no way to write an absolute path save expression. It will always save in the same directory as the executable. Honestly it saves me a lot of trouble, and it's a lot more clean to be honest. |
@LuminairPrime Okay so that problem you see there is because of illegal characters. I've tried to fix illegal characters before, by replacing the forbidden characters with an empty space, but there are literally so many that it's impossible. Try creating a file that contains This problem does not exist on Linux though, where you don't have that many limitations. |
That's where the filename options with yt-dlp come in! Try one or both of these in your command calls to prevent yt-dlp from ever exposing weird characters: --restrict-filenames and --windows-filenames |
@LuminairPrime Okay I see the problem now. One of the clips had an Since I've created a new release - try it out! :) |
Ah ha, good detective work! The old "different slash for a different platform \ /" trick, which then compounded into also creating a folder, lol! 😄 Just tried the new version and got this error: |
@LuminairPrime That could be because of appsettings.json. I have changed "YouTubeDL" to "Downloader" as well as the new paths. You need to replace appsettings.json as well as the .exe file (or just copy the top part with the new yt-dlp settings). |
Good news! That seems to work! I'm going to run a full download and I'll update you after!! 🥳 |
Update: The download PARTIALLY worked. I'll explain it here unless you want me to start another issue ticket. Here's the output of what I ran with a different streamer:
That's it. But when I check the output folder, only 2446 clips were downloaded. So I suspect this "locale supported" message at the end hints that the download algorithm ended early for some reason. I checked the log, and the last result appears normal. Maybe the next clip after that had a weird name that caused an error? I don't know how to check for that. I'm gonna run some more tests... Edit: I ran a download test with the date range set to include the last clip from the above failed download, and hundreds on either side. This test completed successfully without that "locale supported" error. So I'm not sure what could have caused it to happen. PS: I see an off-by-one error in both the "Page 333/334" line, and in the final output. In this last test I ran, the output says +1 more clips than were actually downloaded. |
I just completed a full run of TwitchClipper. I see that the console output says "creating directories", and then a bunch of empty directories are created. Some are named after clips, many are duplicates with "#" at the end, and some are named nonsensically like "2BEO51~O". It looks like the ones ending with "#" have clip videos in them. But there are also many clip videos in the root directory.
Is any of this a bug? I expected to have just ONE directory with all clips.
I'm running the app over SMB on a NAS. Not sure if that would cause this. I can test locally next time.
The text was updated successfully, but these errors were encountered: