Added a new branch, edited the code to include the week_number

This commit is contained in:
samip5 2018-04-10 12:10:32 +03:00
parent ab9132cdd4
commit f624908302
3 changed files with 3 additions and 5 deletions

View file

@ -703,7 +703,6 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
'tautulli_remote': plexpy.CONFIG.GIT_REMOTE,
'tautulli_branch': plexpy.CONFIG.GIT_BRANCH,
'tautulli_commit': plexpy.CURRENT_VERSION,
'week_number': int(datetime.date.today().strftime("%W")),
'server_name': plexpy.CONFIG.PMS_NAME,
'server_ip': plexpy.CONFIG.PMS_IP,
'server_port': plexpy.CONFIG.PMS_PORT,
@ -712,6 +711,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
'server_platform': plexpy.CONFIG.PMS_PLATFORM,
'server_version': plexpy.CONFIG.PMS_VERSION,
'action': notify_action.lstrip('on_'),
'week_number': arrow.now().isocalendar()[1],
'datestamp': arrow.now().format(date_format),
'timestamp': arrow.now().format(time_format),
'unixtime': int(time.time()),