Jellyfin Forum
Change subtitle download location - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Change subtitle download location (/t-change-subtitle-download-location)



Change subtitle download location - kzhuo - 2024-03-25

I am trying to figure out how to change subtitle download location. My media disks' mount point is /home

I checked the "Save subtitles into media folders" option,  however, it is being saved in the metadata folder instead.


RE: Change subtitle download location - TheDreadPirate - 2024-03-25

Does Jellyfin have write permissions to your home directory? Can you share your jellyfin logs with us?


RE: Change subtitle download location - kzhuo - 2024-03-25

(2024-03-25, 03:28 PM)TheDreadPirate Wrote: Does Jellyfin have write permissions to your home directory?  Can you share your jellyfin logs with us?


Using 'nano some_text_file' to test write permison of jellyfin on /home, it does have permission.

The attachment is the log, it seems the subtitles are always being saved to 2 locations(one being  where my media file is), but nowhere to be found in the media folder. Maybe the subtitle files are being moved?


.txt   log.txt (Size: 2 bytes / Downloads: 17)

[2024-03-25 04:03:51.249 -07:00] [INF] Saving subtitles to "/home/anime/SPY x FAMILY/Season 01/SPY x FAMILY S01E06.chi.srt"
[2024-03-25 04:03:51.249 -07:00] [INF] Saving subtitles to "/home/metadata/library/bd/bdffef873318c03b3dee21c6527bdee0/SPY x FAMILY S01E06.chi.srt"



RE: Change subtitle download location - TheDreadPirate - 2024-03-25

Are you testing write permission as the jellyfin user?


RE: Change subtitle download location - kzhuo - 2024-03-26

(2024-03-25, 05:03 PM)TheDreadPirate Wrote: Are you testing write permission as the jellyfin user?

Solved, it is write permission issue. Thank you.


RE: Change subtitle download location - Jiří Fiala - 2024-07-17

Can you please help me with this? I run Jellyfin in a Proxmox LXC and media is on a NAS mounted inside this LXC. It's too complicated for me to untangle. I have no idea what the current user is - I manage the JF LXC as root but that's probably not the same user Jellyfin uses... I really don't know.

Subs aren't being downloaded to the media folders despite the option being enabled and I need to fix that. Thanks!


RE: Change subtitle download location - TheDreadPirate - 2024-07-17

Make sure Jellyfin has write permissions. I forgot that my library folders are read-only in my docker settings so it ended up saving them to the Jellyfin data directory after failing to write to the media folder.

Code:
[2024-07-17 21:42:45.216 +00:00] [INF] [304] MediaBrowser.Providers.Subtitles.SubtitleManager: Saving subtitles to "/media/storage2/testShows/King of the Hill/Season 1/s01e01.eng.srt"
[2024-07-17 21:42:45.216 +00:00] [INF] [304] MediaBrowser.Providers.Subtitles.SubtitleManager: Saving subtitles to "/config/metadata/library/d4/d41aa8c2d39dbe88bb086b54d1e2c840/s01e01.eng.srt"

Now I'm out of subtitle downloads for the day so I have to wait until tomorrow to try again. Slightly-frowning-face

I reconfigured my docker so it can write to my test library. I will try again tomorrow on my test setup and report back if it actually saved to the media directories or not.

For your problem, you have to make sure that the NAS mount is allowing writes.

In the LXC, what is the output of "cat /proc/mounts"?


RE: Change subtitle download location - Jiří Fiala - 2024-07-18

It's bit too complex for me to untangle. I don't know how to check the permissions.
- media is on NAS
- that folder is mounted into Proxmox host with "//192.168.0.216/Public /home/stooovie/Public cifs auto,rw,user,noperm,username=MYUSERNAME>" in fstab and then added to the Jellyfin LXC (container) as a Mount point via proxmox GUI
- the JF LXC was created by Tteck's script
- I tried doing "su jellyfin" inside the LXC shell, which does absolutely nothing, no message at all, and logged-in user remains "root"

cat /etc/passwd DOES reveal a jellyfin user though:
Code:
jellyfin:x:107:115:Jellyfin default user,,,:/var/lib/jellyfin:/bin/false

Output of cat /proc/mounts is:

Code:
/dev/mapper/storage-vm--110--disk--1 / ext4 rw,relatime,stripe=16 0 0
//192.168.0.216/Public /media/Public cifs rw,relatime,vers=3.1.1,cache=strict,username=stooovie,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.0.216,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,retrans=1,echo_interval=60,actimeo=1,closetimeo=1 0 0
none /dev tmpfs rw,relatime,size=492k,mode=755,inode64 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
proc /proc/sys/net proc rw,nosuid,nodev,noexec,relatime 0 0
proc /proc/sys proc ro,relatime 0 0
proc /proc/sysrq-trigger proc ro,relatime 0 0
sysfs /sys sysfs ro,nosuid,nodev,noexec,relatime 0 0
sysfs /sys/devices/virtual/net sysfs rw,nosuid,nodev,noexec,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
udev /dev/dri/renderD128 devtmpfs rw,nosuid,relatime,size=8112876k,nr_inodes=2028219,mode=755,inode64 0 0
udev /dev/net/tun devtmpfs rw,nosuid,relatime,size=8112876k,nr_inodes=2028219,mode=755,inode64 0 0
udev /dev/net/tun devtmpfs rw,nosuid,relatime,size=8112876k,nr_inodes=2028219,mode=755,inode64 0 0
none /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime 0 0
lxcfs /proc/cpuinfo fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
lxcfs /proc/diskstats fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
lxcfs /proc/loadavg fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
lxcfs /proc/meminfo fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
lxcfs /proc/slabinfo fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
lxcfs /proc/stat fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
lxcfs /proc/swaps fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
lxcfs /proc/uptime fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
lxcfs /sys/devices/system/cpu fuse.lxcfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1026 0 0
devpts /dev/ptmx devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1026 0 0
devpts /dev/console devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1026 0 0
devpts /dev/tty1 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1026 0 0
devpts /dev/tty2 devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1026 0 0
none /proc/sys/kernel/random/boot_id tmpfs ro,nosuid,nodev,noexec,relatime,size=492k,mode=755,inode64 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,inode64 0 0
tmpfs /run tmpfs rw,nosuid,nodev,size=3260248k,nr_inodes=819200,mode=755,inode64 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k,inode64 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0

Thanks a lot for your help!


RE: Change subtitle download location - Jiří Fiala - 2024-07-18

Ha! I was able to login as jellyfin by doing usermod -s /bin/bash jellyfin, and this user indeed doesn't have write perms. I'm on the right track, thanks!


RE: Change subtitle download location - TheDreadPirate - 2024-07-18

Instead of mounting the share in Proxmox then passing it into the LXC, you could just mount it directly in the LXC in the same way you did in Proxmox to remove one layer of things we need to work through.

On the NAS, I'm assuming either a QNAP or Synology NAS, what permissions did you set in the UI? Can you show that?

I missed your update. I don't recommend giving the jellyfin user a permanent bash shell the way you did. You can give the jellyfin a temp bash shell with "su -s /bin/bash jellyfin".