randomWalk 1 Posted November 8, 2023 Share Posted November 8, 2023 I want to use emby and keep my existing file structures as well, so I write a python script to monitor my videos and generate a virtual folder for emby using symbolic links. But only when i finished the script do I find that emby can not follow the links. And I searched and got the old topics as below. So 5 years had passed and we still do not support the symbolic links? Is it true? Do i miss anything? Link to comment Share on other sites More sharing options...
sargenthp 29 Posted November 8, 2023 Share Posted November 8, 2023 I have not tried. But if symbolic links do not work... You could do a bind mount to mount a directory to another directory. This is how I deal with Docker, since Docker doesn't like symbolic links. Link to comment Share on other sites More sharing options...
Luke 37196 Posted November 9, 2023 Share Posted November 9, 2023 Hi, there is still work to be done in the .net runtime before we can fully support them: https://github.com/dotnet/runtime/issues/53577 Link to comment Share on other sites More sharing options...
randomWalk 1 Posted November 9, 2023 Author Share Posted November 9, 2023 7 hours ago, sargenthp said: I have not tried. But if symbolic links do not work... You could do a bind mount to mount a directory to another directory. This is how I deal with Docker, since Docker doesn't like symbolic links. I will make hundreds of symbolic links for my video data... It's not acceptable to make that many of mount binds. Link to comment Share on other sites More sharing options...
randomWalk 1 Posted November 9, 2023 Author Share Posted November 9, 2023 19 minutes ago, Luke said: Hi, there is still work to be done in the .net runtime before we can fully support them: https://github.com/dotnet/runtime/issues/53577 Yes, this is a upstream bug, I have to make a hardlink version of solution, but that will involve much large number of file operations and is not very elegant 1 Link to comment Share on other sites More sharing options...
randomWalk 1 Posted November 20, 2023 Author Share Posted November 20, 2023 (edited) I found another way to keep my own folder name structure while make emby fetching the right metadata by just manually `Identify` for each item and input some ids (e.g., tvdbid, tmdbid) and search Do we have an API to trigger this `Identify` process? If we do, these is not need to make symbol links or hardlinks, we just import the raw folder and trigger the `Identify` process in emby, using a much easier python script without FILE operations. @Luke Edited November 20, 2023 by randomWalk Link to comment Share on other sites More sharing options...
Luke 37196 Posted November 20, 2023 Share Posted November 20, 2023 4 hours ago, randomWalk said: I found another way to keep my own folder name structure while make emby fetching the right metadata by just manually `Identify` for each item and input some ids (e.g., tvdbid, tmdbid) and search Do we have an API to trigger this `Identify` process? If we do, these is not need to make symbol links or hardlinks, we just import the raw folder and trigger the `Identify` process in emby, using a much easier python script without FILE operations. @Luke It would have to be able to be resolved by the normal library scan process. Link to comment Share on other sites More sharing options...
randomWalk 1 Posted November 21, 2023 Author Share Posted November 21, 2023 (edited) I made it! my series root folder name is like `[202101][无职转生][Mushoku Tensei - Jobless Reincarnation (2021) {tmdb=94664} ]` emby can not parse it and will not fetch metadata The I write a script, search for all series that have name in the above format, parse the tmdb ID, and then use these APIs POST /Items/{ItemId} body_data = { 'ProviderIds': { 'Tmdb': 123, } } this will temporary erase all metadata, except for the Tmdb or Tvdb id then we use POST /Items/{Id}/Refresh to trigger a refresh, and wait for a second emby will start to fetch the metadata, based on the only metadata it have (the tmdb id) see the full documents of the APIs here: http://swagger.emby.media/?staticview=true#/ Edited November 21, 2023 by randomWalk Link to comment Share on other sites More sharing options...
jaycedk 392 Posted November 21, 2023 Share Posted November 21, 2023 (edited) Hmm thats wierd. [202101][无职转生][Mushoku Tensei - Jobless Reincarnation (2021) {tmdb=94664} ] Try with a - instead of = just for the fun of it. [202101][无职转生][Mushoku Tensei - Jobless Reincarnation (2021) {tmdb-94664} ] Edited November 21, 2023 by jaycedk Link to comment Share on other sites More sharing options...
randomWalk 1 Posted November 22, 2023 Author Share Posted November 22, 2023 Either [202101][无职转生][Mushoku Tensei - Jobless Reincarnation (2021) {tmdb=94664} ] nor [202101][无职转生][Mushoku Tensei - Jobless Reincarnation (2021) {tmdb-94664} ] can trigger the metadata fetch process Link to comment Share on other sites More sharing options...
TMCsw 123 Posted November 22, 2023 Share Posted November 22, 2023 Perhaps emby doesn’t like the nested brackets?: [202101][无职转生][Mushoku Tensei - Jobless Reincarnation (2021) {tmdb=94664} ] try: [202101][无职转生][Mushoku Tensei - Jobless Reincarnation (2021)][tmdb=94664] Link to comment Share on other sites More sharing options...
randomWalk 1 Posted December 1, 2023 Author Share Posted December 1, 2023 I use [tmdbid=xxxx] instead of [tmdb=xxxx], now emby can recognize it. Link to comment Share on other sites More sharing options...
Luke 37196 Posted December 1, 2023 Share Posted December 1, 2023 9 hours ago, randomWalk said: I use [tmdbid=xxxx] instead of [tmdb=xxxx], now emby can recognize it. The upcoming 4.8 server release will support both conventions. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now