<?xml version="1.0" encoding="UTF-8"?>
<!--

    BleachBit
    Copyright (C) 2008-2023 Andrew Ziem
    https://www.bleachbit.org

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

    @app Windows Media Player
    @url https://www.microsoft.com/en-us/download/media-players.aspx
    @os Windows
    @cleanerversion v2.0.0
    @cleanerdate 2019-03-21
    @cleanerby Andrew Ziem (2009-07-10 - 2009-10-04) & theatre-x (2015-02-05) & Tobias B. Besemer (2019-03-07 - 2019-03-21)
    @tested ok v???, Windows 7
    @testeddate 2019-03-10
    @testedby https://github.com/Tobias-B-Besemer
    @note 

-->
<cleaner id="windows_media_player" os="windows">
  <label>Windows Media Player</label>
  <description>Media player</description>
  <option id="mru">
    <label>Most recently used</label>
    <description>Delete the most recently used list</description>
    <action command="winreg" path="HKCU\Software\Microsoft\MediaPlayer\Player\RecentFileList"/>
    <action command="winreg" path="HKCU\Software\Microsoft\MediaPlayer\Player\RecentURLList"/>
    <action command="winreg" path="HKCU\Software\Microsoft\MediaPlayer\Player\Settings" name="OpenDir"/>
    <action command="winreg" path="HKCU\Software\Microsoft\MediaPlayer\Player\Settings" name="SaveAsDir"/>
  </option>
  <option id="cache">
    <label>Cache</label>
    <description>Delete the cache</description>
    <action command="delete" search="walk.all" path="%LocalAppData%\Microsoft\Media Player\Cache*\"/>
    <action command="delete" search="glob" path="%LocalAppData%\Microsoft\Media Player\Cache*\"/>
    <action command="delete" search="walk.all" path="%LocalAppData%\Microsoft\Media Player\Grafikcache\LocalMLS\"/>
    <action command="delete" search="walk.all" path="%LocalAppData%\Microsoft\Media Player\Transcoded Files Cache\"/>
    <!-- Let's say the temp folder is a kind of cache, too... ;-) Tobias. -->
    <action command="delete" search="file" path="%Temp%\wmsetup.log"/>
  </option>
</cleaner>
