code: def _configHasProfile(self):
          
  
          for i, config_file in enumerate(self.config_files):
              if os.path.exists(config_file):
                  with open(config_file) as f:
                      config_string = f.read()
                  if "[pyradio]" in config_string:
                      if i == 0:
                          self.PROFILE_FROM_USER = True
                      return 1
          return 0
docs: Checks if mpv config has [pyradio] entry / profile.
  
          Profile example:
  
          [pyradio]
          volume-max=300
          volume=50