Skip to content

Commit

Permalink
use autocreate-playlist instead of auto-load-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
stax76 committed Oct 10, 2024
1 parent da17608 commit 3de72df
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
10 changes: 8 additions & 2 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@
- Polish translation fixed. German, Turkish and Japanese translation updated.
French translation added! Thanks to the translation team!
- Support of relative folders from command line.
- Support for the mpv option `cursor-autohide` has been added.
- Support for the mpv option `cursor-autohide`.
- A issue with the support of the mpv property `title-bar` has been fixed,
at the moment this is most useful for users of the popular uosc user script,
the mpv built-in OSC doesn't fully support it yet.
- Set `media-controls=yes` by default.
- `media-controls=yes` is now enabled by default, this enables play controls
in the `KDE Connect` android app.
- The mpv.net option `auto-load-folder` by default is now disabled and the
option is deprecated. The reason for this is mpv has new native support
for it using `autocreate-playlist`, which mpv.net uses now instead by default.
- New zhongfly libmpv x64 build.
- New Andarwinux libmpv ARM64 build.


# v7.1.1.1 Beta (2024-07-20)
Expand Down
6 changes: 5 additions & 1 deletion docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,11 @@ are used as defined by autofit and start-size. Default: 1500

#### --auto-load-folder=\<yes|no\>

For single files automatically load the entire directory into the playlist.
For single files automatically load the entire directory
into the playlist. This option by default is disabled.
The option is deprecated because mpv now has native
support for it using `autocreate-playlist`,
which by default mpv.net sets to `autocreate-playlist=filter`.


### General
Expand Down
2 changes: 1 addition & 1 deletion src/MpvNet/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class AppClass
public string CommandLine { get; set; } = Environment.CommandLine;
public string MenuSyntax { get; set; } = "#menu:";

public bool AutoLoadFolder { get; set; } = true;
public bool AutoLoadFolder { get; set; }
public bool DebugMode { get; set; }
public bool Exit { get; set; }
public bool IsTerminalAttached { get; } = Environment.GetEnvironmentVariable("_started_from_console") == "yes";
Expand Down
1 change: 1 addition & 0 deletions src/MpvNet/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public void Init(IntPtr formHandle, bool processCommandLine)
SetPropertyBool("input-builtin-bindings", false);
SetPropertyBool("input-media-keys", true);

SetPropertyString("autocreate-playlist", "filter");
SetPropertyString("media-controls", "yes");
SetPropertyString("idle", "yes");
SetPropertyString("screenshot-directory", "~~desktop/");
Expand Down

0 comments on commit 3de72df

Please sign in to comment.