Skip to content

Commit

Permalink
Metadata.theme missing log add
Browse files Browse the repository at this point in the history
#49

Old code had it: https://raw.githubusercontent.com/ZeroQI/Hama.bundle/60ec132c27733ca4b86ebb41f0f13b1fa14688c5/Contents/Code/__init__.py

error_log   ['Plex themes missing'      ].append("anidbid: %s, title: '%s', tvdbid: %s, title: '%s' <a href='mailto:themes@plexapp.com?cc=&subject=Missing%%20theme%%20song%%20-%%20&#39;%s%%20-%%20%s.mp3&#39;'>Upload</a>" % (metadata.id.zfill(5), orig, tvdbid.zfill(5), tvdb_title, tvdb_title, tvdbid) )
  • Loading branch information
ZeroQI committed Jun 7, 2016
1 parent 85c0333 commit 74fc38e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ def Update(self, metadata, media, lang, force, movie):

### Plex - Plex Theme song - https://plexapp.zendesk.com/hc/en-us/articles/201178657-Current-TV-Themes ###
if THEME_URL % tvdbid in metadata.themes: Log.Debug("Update() - Theme song - already added")
else: self.metadata_download (metadata.themes, THEME_URL % tvdbid, 1, "Plex/"+metadata.id+".mp3") #if local, load it ?
else:
self.metadata_download (metadata.themes, THEME_URL % tvdbid, 1, "Plex/"+metadata.id+".mp3") #if local, load it ?
if not THEME_URL % tvdbid in metadata.themes: error_log['Plex themes missing'].append("anidbid: %s, title: '%s', tvdbid: %s, title: '%s' <a href='mailto:themes@plexapp.com?cc=&subject=Missing%%20theme%%20song%%20-%%20&#39;%s%%20-%%20%s.mp3&#39;'>Upload</a>" % (metadata.id.zfill(5), orig, tvdbid.zfill(5), tvdb_title, tvdb_title, tvdbid) )

### TVDB - Load serie XML ###
tvdbanime, tvdb_episode_missing, tvdb_special_missing, special_summary_missing, summary_missing, summary_present = None, [], [], [], [], []
Expand Down

0 comments on commit 74fc38e

Please sign in to comment.