Comments (5)
Did you see this?
If you have a global folder you can name it anything you want. The name of the jpgs inside must be like this though (unless you want to change the plugin code to accept something custom). Spaces aren't allowed in the naming of the jpgs, although they can be in the NFO files. Otherwise the names should match identically (not sure about capital versus lowercase though). Certainly no sub folders, for each letter (again, unless you fork the code and customize it yourself).
\MyActorFolder\first_last.jpg
or
\MyActorFolder\first_middle_last.jpg
from xbmcnfomoviesimporter.bundle.
I got this working. Hope this helps others with the same setup. My post above mentions my docker configuration and nfo actor thumb paths.
I made a change to the __init__.py
file:
Changed this section:
if athumbloc == 'link' or not newrole.photo:
try:
athumbpath = preferences['athumbpath'].rstrip ('/')
path = actor.xpath('thumb')[0].text
newrole.photo = athumbpath + path
log.debug ('linked actor photo: ' + newrole.photo)
except:
log.debug ('failed setting linked actor photo!')
pass
Changed my actor thumb option to Link
Changed the path field to "http://nginx-ip-address"
from xbmcnfomoviesimporter.bundle.
I think its all files with actor name in one folder.
from xbmcnfomoviesimporter.bundle.
I am also using Jellyfin and Plex and would like to have this somehow work. I am using Jellyfin to gather my actor thumbs but I am forced into their structure of the folder name being the actor name and poster.jpg file within.
I am using docker so I have an nginx container with Jellyfin actor folders mounted within.
nginx:
image: ghcr.io/linuxserver/nginx
container_name: nginx
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- ./nginx/appdata/config:/config
- ./jellyfin/appdata/config/data/metadata/People:/config/www/config/data/metadata/People
ports:
- 80:80
- 443:443
restart: unless-stopped
Jellyfin saves the actor thumb path as an absolute path in the nfo.
<actor>
<name>Mark Wahlberg</name>
<role>Daniel Lugo</role>
<type>Actor</type>
<sortorder>0</sortorder>
<thumb>/config/data/metadata/People/M/Mark Wahlberg/poster.jpg</thumb>
</actor>
What would make this work is if XBMCnfoMovieImporter used the path to movie library or global actor folder field with the Link option, that way I can add http://nginx as my path and the absolute path in the nfo will follow.
http://nginx/config/data/metadata/People/M/Mark Wahlberg/poster.jpg
It seems currently the path field is only used when Local or Global selection is chosen. When the Link option is chosen, this field is ignored. If it wasn't ignored, I would then be able to get this to work.
Is there anyone that would be able to help with letting me know what code I would need to adjust in order to get this is function in this way?
from xbmcnfomoviesimporter.bundle.
I got this working. Hope this helps others with the same setup. My post above mentions my docker configuration and nfo actor thumb paths.
I made a change to the
__init__.py
file:Changed this section:
if athumbloc == 'link' or not newrole.photo: try: athumbpath = preferences['athumbpath'].rstrip ('/') path = actor.xpath('thumb')[0].text newrole.photo = athumbpath + path log.debug ('linked actor photo: ' + newrole.photo) except: log.debug ('failed setting linked actor photo!') pass
Changed my actor thumb option to Link Changed the path field to "http://nginx-ip-address"
Thanks, helped me a lot. And u can also do it this way:
1.Dont change __init__.py
file.
2.Change (or add) the content of thumb tag in nfo file, into http://localhost/actor_name.jpg
.
It also works, but ur sharing inspired me anyway.
My whole solution (docker-plex + docker-nginx)
1.nginx config as:
server {
listen 80;
server_name localhost;
location / {
root /var/www/html;
index index.php index.html index.htm;
}
}
2.docker-compose.yml:
version: "2.1"
services:
plex:
image: lscr.io/linuxserver/plex:latest
container_name: plex
network_mode: host
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- VERSION=docker
- PLEX_CLAIM= #optional
volumes:
- /path/to/library:/config
- /path/to/tvseries:/tv
- /path/to/movies:/movies
restart: unless-stopped
nginx:
image: nginx:1.23.1
volumes:
- nginx_config_file_path:/etc/nginx/conf.d
- actor_image_path:/var/www/html
logging:
driver: syslog
restart: always
3.After docker-compose up -d
, use docker inspect plex-nginx-1 | grep IPAddress
to get nginx-container ip.
4.Add a line in .nfo file, looks like below:
<actor>
<name>actor_name</name>
<type>Actor</type>
<thumb>http://172.22.0.2/actor_name.jpg</thumb>
</actor>
http://nginx/actor_name.jpg
or http://plex-nginx-1/actor_name.jpg
wont work.
5.Use XBMC to import.
from xbmcnfomoviesimporter.bundle.
Related Issues (20)
- Multiple SETs / COLLECTIONs HOT 1
- Local asset management with plex - actor thumbs HOT 1
- Plex scanner update... HOT 4
- Work in Synology but not QNAP
- nfo userrating tag not being read
- Set name dropping "Collection" HOT 3
- Duplicates trailers on every metadata refresh
- Feature Request: Support Movie Theme.mp3
- can't show actor image HOT 1
- [BUG report] cant parse xml HOT 2
- Where is the metadata class called from? HOT 1
- Only reads MovieTitle.pt01.nfo
- Does not detect jpeg poster and fanart, only jpg works. HOT 1
- Actor role receive random number when role name repeats HOT 2
- Set Plex 'Content Rating' from NFO? HOT 1
- (Feature Request) Plex Editions HOT 5
- [Bug report] Marking an edition as played or unplayed, affects all editions of that movie
- Actor Thumbs - Info Needed
- Save new nfo file into movie folder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbmcnfomoviesimporter.bundle.