jakewaldron / PlexEmail

This script aggregates all new TV, movie and music releases for the past configured time then optionally writes to your web directory and sends out an email.
206 stars 32 forks source link

Runtime for TV Shows #49

Open chuccck opened 7 years ago

chuccck commented 7 years ago

When I enable runtime/duration for tv shows, it works fine for new episodes but shows 0 minutes for new tv shows or seasons. Any ideas?

example

jakewaldron commented 7 years ago

Hmm, that is strange. I don't have this issue with any of my shows. I can put in something to hide the duration field if it is 0, but not sure what else can be done if that is the value stored in the database for the Show/Season.

chuccck commented 7 years ago

The example I gave was of two different shows but if a new show is added and the new episodes are there it will populate with correct airtime on the episodes but 0 minutes for the new show or season. So to summarize this happens every time for new shows or seasons but never for episodes.

I use the plex agent for Metadata but I have local media assets I could use instead. Is that what you are referring to in "database"

chuccck commented 7 years ago

actually I use thetvdb as the agent, not plex agent for metadata.

jakewaldron commented 7 years ago

Thanks for the added information. The database is the file in your PMS installation that has all the metadata information. PlexEmail gets everything from there (there are no calls to 3rd party metadata sources as part of this script). If for some reason it is not in there (or set to 0) there is nothing that can really be done. The best thing that can be done is for the script to hide the duration field if it is 0.