Metadata agents for exported XBMC library

@SlrG said:
@maiade:
Please give the changes in the tv shows agent a spin. I hope I made no mistakes. Somehow its not my day. :slight_smile:

It works like a charm. Though note I have only tried it with the global option as I have TV Shows across multiple drives.

@maiade:
Can you describe your directory structure a bit? Do have a common mount point for the different drives? If your foldes are e.g. http://localhost/mnt/disk1/tvshows and http://localhost/mnt/disk2/tvshows you could try to only give http://localhost/mnt. I think that should work for local thumbs in the .actors dir.

@SlrG said:
@maiade:
Can you describe your directory structure a bit? Do have a common mount point for the different drives? If your foldes are e.g. http://localhost/mnt/disk1/tvshows and http://localhost/mnt/disk2/tvshows you could try to only give http://localhost/mnt. I think that should work for local thumbs in the .actors dir.

I tried that as they are /mnt/extdrive1/TV Shows, /mnt/extdrive2/TV Shows etc. The file test found them and assumed they would be available as urls, but set it to http://192.168.0.22/media/American Gothic/.actors/Sarah_Paulson.jpg for example where the path to library is set to http://192.168.0.22/media/ - in the log it says it doesn’t find any additional path parts.

I honestly don’t mind though as until plex make significant changes in how they handle actors a global directory makes sense. The reasons are 1) plex only has one image per actor and you can control what it is in a global directory (local means last scanned wins), and 2) plex really needs square images, rather than rectangular images that the source sites use, to fit its style of using circular masks - cleaning up one image per actor is easier than doing all the images.

Hmm
 you are right. So local doesn’t make sense really.

To clarify: If you set the path in the agents settings to be http://192.168.0.22/mnt/ and it creates a path with 192.168.0.22/media/
?

@SlrG said:
Hmm
 you are right. So local doesn’t make sense really.

Local makes sense if you want quick and easy, low effort and is no worse than putting the urls to the original source thumbnails as plex does in its own scrappers. Plex is more likely to tweak things to work with rectangular images than it is to redo the way it deals with actors.

To clarify: If you set the path in the agents settings to be http://192.168.0.22/mnt/ and it creates a path with 192.168.0.22/media/
?

No I made /mnt/ available with an alias of media in apache so the file store looks like mnt/extdrive1/TV Shows/
 and is accessed as http://192.168.0.22/media/extdrive1/TV Shows/
 I tried mnt instead of media as an alias but neither worked.

With path to show library set to http://192.168.0.22/mnt/ I get
Searching for additional path parts after: mnt
Found no additional path parts.
In the log. Which is odd as when I do the same thing for films I get
Searching for additional path parts after: mnt
Found additional path parts: /extdrive3/Films

Had a dig in the code.
line 568 is addpath = os.path.dirname(spath)[addpos:]

in the film version it is
addpath = os.path.dirname(folder_path)[addpos:]

so the tv version should be
addpath = os.path.dirname(path)[addpos:]

I changed my copy and this works.

Ah. Okay. I will have to take a closer look at that. Thank you for your help. :slight_smile:

ok,
I have read this string and I think I’m missing something, I have a single location for all thumbnails and nothing is showing:

I have the path in the xbmcmovieimporter NFO file:

plex has loaded it into its metadata:

and in the agent I have it set to link(no path required) and checkbox to use local data, I have created a new library with this and nothing shows.

am I missing something? or did I completely miss the mark with this?

Red

Putting local file links in the nfo files photo tag will not work. But due to a plex limitation, only http addresses work as plex actor thumbs.

If you choose linked, the agent will ignore the path from the agents settings and look at the photo tags from the nfo file only. In that regard you were right to choose local, but as I said, it won’t work with “filesystem” type paths.

To make use of the global option, you need to setup a local folder which contains all of your actor thumbs as jpg files in the form name_of_actor.jpg where name_of_actor is the name of from the nfo files name tag but with underscores instead of spaces. Do not name them folder.jpg!

This folder needs to be served from a webserver so all files are available via http. You can test this from your browser.

So in your case the filesystem type path to the thumbnail would be:
E:\Plex\local data\Plex Media Server\Thumbnails\Stephen_Chow.jpg
If your local webserver only serves the Thumbnails directory, the path in the agents settings would be:
http://localhost/Thumbnails
If it serves the whole filesystem:
http://localhost/Plex/local data/Plex Media Server/Thumbnails
If it is not on the same system as the plex server:
http://name_or_ip_of_thumbnail_server/Thumbnails

SlrG

Thank you,

I will give that a try.

Red

Have an issue with the audio information in my *.nfo.

I am using this agent since approx. 2 years and I am very happy with it.
Unfortunately I have found an issue with wrong imported audio information.
in my movie.nfo I have i.e.:

// h264 1.78 960 540 10679 AAC deu 2 //

(How can I copy with markdown the correct info ?)

Means, movie has german audio file.

After import within Plex wit this agent, Plex shows me:
English—AAC Stereo

I am using Plex 1.5.4.3596 (Windows) and the latest version of this agent - installed by WebTools.
Any hint is welcome.

regards

The agents do not import any audio/video information from the nfo file, as this is not supported by plex. The info you see is generated by plex itself and there is nothing the agents can do about that. If there is an obvious error, please contact the plex devs. They might be able to fix it.

SlrG thanks for the information and the fast response.
I was not aware, that the agent does not import the audio/video information - but good to know.
Will open a ticket.

Thanks again - and of course many thanks for this great agent.

Update:
Have checked my *.mp4 with mediainfo and mediainfo is telling me that the audio format is english !? So it seems that the audio info in the mp4-file is wrong.

Does anyone knows a tool to edit the “language information” of an audio stream in a mp4 file ? Means, I would like to change the language from english to german.

I am confused. The thread you linked to contained .plexapp files. These do not appear to be any archive that I can open. And the Internet seems to think that is not a legitimate file extension. Also, there does not seem to be anyone named Harley Hooligan there.

Please advise on how I can follow your guide.

Nevermind. I found the links at the bottom of your post. And it worked, mostly. Some really strange things like 13 assassins got 6 movies in total under its title including Anne of Green Gables (I think they might actually be TV mini series, and a few new movies that might not have had nfo files yet). The weird thing is that 13 Assassins is the second film in the list, so that seems to be where this scrapper dumps all the content it is not sure about.

Also, while I got zero network activity as far as I cal tell, some of the posters were really weird. I must of had the file downloaded, but at least in some of the cases I can verify the poster plex is displaying is not what my nfo library displays.

@wisnoskij:
I’m very sorry, but I don’t remember your question and could not find it going back some pages. Can you give me a link so I can look it up again? Also in order to help you and see what is going wrong, I’ll need the debug logs of the agent. Please enable them in the agents settings and recreate your library/a testing library. Please zip up the logs and upload them to some sharing service and drop a link.

@quadro:
That probably can be done using ffmpeg.

@SlrG: Have found 2 tools to change the metadata.
mp4track can do it for mp4 and avidemux for avi.

Hi, i have a question, it’s possible to get the poster for the movies in other path? Example:
V:\Movies\movie1.mkv
V:\Movies\movie2.mkv
V:\Movies\Posters\movie1-poster.jpg
V:\Movies\Posters\movie2-poster.jpg

I don’t know how to do that, someone here can help me?

@SOz92:
Sorry, but this is not possible using the XBMCnfoImporter agents. You would need to create custom agents that match your requirements.

Okay, thanks, I was able to modify the code to do what I wanted.

@SOz92:
Nice. :slight_smile: I’m glad you got it working as you want.