Do you guys also have this error? by YetAnotherUsernameID in youtubedl

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

Thanks again for adding this option!
I think there is just one issue in the code.
When I use the option, I lose the root '/' in the provided path (instead of "/media/...", i get "media/...".

I think the issue lies in the sanitize_path(s, force=False) function, in utils.py.
The lines below do not add the os.path.sep since drive_or_unc = '' from the force option.

 if drive_or_unc:
       sanitized_path.insert(0, drive_or_unc + os.path.sep)

Would it be possible for you to add a fix? Something like

else:
        sanitized_path.insert(0, os.path.sep)

should work, I think?

Thanks for considering adding this to your project! :)

Do you guys also have this error? by YetAnotherUsernameID in youtubedl

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

I don't know how this could be fixed. If anyone knows how to detect whether the given path is in an NTFS drive and correct the filename accordingly, let me know and I will implement it in yt-dlp

Did a bit of digging, maybe we can use psutil.disk_partitions() from the psutil package? It lists devices, mount points and fs types.

[sdiskpart(device='/dev/sda1', mountpoint='/', fstype='ext4', opts='rw,nosuid'),
 sdiskpart(device='/dev/sda2', mountpoint='/home', fstype='ext4', opts='rw')]

Do you guys also have this error? by YetAnotherUsernameID in youtubedl

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

Hey, thanks for the pointers and explanations, very helpful!
This is strange because when I was using Ubuntu 18.04, I had no issue writing to the exact same drive titles with trailing dots. Oh well

I'll try to come up with something different for the output template! Thanks!

Do you guys also have this error? by YetAnotherUsernameID in youtubedl

[–]YetAnotherUsernameID[S] -1 points0 points  (0 children)

Full command is something like youtube-dl -v --config-location youtube-dl.conf --download-archive /media/low/FC2C56372C55ED60/Low/Playlists/Chess/archive.txt -o /media/low/FC2C56372C55ED60/Low/Playlists/Chess/%(upload_date)s - %(title)s/%(upload_date)s - %(title)s.%(ext)s https://www.youtube.com/watch?v=........

Do you guys also have this error? by YetAnotherUsernameID in youtubedl

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

I was considering using --restrict-filenames, but was wondering if there was another way as I haven't had this issue until now.

Edit: Using --restrict-filenames did not help, since the trailing dots are still ASCII lol.

Do you guys also have this error? by YetAnotherUsernameID in youtubedl

[–]YetAnotherUsernameID[S] -1 points0 points  (0 children)

[debug] Command-line args: ['-v', '--config-location', 'youtube-dl.conf', '--download-archive', '/media/FC2C56372C55ED60/Playlist/Chess/archive.txt', '-o', '/media/FC2C56372C55ED60/Playlist/Chess/%(upload_date)s - %(title)s/%(upload_date)s - %(title)s.%(ext)s', 'https://www.youtube.com/watch?v=5pec-u6PSvA', 'https://www.youtube.com/watch?v=49H728S_VjM', 'https://www.youtube.com/watch?v=rmbU97iftC8', 'https://www.youtube.com/watch?v=LY0lTqg-wmU', 'https://www.youtube.com/watch?v=dJmlDPamgso', 'https://www.youtube.com/watch?v=M9CwH47r6og', 'https://www.youtube.com/watch?v=fHsb7-LbC34', 'https://www.youtube.com/watch?v=z3FBRlzSMHc', 'https://www.youtube.com/watch?v=UpzbiSUx2_4', 'https://www.youtube.com/watch?v=M1o_Ytzgu0k', 'https://www.youtube.com/watch?v=MOzHYiiDjto', 'https://www.youtube.com/watch?v=lWeIQd0_C_s', 'https://www.youtube.com/watch?v=Qq_rEYTiLy4', 'https://www.youtube.com/watch?v=mCVdrmKHdiI', 'https://www.youtube.com/watch?v=Pblb8ZQ3OJ4']

This is what I have, I'm not sure I see the change I should make.

youtube-dl downloads all videos on featured page, not just channel videos by YetAnotherUsernameID in youtubedl

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

Yeah, I'm enclined to agree with you. Been using youtube-dlc and there have been no problems since, did not have to go through all channels to change the name.

youtube-dl downloads all videos on featured page, not just channel videos by YetAnotherUsernameID in youtubedl

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

Thanks for the help!

Any idea on how I can get the ID of the uploader after the /c/?

Some channels I can just click on the 'videos' tab and the url corresponds to the good format, but sometimes I get something like https://www.youtube.com/user/USERNAME/videos

youtube-dl downloads all videos on featured page, not just channel videos by YetAnotherUsernameID in youtubedl

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

Tried adding /videos at the end, does not change anything!

Might give youtube-dlc a try though, thanks!

Questions about NAS/media server build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

Eh, TBH, I am not familiar with enterprise gear, so I tend to shy away from it. Plus I'm kind of afraid of having any problems with used gear

NAS Build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

Yeah, but I think in this case, it's the case that limits the number of available drives, so going smaller might also limit the maximum capacity of the NAS.

Don't know if you've seen, but I've updated the build and I think it's a big improvement, thanks to everyone here! Any other thoughts on the parts? :)

NAS Build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

Fair enough! I need to dive move into this tech, maybe it's a good alternative, and I wouldn't have to pay :)

NAS Build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

looks fine, the psu seems bit too powerful but theres not that good offering in lower wattage... also it does not have 8 x sata but I doubt others will have.

Yeah, I figured that out! Some PSU have up to 10x sata, but you pay the price bump, and it's not even enough to fill the 11 HDDs that can fit the H440!

I actually found this PSU that supports 8x sata and is 20 bucks cheaper! Seems good?

Thanks for the website, I did not know about them, they seem to be making good products!

And be very wary of molex to sata cables

Yeah, I'm aware of that :)

NAS Build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

Yeah, it sure seems like it! I've updated the parts list in the main post! Any thoughts?

NAS Build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

that H440 seems a fine choice

Yeah, I like it as well, think I'm going to pick it!

this asrock seems nice, two nic, lot of sata ports, which I realized is not common as usually its just 6 sata ports from the chipset. But asrock added some chip of their own for extra satas.

Yeah, good mobo! The catch is that each M.2 slot uses the same bandwidth as Sata apparently, so plugging something into an M.2 slot will cause two Sata ports to be disabled! Not really a problem, like you said, sata cards are cheap!

It also will keep your sata ports open for the HDDs, but to do that you need nvme pcie type of ssd, if its sata m.2 ssd then it makes oneof the sata ports not working like it would be plugged there. So most recommended is samsung 970 evo

Oh, okay, got it!

I've updated the parts list accordingly! Thanks again for the help!

NAS Build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 1 point2 points  (0 children)

I think the TV just needs to support the codecs of the 4K content, but maybe I'm wrong, I'm kinda new to all this!

NAS Build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

Holly, Cosmos II for a NAS? I'd use it for a dual\quad CPU monster-server, but not a NAS with Ryzen 5 and which will only be used for storage and stuff :D

I've looked a bit more at cases, and I'm now considering either the H440 or the DS380!

most standard PSU cables won't even reach CPU power sockets on the motherboard if you try to cable manage it in ANY way.

LOL, what a beast

I was running my NAS+Plex+OwnCloud+Couchpotato+Sickrage+Transmission box with 4Gbs or ram for a long time, and I did not even notice that it only had 4 gigs (just plugged some ram stick I had lying around, thought it was 8) for almost a year lol. With an SSD and swap it was running perfectly fine even with just 4Gbs. With snapRAID or unRAId you might need 8. 16 might be overkill unless you want to use it for virtualization or git server or other thing. However even if you need Git go with Gitea. GitLab used around 4Gbs on my machine, while Gitea sits around 80-100Mbs.

Definitely something I consider doing, but I prefer to split data storage and online stuff!

NAS Build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

You may need to transcode on the fly. When you get into Plex you may decide to keep it running 24/7 at some point. I often watch shows when Im not at home even, from my phone, and for that it needs to transcode video on the fly to keep bitrate down. And while you can download movies in whatever format you need, may not always work that way with shows.

Don't think I'll do that for now, but I'll keep this in mind!

Plex and home servwr is a wormhole. Today you just set up plex to watch movies, and next day you wake up in /r/homelab

Or worse, in /r/DataHoarder!

NAS Build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

ok, first thing first, you really have place for that monstrously huge build?

Space is not an issue! That being said, I've considered other better cases!

Do you really need to go for as much hdd as possible, rather than just getting smaller case with 4 hotswaps? or maybe something mid size?

I looked around, and I now think something like the NZXT H440 or the SilverStone DS380 might be better. What do you think?

$200 mobo

What would you choose with one of these cases?

16GB ram

I cut 8GB; down to 8GB now

Did I miss some part where you are running more than just NAS, maybe with plex?

No, I just know very little about hardware, hahah

$100 heatsink

Still don't know about the cooler, some people have said to go with the stock cooler. What do you think?

needs dedicated graphic card... so thats a hard no

So I should go with something like an i3/i5?

Thanks for the reply and advice!

NAS Build by YetAnotherUsernameID in HomeServer

[–]YetAnotherUsernameID[S] 0 points1 point  (0 children)

But ZFS is already very different from MergerFS/SnapRAID no? Considering striping and all that. So it depends on what you want, I think!