meeb / tubesync

Syncs YouTube channels and playlists to a locally hosted media server
GNU Affero General Public License v3.0
1.99k stars 130 forks source link

Files aren't being named properly #20

Closed DutchyOven closed 3 years ago

DutchyOven commented 3 years ago

Below is the list and how its setup. I'm getting the first file named properly but files after that are weird symbols and letters after that.

Pull Up - 2020-03-22 - Pull Up - The Best Of [1080p-avc1-mp4a],mkv
PENT0U~L.mkv
PAX7MC~I.mkv
Type | YouTube playlist
-- | --
Name | Pull Up
Media items | 0
Key | PLhKmHfWT5YmKh7oyYbW-tyDwS3_23Kw64
Directory | /downloads/Pull Up/
Media format | Pull Up - {yyyy_mm_dd} - {title_full} [{format}].{ext}
Example filename | Pull Up - 2020-12-19 - Some Media Title Name [1080p-avc1-mp4a-60fps-hdr].mkv
Index schedule | Every 6 hours
Created | 2020-12-19 10:57:56
Last crawl | Never
Source resolution | 1080p (Full HD)
Source video codec | AVC1 (H.264)
Source audio codec | MP4A
Prefer 60FPS? |  
Prefer HDR? |  
Output extension | mkv
Fallback | Get next best resolution but at least HD
Copy thumbnails? |  
Write NFO? |  
Delete old media | No, keep forever
meeb commented 3 years ago

What file system are you saving these downloads to? Is it Unraid or on a Windows system or something like that?

DutchyOven commented 3 years ago

What file system are you saving these downloads to? Is it Unraid or on a Windows system or something like that?

Unraid, sorry about that I’m saving it to an xfs file system in Unraid.

meeb commented 3 years ago

I believe this is the default behaviour in youtube-dl when it encounters a filename which is unsupported by the filesystem it's trying to write to. For example, writing some UTF8 filename chars to an Unraid volume. It just picks a random name so the file isn't lost. I don't think this is anything TubeSync itself is doing, but if your videos have extended UTF8 chars in their titles try using {title} not {title_full} and see if that works. {title} is "slugified" and has extended chars auto-removed for this exact reason.

DutchyOven commented 3 years ago

I took your advice then I randomly went into unraids filesytem to delete a file. The files are fine on unraid its only when I view them through a windows SMB share they look bad. Maybe its a title length thing?

63F05B11-2ECA-4B3E-8941-EF0AB5AB8E47

DutchyOven commented 3 years ago

Im going to close this since its not tubesync. Thanks for the quick response!

meeb commented 3 years ago

Yes, could well be. SMB does have shorter file length limits than the bare filesystems. Cheers.

DutchyOven commented 3 years ago

Yes, could well be. SMB does have shorter file length limits than the bare filesystems. Cheers.

Side note in case anyone brings this up, your method words fine with SMB. Title shows up like normal.