Repository: pymedusa/Medusa

Issue:
yml .plexmatch file misread as xml during showQueueRefresh (Warning in logs)
**Describe the bug**
During each show queue refresh, Medusa tries to parse the yml file `.plexmatch` as a xml file and raises a 'invalid XML' warning.

**To Reproduce**
1. Enable Plex show metadata (feature addd in #10466) in Postprocessing > Metadata
2. Add a new show
3. Wait for a SHOWQUEUE-REFRESH or Force full update the show
4. See Warning in logs 

**Expected behavior**
No warning in log because this Plex metadata file is not a XML file.

**Medusa :**
 - OS: docker on LibreElec arm64
 - Branch: [linuxserver](https://hub.docker.com/r/linuxserver/medusa) container 0.5.29
 - Python version: 3.9.7
 - Database version: 44.19

**Debug logs :**

```
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] User-Agent: Medusa/0.5.29 (Linux; 3.14.29; dd2a7688-bfbc-11ec-8b0a-0242ac110002)
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] Configured language en override show language of en
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] Getting all series data for 84773
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] Getting all show data for 84773
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] GET URL: https://api.themoviedb.org/3/tv/84773?language=en&append_to_response=content_ratings%2Cexternal_ids&api_key=edc5f123313769de83a71e157758030b [Status: 200]
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] User-Agent: Medusa/0.5.29 (Linux; 3.14.29; dd2a7688-bfbc-11ec-8b0a-0242ac110002)
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] Getting all episodes of 84773
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] GET URL: https://api.themoviedb.org/3/tv/84773/season/1?language=en&api_key=edc5f123313769de83a71e157758030b [Status: 200]
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] User-Agent: Medusa/0.5.29 (Linux; 3.14.29; dd2a7688-bfbc-11ec-8b0a-0242ac110002)
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] Getting show banners for 84773
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] GET URL: https://api.themoviedb.org/3/tv/84773/images?params=include_image_language&api_key=edc5f123313769de83a71e157758030b [Status: 200]
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] User-Agent: Medusa/0.5.29 (Linux; 3.14.29; dd2a7688-bfbc-11ec-8b0a-0242ac110002)
2022-04-19 11:17:59 DEBUG    SHOWQUEUE-UPDATE :: [] Adding base url for image: /8UDCNbHrMNEqnNSybdbykp2Xtsi.jpg
...
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Adding base url for image: /oBZ7pJ7hEpGHpNOutnjNJhwUCn2.jpg
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] No banners found for 84773
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Found 9 fanarts at 300x169 (1) resolution for series 84773
...
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Found 3 fanarts at 2560x1440 (5) resolution for series 84773
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Found 36 total fanarts for series 84773
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Fanart threshold set to 3.0924621740221365 votes
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Weighted fanart results for series 84773:     Score     Rating  Votes      Resolution	URL     4.774      5.388      4       3840x2160	http://image.tmdb.org/t/p/original/uVukvj5r9jEMva78IfaGWMNwGe.jpg     4.660      4.982      4       3840x2160	http://image.tmdb.org/t/p/original/6sUZlK63ij3dHiwOiCVdr7f1Rek.jpg     3.591      5.312      1       2560x1440	http://image.tmdb.org/t/p/original/rQJzXxEburKVlNj30JdxYsr13JF.jpg     3.591      5.312      1       2560x1440	http://image.tmdb.org/t/p/original/zjcYRyYarEgNO6B1JyKmn5S2Pyd.jpg     3.591      5.312      1       2560x1440	http://image.tmdb.org/t/p/original/x9U4T42aCci3RWL5M9N3qTswC83.jpg     3.412      5.384      2       1920x1080	http://image.tmdb.org/t/p/original/vpc8qVhFvu0SM4USg72bHPRmOPL.jpg     3.385      5.246      2       1920x1080	http://image.tmdb.org/t/p/original/jN2Zmb5FlXELc9BWMiDb9t3ThuE.jpg     3.074      5.172      1       1920x1080	http://image.tmdb.org/t/p/original/9YeS5NQNN6X8CZoZAhcZOOaB3UP.jpg     2.585      0.000      0       1920x1080	http://image.tmdb.org/t/p/original/oBZ7pJ7hEpGHpNOutnjNJhwUCn2.jpg     2.085      0.000      0        1280x720	http://image.tmdb.org/t/p/w1280/oBZ7pJ7hEpGHpNOutnjNJhwUCn2.jpg     1.942      0.000      1        1280x720	http://image.tmdb.org/t/p/w1280/rQJzXxEburKVlNj30JdxYsr13JF.jpg     1.942      0.000      1        1280x720	http://image.tmdb.org/t/p/w1280/zjcYRyYarEgNO6B1JyKmn5S2Pyd.jpg     1.942      0.000      1        1280x720	http://image.tmdb.org/t/p/w1280/x9U4T42aCci3RWL5M9N3qTswC83.jpg     1.942      0.000      1        1280x720	http://image.tmdb.org/t/p/w1280/9YeS5NQNN6X8CZoZAhcZOOaB3UP.jpg     1.855      0.000      2        1280x720	http://image.tmdb.org/t/p/w1280/vpc8qVhFvu0SM4USg72bHPRmOPL.jpg     1.855      0.000      2        1280x720	http://image.tmdb.org/t/p/w1280/jN2Zmb5FlXELc9BWMiDb9t3ThuE.jpg     1.755      0.000      4        1280x720	http://image.tmdb.org/t/p/w1280/uVukvj5r9jEMva78IfaGWMNwGe.jpg     1.755      0.000      4        1280x720	http://image.tmdb.org/t/p/w1280/6sUZlK63ij3dHiwOiCVdr7f1Rek.jpg     1.585      0.000      0         780x439	http://image.tmdb.org/t/p/w780/oBZ7pJ7hEpGHpNOutnjNJhwUCn2.jpg     1.442      0.000      1         780x439	http://image.tmdb.org/t/p/w780/rQJzXxEburKVlNj30JdxYsr13JF.jpg     1.442      0.000      1         780x439	http://image.tmdb.org/t/p/w780/zjcYRyYarEgNO6B1JyKmn5S2Pyd.jpg     1.442      0.000      1         780x439	http://image.tmdb.org/t/p/w780/x9U4T42aCci3RWL5M9N3qTswC83.jpg     1.442      0.000      1         780x439	http://image.tmdb.org/t/p/w780/9YeS5NQNN6X8CZoZAhcZOOaB3UP.jpg     1.355      0.000      2         780x439	http://image.tmdb.org/t/p/w780/vpc8qVhFvu0SM4USg72bHPRmOPL.jpg     1.355      0.000      2         780x439	http://image.tmdb.org/t/p/w780/jN2Zmb5FlXELc9BWMiDb9t3ThuE.jpg     1.255      0.000      4         780x439	http://image.tmdb.org/t/p/w780/uVukvj5r9jEMva78IfaGWMNwGe.jpg     1.255      0.000      4         780x439	http://image.tmdb.org/t/p/w780/6sUZlK63ij3dHiwOiCVdr7f1Rek.jpg     1.085      0.000      0         300x169	http://image.tmdb.org/t/p/w300/oBZ7pJ7hEpGHpNOutnjNJhwUCn2.jpg     0.942      0.000      1         300x169	http://image.tmdb.org/t/p/w300/rQJzXxEburKVlNj30JdxYsr13JF.jpg     0.942      0.000      1         300x169	http://image.tmdb.org/t/p/w300/zjcYRyYarEgNO6B1JyKmn5S2Pyd.jpg     0.942      0.000      1         300x169	http://image.tmdb.org/t/p/w300/x9U4T42aCci3RWL5M9N3qTswC83.jpg     0.942      0.000      1         300x169	http://image.tmdb.org/t/p/w300/9YeS5NQNN6X8CZoZAhcZOOaB3UP.jpg     0.855      0.000      2         300x169	http://image.tmdb.org/t/p/w300/vpc8qVhFvu0SM4USg72bHPRmOPL.jpg     0.855      0.000      2         300x169	http://image.tmdb.org/t/p/w300/jN2Zmb5FlXELc9BWMiDb9t3ThuE.jpg     0.755      0.000      4         300x169	http://image.tmdb.org/t/p/w300/uVukvj5r9jEMva78IfaGWMNwGe.jpg     0.755      0.000      4         300x169	http://image.tmdb.org/t/p/w300/6sUZlK63ij3dHiwOiCVdr7f1Rek.jpg
2022-04-19 11:18:00 INFO     SHOWQUEUE-UPDATE :: [] Selected fanart for series 84773 (score=4.7743591227789235, score_bay=3.548718245557846, rating=5.388, votes=4, res=3840x2160): http://image.tmdb.org/t/p/original/uVukvj5r9jEMva78IfaGWMNwGe.jpg
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Full info for best fanart for series 84773: {'bannerpath': '/uVukvj5r9jEMva78IfaGWMNwGe.jpg', '_bannerpath': 'http://image.tmdb.org/t/p/original/uVukvj5r9jEMva78IfaGWMNwGe.jpg', 'ratingcount': 4, 'rating': 5.388, 'width': 3840, 'height': 2160, 'aspect_ratio': 1.778, 'airs_time': '0:00AM', 'resolution': '3840x2160', 'res_index': 6, 'score_rated': 3.548718245557846, 'score_weighted': 4.7743591227789235}
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Found 62 posters at 92x138 (2) resolution for series 84773
...
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Found 1 posters at 2000x3000 (22) resolution for series 84773
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Found 601 total posters for series 84773
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Poster threshold set to 1.5069566809378443 votes
2022-04-19 11:18:00 INFO     SHOWQUEUE-UPDATE :: [] Selected poster for series 84773 (score=12.199598718721075, score_bay=4.399197437442151, rating=5.39, votes=6, res=1920x2880): http://image.tmdb.org/t/p/original/cLq3V06qZt3qC9iDiBmHcay10S0.jpg
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Full info for best poster for series 84773: {'bannerpath': '/cLq3V06qZt3qC9iDiBmHcay10S0.jpg', '_bannerpath': 'http://image.tmdb.org/t/p/original/cLq3V06qZt3qC9iDiBmHcay10S0.jpg', 'ratingcount': 6, 'rating': 5.39, 'width': 1920, 'height': 2880, 'aspect_ratio': 0.667, 'airs_time': '0:00AM', 'resolution': '1920x2880', 'res_index': 20, 'score_rated': 4.399197437442151, 'score_weighted': 12.199598718721075}
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Getting actors for 84773
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] GET URL: https://api.themoviedb.org/3/tv/84773/credits?language=en&api_key=edc5f123313769de83a71e157758030b [Status: 200]
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] User-Agent: Medusa/0.5.29 (Linux; 3.14.29; dd2a7688-bfbc-11ec-8b0a-0242ac110002)
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Unable to retrieve image to save in /config/cache/images/tmdb/84773.banner.jpg, skipping
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Searching for poster for series 84773
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Fetching image from http://image.tmdb.org/t/p/original/cLq3V06qZt3qC9iDiBmHcay10S0.jpg
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] GET URL: http://image.tmdb.org/t/p/original/cLq3V06qZt3qC9iDiBmHcay10S0.jpg [Status: 200]
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] User-Agent: Medusa/0.5.29 (Linux; 3.14.29; dd2a7688-bfbc-11ec-8b0a-0242ac110002)
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Searching for banner_thumb for series 84773
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Unable to retrieve image to save in /config/cache/images/tmdb/thumbnails/84773.banner.jpg, skipping
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Searching for poster_thumb for series 84773
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] Fetching image from http://image.tmdb.org/t/p/original/cLq3V06qZt3qC9iDiBmHcay10S0.jpg
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] GET URL: http://image.tmdb.org/t/p/original/cLq3V06qZt3qC9iDiBmHcay10S0.jpg [Status: 200]
2022-04-19 11:18:00 DEBUG    SHOWQUEUE-UPDATE :: [] User-Agent: Medusa/0.5.29 (Linux; 3.14.29; dd2a7688-bfbc-11ec-8b0a-0242ac110002)
2022-04-19 11:18:01 DEBUG    SHOWQUEUE-UPDATE :: [] Searching for fanart for series 84773
2022-04-19 11:18:01 DEBUG    SHOWQUEUE-UPDATE :: [] Fetching image from http://image.tmdb.org/t/p/original/uVukvj5r9jEMva78IfaGWMNwGe.jpg
2022-04-19 11:18:01 DEBUG    SHOWQUEUE-UPDATE :: [] GET URL: http://image.tmdb.org/t/p/original/uVukvj5r9jEMva78IfaGWMNwGe.jpg [Status: 200]
2022-04-19 11:18:01 DEBUG    SHOWQUEUE-UPDATE :: [] User-Agent: Medusa/0.5.29 (Linux; 3.14.29; dd2a7688-bfbc-11ec-8b0a-0242ac110002)
2022-04-19 11:18:01 INFO     SHOWQUEUE-UPDATE :: [] Cache check completed
2022-04-19 11:18:01 DEBUG    SHOWQUEUE-UPDATE :: [] 84773: Finished update of The Lord of the Rings: The Rings of Power
2022-04-19 11:18:01 DEBUG    SHOWQUEUE-UPDATE :: [] 84773: Queueing show refresh for The Lord of the Rings: The Rings of Power
2022-04-19 11:18:04 INFO     SHOWQUEUE-REFRESH :: [] 84773: Performing refresh on The Lord of the Rings: The Rings of Power
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] 84773: Loading all episodes from the show directory: /tv/series/The Lord of the Rings
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] 84773: Found files: []
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] 84773: Loading all episodes from 'The Lord of the Rings: The Rings of Power' with a location from the database
2022-04-19 11:18:04 INFO     SHOWQUEUE-REFRESH :: [] Trying to clean any empty folder under /tv/series/The Lord of the Rings
2022-04-19 11:18:04 INFO     SHOWQUEUE-REFRESH :: [] 84773: Updating NFOs for show with new indexer info
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking if /tv/series/The Lord of the Rings/tvshow.nfo exists: True
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Metadata provider KODI 12+ updating series indexer info metadata file for The Lord of the Rings: The Rings of Power
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking if /tv/series/The Lord of the Rings/.plexmatch exists: True
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Metadata provider Plex updating series indexer info metadata file for The Lord of the Rings: The Rings of Power
2022-04-19 11:18:04 WARNING  SHOWQUEUE-REFRESH :: [] Received an invalid XML for The Lord of the Rings: The Rings of Power, try again later. Error: syntax error: line 1, column 0
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking if /tv/series/The Lord of the Rings/tvshow.nfo exists: True
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking if /tv/series/The Lord of the Rings/.plexmatch exists: True
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] 84773: Writing NFOs for all episodes
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] 84773: Checking & filling cache for show The Lord of the Rings: The Rings of Power
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Searching for images for series id 84773
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking KODI metadata for banner
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking KODI 12+ metadata for banner
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking Mede8er metadata for banner
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking MediaBrowser metadata for banner
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking Plex metadata for banner
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking Sony PS3 metadata for banner
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking TIVO metadata for banner
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Checking WDTV metadata for banner
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Searching for banner for series 84773
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Unable to retrieve image to save in /config/cache/images/tmdb/84773.banner.jpg, skipping
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Searching for banner_thumb for series 84773
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Unable to retrieve image to save in /config/cache/images/tmdb/thumbnails/84773.banner.jpg, skipping
2022-04-19 11:18:04 INFO     SHOWQUEUE-REFRESH :: [] Cache check completed
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] Looking up XEM scene mapping for show ID 84773 on tmdb
2022-04-19 11:18:04 DEBUG    SHOWQUEUE-REFRESH :: [] TMDB is an unsupported indexer in XEM
```


Discussion:
Yes it should not try to parse it at all.
I'll take a look at it

Also there is a typo imho in medusa/metadata/plex.py :
`flexmatch` instead of `plexmatch` in variables names.
https://github.com/pymedusa/Medusa/blob/e4870f8f4a322e67c77434597ccc09aa6524aa05/medusa/metadata/plex.py#L193-L199

Resolving patch:
diff --git a/medusa/metadata/plex.py b/medusa/metadata/plex.py
--- a/medusa/metadata/plex.py
+++ b/medusa/metadata/plex.py
@@ -114,31 +114,31 @@ def write_show_file(self, show_obj):
         if not data:
             return False
 
-        flexmatch_file_path = self.get_show_file_path(show_obj)
-        flexmatch_file_dir = os.path.dirname(flexmatch_file_path)
+        plexmatch_file_path = self.get_show_file_path(show_obj)
+        plexmatch_file_dir = os.path.dirname(plexmatch_file_path)
 
         try:
-            if not os.path.isdir(flexmatch_file_dir):
+            if not os.path.isdir(plexmatch_file_dir):
                 log.debug(
                     'Metadata directory did not exist, creating it at {location}',
-                    {'location': flexmatch_file_dir}
+                    {'location': plexmatch_file_dir}
                 )
-                os.makedirs(flexmatch_file_dir)
-                helpers.chmod_as_parent(flexmatch_file_dir)
+                os.makedirs(plexmatch_file_dir)
+                helpers.chmod_as_parent(plexmatch_file_dir)
 
             log.debug(
-                'Writing show flexmatch file to {location}',
-                {'location': flexmatch_file_dir}
+                'Writing show plexmatch file to {location}',
+                {'location': plexmatch_file_dir}
             )
 
-            flexmatch_file = io.open(flexmatch_file_path, 'wb')
-            flexmatch_file.write(data.encode('utf-8'))
-            flexmatch_file.close()
-            helpers.chmod_as_parent(flexmatch_file_path)
+            plexmatch_file = io.open(plexmatch_file_path, 'wb')
+            plexmatch_file.write(data.encode('utf-8'))
+            plexmatch_file.close()
+            helpers.chmod_as_parent(plexmatch_file_path)
         except IOError as error:
             log.error(
                 'Unable to write file to {location} - are you sure the folder is writable? {error}',
-                {'location': flexmatch_file_path, 'error': error}
+                {'location': plexmatch_file_path, 'error': error}
             )
             return False
 
@@ -190,11 +190,11 @@ def write_ep_file(self, ep_obj):
 
         :param ep_obj: Episode object for which to create the metadata
         """
-        # Parse existing .flexmatch data
-        flexmatch_file_path = self.get_show_file_path(ep_obj.series)
-        flexmatch_file_dir = os.path.dirname(flexmatch_file_path)
+        # Parse existing .plexmatch data
+        plexmatch_file_path = self.get_show_file_path(ep_obj.series)
+        plexmatch_file_dir = os.path.dirname(plexmatch_file_path)
 
-        with open(flexmatch_file_path) as f:
+        with open(plexmatch_file_path) as f:
             current_content = f.readlines()
 
         data = self._ep_data(current_content, ep_obj)
@@ -202,26 +202,26 @@ def write_ep_file(self, ep_obj):
         if not data:
             return False
 
-        if not (flexmatch_file_path and flexmatch_file_dir):
-            log.debug('Unable to write episode flexmatch file because episode location is missing.')
+        if not (plexmatch_file_path and plexmatch_file_dir):
+            log.debug('Unable to write episode plexmatch file because episode location is missing.')
             return False
 
         try:
-            if not os.path.isdir(flexmatch_file_dir):
+            if not os.path.isdir(plexmatch_file_dir):
                 log.debug('Metadata directory missing, creating it at {location}',
-                          {'location': flexmatch_file_dir})
-                os.makedirs(flexmatch_file_dir)
-                helpers.chmod_as_parent(flexmatch_file_dir)
+                          {'location': plexmatch_file_dir})
+                os.makedirs(plexmatch_file_dir)
+                helpers.chmod_as_parent(plexmatch_file_dir)
 
-            log.debug('Writing episode flexmatch file to {location}',
-                      {'location': flexmatch_file_path})
+            log.debug('Writing episode plexmatch file to {location}',
+                      {'location': plexmatch_file_path})
 
-            with open(flexmatch_file_path, 'w') as outfile:
+            with open(plexmatch_file_path, 'w') as outfile:
                 outfile.write('\n'.join(data))
 
-            helpers.chmod_as_parent(flexmatch_file_path)
+            helpers.chmod_as_parent(plexmatch_file_path)
         except IOError:
-            log.error('Unable to write file to {location}', {'location': flexmatch_file_path})
+            log.error('Unable to write file to {location}', {'location': plexmatch_file_path})
             return False
 
         return True
@@ -253,6 +253,10 @@ def retrieveShowMetadata(self, folder):
         """Disable retrieve show by metadata."""
         return None, None, None
 
+    def update_show_indexer_metadata(self, show_obj):
+        """Disable update show metadata."""
+        return
+
 
 # present a standard "interface" from the module
 metadata_class = PlexMetadata


Test patch: