Giter Club home page Giter Club logo

Comments (5)

ReenigneArcher avatar ReenigneArcher commented on August 26, 2024 1

Did you see this?

#110

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.

tamburra avatar tamburra commented on August 26, 2024 1

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.

SlrG avatar SlrG commented on August 26, 2024

I think its all files with actor name in one folder.

from xbmcnfomoviesimporter.bundle.

tamburra avatar tamburra commented on August 26, 2024

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.

NULL-Response avatar NULL-Response commented on August 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.