tubesync icon indicating copy to clipboard operation
tubesync copied to clipboard

TubeSync metada to Jellyfin

Open marciglesias17 opened this issue 2 years ago • 12 comments

I am trying to get TubeSync to download full playlists only the audio and Jellyfin reads the NFO, but it is not doing it, it seems the NFO format is not the same, any idea how I can do this?

marciglesias17 avatar May 15 '23 14:05 marciglesias17

The NFO files tubesync writes are compatible with Kodi. https://jellyfin.org/docs/general/server/metadata/nfo/ seems to the the reference for what Jellyfin supports, I expect the file that tubesync writes needs tweaking.

meeb avatar May 15 '23 15:05 meeb

Is there any way to make it compatible with Jellyfin's NFO?

marciglesias17 avatar May 15 '23 15:05 marciglesias17

Manually? Sure just edit the NFO in a text editor. For automatic integration it looks like I need to tweak the NFO format.

meeb avatar May 15 '23 15:05 meeb

Ok, I will wait for your update, do you plan to do it soon?

marciglesias17 avatar May 15 '23 17:05 marciglesias17

Honestly no idea, I need to review what needs to be done properly first. If it's a quick patch with just some different file names, probably. If it's more work it'll go onto the wishlist.

meeb avatar May 15 '23 17:05 meeb

Okay, keep me informed. Thanks!

marciglesias17 avatar May 15 '23 17:05 marciglesias17

Happy to accept pull requests if you want something in the project.

meeb avatar May 15 '23 17:05 meeb

As an additional datapoint, I tested tubesync video NFO files with Emby, a sibling project to Jellyfin, and they worked fine. I compared the files, and, besides the element order, the only differences I saw were the Emby NFO had:

  • standalone="yes" in the doctype tag (i.e., <?xml version="1.0" encoding="utf-8" standalone="yes"?>)
  • The contents of the <plot> tag wrapped with a CDATA section (i.e., <plot><![CDATA[The plot goes here]]></plot>

breakid avatar Nov 22 '23 00:11 breakid

I don't think either of those differences would affect the NFO file from being read unless Jellyfin is extremely picky. I'll add standalone="yes" to the doctype, it can't hurt. I don't think that'll fix this for you though.

meeb avatar Nov 23 '23 08:11 meeb

Hi ! I just set up Tube Sync to try it with Jellyfin and it's f*cking great ! The only change I could suggest would be to add the Season and Episode tags in the NFO:

   <showtitle>Video Name</showtitle>
   <season>{yyyy}</season>
   <episode>{X}</episode>

With {yyyy} being the year of publication and {X} being 1 for the first video of that year and then counting in order of publication

This shouldn't break Emby, these tags exist in it: https://kodi.wiki/view/NFO_files/TV_shows image

InterN0te avatar Dec 09 '23 00:12 InterN0te

With this small modification in the NFO and Jellyfin which scans the download directory (the library is a "TV Series"), Jellyfin correctly displays the channels and is able to sort videos : image image image

InterN0te avatar Dec 09 '23 00:12 InterN0te

Thanks for the testing and feedback! The year should be easy to add, an episode counter would be a little more work. Good to know what needs adding to fix NFOs for Jellyfin though.

meeb avatar Dec 09 '23 03:12 meeb