Closed huuub closed 5 years ago
Snaps has limited access to filesystem. Subsync could access only user home directory and mounted media. If your files are somewhere else, it may not be visible to subsync. Please check if you could navigate to your file via GUI to be sure. You could override this behaviour if you trust me enough using classic confinement.
hmmm that did not help : sudo snap install subsync --classic Warning: flag --classic ignored for strictly confined snap subsync
subsync 0.9 from Michał Szymaniak (sc0typl) installed
I installed with dev-mode... That worked but now I get: subsync \
--sub='/media/data/complete/tvsonarr/Game of Thrones/Season 8/t.srt' \ --sub-stream=1 \ --sub-lang=nl \ --ref='/media/data/complete/tvsonarr/Game of Thrones/Season 8/t.mkv' \ --ref-stream=2 \ --ref-lang=en \ --out="/media/data/complete/tvsonarr/Game of Thrones/Season 8/out.srt" \ --auto=done Unable to access the X Display, is $DISPLAY set properly?
Are you trying to run it without graphical desktop environment? It won't work that way, even when run from terminal it still tries to show GUI.
Hmmm there is even x11 interface on docker. But a pity. Was really looking forward to integrate it with bazarr. It would be really great if this would run without and we are able to use it in bulk to scan folders. Any plans on making this? Anayway really great project.
I am working on command line version already, I think it will be included in the next release. Not sure what bazarr is (nor sonarr or radarr which google is pointing me to), but I understand you need version of subsync to be called from terminal or some kind of script?
And I'm not sure why you can't use classic confinement, my knowledge of snaps is rather limited.
About your command line parameters - languages are selected with three letter codes. So you should use --ref-lang=eng and --sub-lang=dut (I think). I will describe command line arguments extensively when I'll have command line version ready.
Sounds great! I also don't know anything about snaps... I would prefer docker :)
I had this issue and after struggling a bit I ended up here on google. So for future reference I will add my solution below:
That's it.
removable-media is already listed in plugin section in snap.yaml, it should have access to /media without extra steps (and user home dir).
- issue "sudo snap connect subsync:removable-media", this will give subsync permissions to your removable storage (ie the folders in /media/).
Thank you! This fixed my issue as well. I didn't need step 1.
Can't get it to work. I tried using it with snapd error : subsync --sub="t.srt" --sub-stream=1 --sub-lang=nl --ref='./t.mkv' --ref-stream=1 --ref-lang=tm --out="out.srt" --auto=done --logfile log