Open therealzanfar opened 8 months ago
Yes thanks for the suggestion and opening an issue. This has been something on the back of my mind since the implementation of this path matching. Happy to accept an PR for this, I have some changes left locally to setup a testsuite for the script. I will try to find some time to complete that work, that will make it easier for me to verify changes.
Nice to know that the script has helped you to move :)
I will try to put together a formal pull request, but in the meantime, here is the base issue it would solve.
If your media filenames are the same, but you've mounted your media in a different location, then the absolute paths will differ, and this script will fail for all items.
For example, my Plex instance has my media mounted at
/media
, while Jellyfin meets my newer standards and has it mounted at/mnt/media
.Ideally, this would be fixed with a command-line argument that could specify pairs of translations, e.g.,
--translate src:dst
or, in my case, `--translate "/media:/mnt/media."In the meantime, here are the modifications I made to the script to do exactly the above, which users can implement or form the basis for that CLI feature.