Giter Site home page Giter Site logo

mpv-persist-properties's People

Contributors

d87 avatar po5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mpv-persist-properties's Issues

Script is not working on Winows with portable_config

Hi, The script does not work in Win 8.1 with portable_config. I have placed script, persist-properties.lua, in /portable_config/scripts. The conf file, persist_properties.conf, is placed in portable_config/script-opts.

So far tried to name both script and conf file similarly, placing the script file in /script and removing volume=## from mpv.conf. None of which worked. I am using latest windows build of mpv by shinchiro.

`persistent_config.json` don't save in `APPDATA`

persist-properties.lua saves persistent_config.json in APPDATA, which I do not want, I want it to detect where my mpv.conf and the rest of the files are, and save the persistent_config.json there.
For example: If I save everything on C:/mpv, I want persistent_config.json to be saved there aswell, not in APPDATA.

Save videos volume separately

Hi,
thanks for this script, but I missed one important feature: saving volume of different videos independently.

For example, when I watch some streams or films, sometimes the volume is not enough so I have to turn it up. But when I watch some music clips, it is often necessary to turn it down. Script saves volume between player sessions, but I would like it to save volume separately for each video.

Can you implement this feature?

Config file should be `persist_properties.conf` with the underscore

As subject, the filename mentioned in the README.md is incorrect.

Despite the script name is persist-properties.lua with the hyphen,
mp.get_script_name() will format the filename with underscores and return 'persist_properties'.
Such value will be used as the identifier, when omitted, in
options.read_options(table [, identifier [, on_update]])
which is the case in the script.

Fixing the above reveals another issue when a non-number property is saved and later loaded.
[persist_properties] Lua error: ...\user\AppData\Roaming/mpv/scripts/persist-properties.lua:65: bad argument #2 to 'set_property_number' (number expected, got boolean)

I believe the following line in the onInitialLoad function,
mp.set_property_number(name, value)
should be
mp.set_property_native(name, value)
(or with set_property and ensuring value to be a string?)
Although I'm new to the mpv scripting API and haven't read all the document to be totally sure yet.

By the way thanks for the useful script.

Add a license

Publishing code without a license, even if it's a small script, is a worst practice: nobody knows what to do with it, if it's fine to redistribute, to modify, or if someone should pay you a fee just to look at it.

If you just don't want to think about licensing and allow people to do anything with it, which is what I guess are your intentions, the best licenses for that are the MIT, the Unlicense, and the WTFPL.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.