Giter Site home page Giter Site logo

arehbein-git / pptag Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 7.0 77 KB

As the plex server is not compatible with xmp metadata inside photos, this python based app uses plex rest api to implement an update of all related metadata within plex with tags and rating of the xmp (lightroom based)

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 0.23% Python 99.77%
lightroom metadata photos plex plex-server python xmp

pptag's People

Contributors

arehbein-git avatar dsm1212 avatar elgohr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pptag's Issues

implement date based fetching and processing

Fetching all photos even for updating just photo is slow. Therefor, a new appoarch using the exif date of the photo that was detected for a change or was added can be used to fetch just the photos from plex that were taken on that date. Grouping the photos by the date allows to exit the loop even quicker.

Observer Not Working

Unsure if it's something I'm doing wrong, but I cannot seem to get the observer / watcher to work.

I'm running this on Synology via Docker compose. Both Plex and PPTag are running on the same network.

Initially, when bringing up the container it does a scan and works as expected. But afterwards won't add metadata for any new album added.

Any suggestions?

timezone issue

I think maybe you can just add this to the doc unless you want to add support for TZ, but I noticed that sometimes the fetch loop doesn't find the files and it falls back to the full scan. The reason is that when searching for the files by date it is using start and end of each day in UTC, but the pics usually have their original time in some timezone. So morning or evening pics won't match the timerange calculated. The work around I found is to map your timezone into the container like this:

  - /usr/share/zoneinfo/America/New_York:/etc/timezone:ro
  - /usr/share/zoneinfo/America/New_York:/etc/localtime:ro

I've got a couple of actual bug fixes I never pushed but it looks like I am in sync with you so I'll create a PR soon.

Error in docker

Hi,

I tried to configure your sw in docker but I see an error when I run the container:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "pptag.py", line 410, in <module>
p = plexUsers()
File "/app/pptag/plexUsers.py", line 119, in __init__
self.plex = PlexServer(ppTagConfig.PLEX_URL, ppTagConfig.PLEX_TOKEN)
File "/usr/local/lib/python3.8/site-packages/plexapi/server.py", line 103, in __init__
data = self.query(self.key, timeout=timeout)
File "/usr/local/lib/python3.8/site-packages/plexapi/server.py", line 376, in query
response = method(url, headers=headers, timeout=timeout, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.2.100', port=32400): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x149de1653670>: Failed to establish a new connection: [Errno 101] Network is unreachable'))

I can't understand if something in my config.py or in my container setting.

Can you please support me?

Ty in advance

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.