ankenyr / jellyfin-youtube-metadata-plugin

Youtube Metadata Plugin for Jellyfin
GNU Affero General Public License v3.0
481 stars 31 forks source link

Release date and other fields not being read from metadata #93

Open HStep20 opened 8 months ago

HStep20 commented 8 months ago

The main way that I use ytdl-sub to get videos into JF is to download playlists of a channel as seasons of a show. Usually, this works okay since there is often some kind of title which indicates the order of an episode within a playlist (i.e. "How To X 1", "How To X 2") but I noticed recently that video titles that don't follow that structure instead show up in the season in 'alphabetical order'.

image Note Episode 2, then 5, because the title comes first alphabetically

My files are named properly with Channel - Date - Title - [id], and should theoretically be displaying in the order that they are shown in the file system image

In testing, setting the 'release date' let you order the files in a very straightforward way, since the 'season episodes' were reordered based on that field. Since ytdlp json files include a upload_date field, this quirk could be easily resolved by setting the 'Release Date' metadata field of each episode with that stored in the local data (or however it uses the ID to fetch data from youtube).

HStep20 commented 8 months ago

And actually, now that I look at the code here, it seems like it should be doing that already. None of my episodes are having the 'release date' set from the local metadata though.

Without anything in that catch block, it's hard to say why it isn't being set, but upon closer inspection, none of those fields (sort tile, year, etc) are being set in my episode items within JF

TheSpyder commented 6 months ago

This seems to be a problem for multiple fields at the moment. I'm not getting overview or item title updates either.

flloschy commented 1 week ago

Having the same issue, i also noticed that when jellyfin create the nfo files it adds a field youtubemetadataid. When I set that manually for a tvshow.nfo it doesnt load the channels profile picture anymore