Skip to content

Commit

Permalink
fix syntax warnings on 3.12 (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent authored Mar 20, 2024
1 parent e39978a commit f8c1f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mps_youtube/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def _get_mpv_version(exename):

def _get_mplayer_version(exename):
o = subprocess.check_output([exename]).decode()
m = re.search('MPlayer SVN[\s-]r([0-9]+)', o, re.MULTILINE|re.IGNORECASE)
m = re.search(r'MPlayer SVN[\s-]r([0-9]+)', o, re.MULTILINE|re.IGNORECASE)

ver = 0
if m:
Expand All @@ -510,7 +510,7 @@ def _get_mplayer_version(exename):

def _get_metadata(song_title):
''' Get metadata from a song title '''
t = re.sub("[\(\[].*?[\)\]]", "", song_title.lower())
t = re.sub(r"[\(\[].*?[\)\]]", "", song_title.lower())
t = t.split('-')

if len(t) != 2: # If len is not 2, no way of properly knowing title for sure
Expand Down

0 comments on commit f8c1f1d

Please sign in to comment.