Skip to content

Commit

Permalink
New Features and Bug Fixes
Browse files Browse the repository at this point in the history
UTF-8 Characters now supported in the config file
Can now filter out specific libraries from being included
Can now control the fields shown for each title and can filter by each
specific field
  • Loading branch information
jakewaldron committed Mar 17, 2015
1 parent b0ce7bc commit bfc7c74
Show file tree
Hide file tree
Showing 3 changed files with 344 additions and 104 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ The config file is in the scripts folder. Before first run of the script, pleas
* filter_show_shows - True to show recently added TV shows
* filter_show_seasons - True to show recently added TV seasons
* filter_show_episodes - True to show recently added TV episodes
* filter_libraries - A list of library names to filter out - ['Home Videos', 'Private']
* filter_sections_movies - Movie specific filters
* filter_sections_TV - TV specific filters
* Possible fields: tagline, summary, content_rating, duration, year, rating, studio, tags_genre, tags_director, tags_star
* order - The order this field should appear for each title
* show - Whether or not this field should be shown for each title
* preText - The text that should be added before this field for each title
* postText - The text that should be added after this field for each title
* include - A list of values that are each title must match at least one to be shown
* exclude - A list of values that if the title matches any of, will not be shown

#####Messages
* msg_email_teaser - Teaser text on the email
Expand Down
170 changes: 170 additions & 0 deletions scripts/config.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This Python file uses the following encoding: utf-8
##Folder Paths
# Windows Example: 'C:\\Users\\{User Name}\\AppData\\Local\\'
# Linux Example: '/var/lib/plexmediaserver/Library/Application Support/'
Expand All @@ -22,6 +23,8 @@ upload_cloudinary_api_secret = ''

##Web
web_enabled = True
#This will not create the index.html file, but will still save the images to the images folder. (Useful for when you only want to send an email)
web_only_save_images = False
web_domain = ''
web_path = 'plexemail'
web_delete_previous_images = False
Expand All @@ -47,6 +50,173 @@ filter_show_movies = True
filter_show_shows = True
filter_show_seasons = True
filter_show_episodes = True
#Name of libraries to filter out - ['Home Videos', 'Private']
filter_libraries = []
#The sections to include and ordering - tagline, summary, content_rating, duration, year, rating, studio, tags_genre, tags_director, tags_star
filter_sections_movies = {
'tagline':{
'order':1,
'show': True,
'preText':'<i>',
'postText':'</i>',
'include':[],
'exclude':[]
},
'summary':{
'order':2,
'show': True,
'preText':'',
'postText':'',
'include':[],
'exclude':[]
},
'tags_genre':{
'order':3,
'show': True,
'preText':'Genre(s): ',
'postText':'',
'include':[],
'exclude':[]
},
'tags_director':{
'order':4,
'show': False,
'preText':'Director: ',
'postText':'',
'include':[],
'exclude':[]
},
'tags_star':{
'order':5,
'show': True,
'preText':'Star(s): ',
'postText':'',
'include':[],
'exclude':[]
},
'content_rating':{
'order':6,
'show': False,
'preText':'Content Rating: ',
'postText':'',
'include':[],
'exclude':[]
},
'duration':{
'order':7,
'show': True,
'preText':'Runtime: ',
'postText':' minutes',
'include':[],
'exclude':[]
},
'year':{
'order':8,
'show': True,
'preText':'Year: ',
'postText':'',
'include':[],
'exclude':[]
},
'studio':{
'order':9,
'show': False,
'preText':'Studio: ',
'postText':'',
'include':[],
'exclude':[]
},
'rating':{
'order':10,
'show': True,
'preText':'Rating: ',
'postText':'%',
'include':[],
'exclude':[]
}
}
filter_sections_TV = {
'tagline':{
'order':1,
'show': True,
'preText':'<i>',
'postText':'</i>',
'include':[],
'exclude':[]
},
'summary':{
'order':2,
'show': True,
'preText':'',
'postText':'',
'include':[],
'exclude':[]
},
'tags_genre':{
'order':3,
'show': False,
'preText':'Genre(s): ',
'postText':'',
'include':[],
'exclude':[]
},
'tags_director':{
'order':4,
'show': False,
'preText':'Director: ',
'postText':'',
'include':[],
'exclude':[]
},
'tags_star':{
'order':5,
'show': False,
'preText':'Star(s): ',
'postText':'',
'include':[],
'exclude':[]
},
'content_rating':{
'order':6,
'show': False,
'preText':'Content Rating: ',
'postText':'',
'include':[],
'exclude':[]
},
'duration':{
'order':7,
'show': True,
'preText':'Runtime: ',
'postText':' minutes',
'include':[],
'exclude':[]
},
'year':{
'order':8,
'show': False,
'preText':'Year: ',
'postText':'',
'include':[],
'exclude':[]
},
'studio':{
'order':9,
'show': True,
'preText':'Network: ',
'postText':'',
'include':[],
'exclude':[]
},
'rating':{
'order':10,
'show': False,
'preText':'Rating: ',
'postText':'%',
'include':[],
'exclude':[]
}
}

##Messages
msg_email_teaser = 'Check out this week\'s releases from Plex: {website} - {past_day} - {current_day}'
Expand Down
Loading

0 comments on commit bfc7c74

Please sign in to comment.