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

{resolution} results in the output of 'premium' when TubeSync downloads a Premium source. #499

Open AshleyAshes opened 6 months ago

AshleyAshes commented 6 months ago

I didn't even realize that TubeSync could download the 'Premium' flagged encodes, but nifty. That said it's not giving me a resolution from the {resolution}.

I'm currently using this formatting:

{source_full} {yyyy_mm_dd} {title_full} [{resolution} WEB-DL].{ext}

And now have some files coming in like this:

Nostalgia Nerd 2021-11-17 This Mysterious Computer Could Prove Time Travel Exists Nostalgia Nerd [premium WEB-DL].mkv

'Premium' doesn't really tell me what resolution the file is, since, AFAIK, Premium could be any number of resolutions, depending on what the highest uploaded resolution is.

AshleyAshes commented 6 months ago

Oh, apparently ditto for some files reporting their framerate despite never using the {fps} tag in my filenames. Seems to only be happening if the framerate is 50fps.

Example:

Nostalgia Nerd 2020-02-12 Exploring a LOAD of Dutch Computers! Nostalgia Nerd [1080p50 WEB-DL].mkv

meeb commented 6 months ago

Thanks, there's obviously been some changes on the YouTube side that I need to update in tubesync. tubesync itself doesn't "support" premium streams, it's really just a web UI wrapper around yt-dlp which does all of the heavy lifting so it'll support whatever yt-dlp upstream supports. It has some logic in it for the file naming though which is probably where this issue is hiding. I don't have a YouTube account myself so issues with premium flagged formats generally require people like you to report them here as I can't stumble over and see them myself.

I'll look into this before the next release.

AshleyAshes commented 6 months ago

Yeah, so about that 'YouTube Account' thing. I've done nothing to enter my YT account info into TubeSync and I don't pay for YT premium anyway. I don't know how it downloaded something 'Premium' if it really did,

meeb commented 6 months ago

Ah fair enough. It's likely that YouTube are occasionally presenting "premium" streams for non-premium and not authenticated users then, or at least offering them as formats which you can't access. Either way it's a change at YouTube which will need investigation and updating in tubesync to account for it. Cheers for the details.