Fix parsing Windows path on Linux for notification filename parameter

This commit is contained in:
JonnyWong16 2022-05-20 10:48:14 -07:00
parent 775375b8b4
commit bb01141cfc
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -35,7 +35,6 @@ import os
import re
from string import Formatter
import threading
import time
import musicbrainzngs
@ -1140,7 +1139,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
'subtitle_language': notify_params['subtitle_language'],
'subtitle_language_code': notify_params['subtitle_language_code'],
'file': notify_params['file'],
'filename': os.path.basename(notify_params['file']),
'filename': os.path.basename(notify_params['file'].replace('\\', os.sep)),
'file_size': helpers.human_file_size(notify_params['file_size']),
'indexes': notify_params['indexes'],
'guid': notify_params['guid'],