import re
import os

# Root directory that we scan for music from
# Do not change this unless you're not using the docker-compose
# It is preferred you use just change the volume mapping on the docker-compose.yml
MUSIC_DIRECTORY = os.environ.get("FTMP3_MUSIC", "/media/Music")
# Tells flask to serve the mp3 files
# Typically you'd want nginx to do this instead, as this is an
# easy way to cause concurrent response issues with flask
SERVE_FILES = True
# acceptable standard html5 compatible formats
FORMAT_MATCH = re.compile(r"\.(mp3|ogg|midi|mid)$")

# number of directories upwards to limit recursive check for cover image
COVER_IMG_RECURSION_LIMIT = 1


import re
import os

# Root directory that we scan for music from
# Do not change this unless you're not using the docker-compose
# It is preferred you use just change the volume mapping on the docker-compose.yml
MUSIC_DIRECTORY = os.environ.get("FTMP3_MUSIC", r"/media/Music/")
# Tells flask to serve the mp3 files
# Typically you'd want nginx to do this instead, as this is an
# easy way to cause concurrent response issues with flask
SERVE_FILES = True
# acceptable standard html5 compatible formats
FORMAT_MATCH = re.compile(r"(?i)\.(mp3|m4a|ogg)$")

# number of directories upwards to limit recursive check for cover image
COVER_IMG_RECURSION_LIMIT = 1


Allow for case-insensitive checking of file formats. Support m4a
Allow for case-insensitive checking of file formats.  Support m4a


  import re
  import os
  
  # Root directory that we scan for music from
  # Do not change this unless you're not using the docker-compose
  # It is preferred you use just change the volume mapping on the docker-compose.yml
- MUSIC_DIRECTORY = os.environ.get("FTMP3_MUSIC", "/media/Music")
+ MUSIC_DIRECTORY = os.environ.get("FTMP3_MUSIC", r"/media/Music/")
  # Tells flask to serve the mp3 files
  # Typically you'd want nginx to do this instead, as this is an
  # easy way to cause concurrent response issues with flask
  SERVE_FILES = True
  # acceptable standard html5 compatible formats
- FORMAT_MATCH = re.compile(r"\.(mp3|ogg|midi|mid)$")
+ FORMAT_MATCH = re.compile(r"(?i)\.(mp3|m4a|ogg)$")
  
  # number of directories upwards to limit recursive check for cover image
  COVER_IMG_RECURSION_LIMIT = 1
  
  
Allow for case-insensitive checking of file formats. Support m4a
## Code Before:
import re
import os

# Root directory that we scan for music from
# Do not change this unless you're not using the docker-compose
# It is preferred you use just change the volume mapping on the docker-compose.yml
MUSIC_DIRECTORY = os.environ.get("FTMP3_MUSIC", "/media/Music")
# Tells flask to serve the mp3 files
# Typically you'd want nginx to do this instead, as this is an
# easy way to cause concurrent response issues with flask
SERVE_FILES = True
# acceptable standard html5 compatible formats
FORMAT_MATCH = re.compile(r"\.(mp3|ogg|midi|mid)$")

# number of directories upwards to limit recursive check for cover image
COVER_IMG_RECURSION_LIMIT = 1


## Instruction:
Allow for case-insensitive checking of file formats. Support m4a
## Code After:
import re
import os

# Root directory that we scan for music from
# Do not change this unless you're not using the docker-compose
# It is preferred you use just change the volume mapping on the docker-compose.yml
MUSIC_DIRECTORY = os.environ.get("FTMP3_MUSIC", r"/media/Music/")
# Tells flask to serve the mp3 files
# Typically you'd want nginx to do this instead, as this is an
# easy way to cause concurrent response issues with flask
SERVE_FILES = True
# acceptable standard html5 compatible formats
FORMAT_MATCH = re.compile(r"(?i)\.(mp3|m4a|ogg)$")

# number of directories upwards to limit recursive check for cover image
COVER_IMG_RECURSION_LIMIT = 1

