mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-26 17:47:20 +00:00
Fixed Plex webhook trying to search for subtitles for pre-roll video. #2013
This commit is contained in:
parent
383d906749
commit
2622a0896e
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ class WebHooksPlex(Resource):
|
|||
args = self.post_request_parser.parse_args()
|
||||
json_webhook = args.get('payload')
|
||||
parsed_json_webhook = json.loads(json_webhook)
|
||||
if 'Guid' not in parsed_json_webhook['Metadata']:
|
||||
logging.debug('No GUID provided in Plex json payload. Probably a pre-roll video.')
|
||||
return "No GUID found in JSON request body", 200
|
||||
|
||||
event = parsed_json_webhook['event']
|
||||
if event not in ['media.play']:
|
||||
|
|
Loading…
Reference in a new issue