Jump to content

How to Map/Point to Custom Series?


Recommended Posts

Lyfesaver
Posted

I have been moving my numerous local drives over to a NAS raid box. I took my custom TV series "Dallas Cowboy Games" where I have all their wins from the 70s til now each in their own season folder from inside J:\TV1\NFL\ to \\NAS\Media\TV\NFL

Because I have not removed the old J:\TV1\ path from my library Emby still sees it with all the custom work I did (images, dates. descriptions, etc) and it sees the \\NAS\Media\TV\NFL as "Inside the NFL"

Is there anyway I can "Identify" the new location as my custom series without having to go through all that work again?

js28194
Posted (edited)

I could have sworn somewhere in the matrix they added the sportsdb.com as a metadata provider.  My understanding was if you named the folders accordingly all would be well.  I could be wrong.  I was wrong once, but then my wife beat me.

https://www.thesportsdb.com/browse.php?s=dallas+cowboys

 

Ah, I C now... you have to add the sportsdb.com plugin and name the folders accordingly and life will be good.  I'd back up the metadata stuff just in case.

Alternatively, you need a custom script to (was SED?) to go through all your .nfo files update them with the new path.  I don't imagine that would be too difficult for the linux programmer.  For us mere mortals, claude maybe your friend if that is the route you wish to traverse.

YMMV, use at your own PERIL!!  Bash Script

find /path/to/folder -name "*.nfo" -exec sed -i 's/OLD_STRING/NEW_STRING/g' {} +

Breakdown:

  • find /path/to/folder — searches recursively through all subdirectories
  • -name "*.nfo" — targets only .nfo files
  • -exec sed -i — runs an in-place edit on each file found
  • 's/OLD_STRING/NEW_STRING/g' — replaces every occurrence of the old string with the new one
  • {} + — passes all found files to the command efficiently

Example — replacing "Director: Unknown" with "Director: John Doe":

 

So in your case it "should" be:

find /path/to/folder -name "*.nfo" -exec sed -i 's/J:\TV1\NFL\/\\NAS\Media\TV\NFL/g' {} + 

But again, YMMV.  Also, I recommend to use an IP address instead of "NAS" in case you decided to do something different in the future and change again.  It's just damn easier to assign a new device the old ip address and retire the old the one, but again, YMMV.

Edited by js28194
  • Thanks 1
js28194
Posted (edited)

If you go the script route... those internal backslashes may become an issue.... 

find /path/to/folder -name "*.nfo" -exec perl -pi -e 's/J:\\TV\\NAS/\\NAS\\Media\\TV\NFL/g' {} + 

Again, encouraged to use IP Address instead of NAS.  Would move a few folders over to a temp location for testing, but it seems the sportsdb.com metadata plugin seems a bit easier.

 

 

Edited by js28194
  • Thanks 1
Lyfesaver
Posted

First of all, thank you so very much for trying to help and I think I understand what you are saying for the most part. I understand I can change the folder layout and let thesportsdb.com do their thing but that wont bring over all the work I did. The custom screen shots, the detailed info, etc... check this out:

image.thumb.png.382a4bf97d2fdbb16c874241461bfca2.pngimage.thumb.png.64f3646c2ec0045485845f1c5e1b117e.pngimage.thumb.png.3bebf720a1655ac1679e7cc6ebb45fad.png

 

 

This is the level of data I have pianistically entered vs what thesportsdb.com has image.png.5ad29806df9d0a70d5c4f540b4a78873.png

 

So you can see why I really dont want to use their metadata.

Also, not sure what you meant by using a custom script for the nfo files. I dont have any nfo files all this is in the database

Lyfesaver
Posted
15 minutes ago, js28194 said:

If you go the script route... those internal backslashes may become an issue.... 

find /path/to/folder -name "*.nfo" -exec perl -pi -e 's/J:\\TV\\NAS/\\NAS\\Media\\TV\NFL/g' {} + 

Again, encouraged to use IP Address instead of NAS.  Would move a few folders over to a temp location for testing, but it seems the sportsdb.com metadata plugin seems a bit easier.

 

 

Ahh that follow up comment you made really helped me to understand about the script. I thought you were talking about a script to move nfo files into the database with the new location.

Still not sure how to best do this tho.. I dont want to lose all my data

Lyfesaver
Posted

Keep in mind I went thru the same level of detail for the Mavericks, Stars and Rangers as well (just not as many games... only playoffs as there are so many more in a season)

 

This is why I am hoping for a fix that I can reuse all my work

js28194
Posted (edited)

So my understanding (how puny my brain maybe) when EMBY first scan's the folder let's say for movies, it connects to the themoviedb.org website and downloads all the metadata into a local .nfo file along side your video file.  It then reads or inserts it into the the database permanently.  

My suggestion was to update your .nfo files and let EMBY just read an update the database locally.  My understanding of this process may be wrong, but I have to do this recently and did not see any issue.  Was also helpful to lock the the folder(s) from updating metadata.  The other part is that from what I have experienced, you updating the metadata in the web application "shoud have" updated the local .nfo file next to the video file.  I think there is a solution in here buried for you but I shall wait for smarter men & women to chime in.

One last comment... you say "season" and again, somebody should chime in, sports are events, not caterogized as seasons in the traditional terminology Emby uses for TV shows.  Event's really fall under the "Movies" categories:  Example:

Folder Name: UFC 32- Showdown In The Meadowlands (2001) -> FileName: UFC 32- Showdown In The Meadowlands (2001).mkv

 

Side note... don't know why I'm trying to help a Dallas fan (sigh)

Edited by js28194
  • Thanks 1
Lyfesaver
Posted (edited)

"Side note... don't know why I'm trying to help a Dallas fan (sigh)"
Because you are awesome.

 

I believe Emby will do the local NFO saving if you turn that option on somewhere

I was really hoping one of the admins would know how to use Swagger to just change the paths in the database

 

Side note: Who's your team (city)?

Edited by Lyfesaver

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...