Jump to content

Symbolic Links support for linux?


randomWalk

Recommended Posts

randomWalk

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

sargenthp

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

randomWalk
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

  • 2 weeks later...
randomWalk

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 by randomWalk
Link to comment
Share on other sites

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

randomWalk

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 by randomWalk
Link to comment
Share on other sites

jaycedk

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 by jaycedk
Link to comment
Share on other sites

randomWalk

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

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

  • 2 weeks later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...