Giter Club home page Giter Club logo

albumart-ueber's People

Contributors

georgehj avatar

Stargazers

 avatar

Watchers

 avatar  avatar

albumart-ueber's Issues

Does not work with Python 3.9

The script does not work with Python 3.9, ueberzug returns

Task exception was never retrieved
future: <Task finished name='Task-7' coro=<shutdown() done, defined at /usr/lib/python3.9/site-packages/ueberzug/layer.py:88> exception=AttributeError("type object '_asyncio.Task' has no attribute 'all_tasks'")>
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/ueberzug/layer.py", line 89, in shutdown
    tasks = [task for task in asyncio.Task.all_tasks()
AttributeError: type object '_asyncio.Task' has no attribute 'all_tasks'

Improvements to documentation needed

  • Find rights free music and album artwork for screenshots
  • Move statements of rationale to the README
  • Add list of tested terminals
  • Add a See Also section to the README
    • Link to project pages for dependencies
    • Briefly note how they are used

mpd_check() function may lead to lags

Currently the function will wait before first checking to see if mpd is running.

Test changing the order of operations within the function.

mpd_check() {
	# wait until mpd is running
	while true; do
		sleep 1
		if mpc -q 2</dev/null; then
			break
		fi
	done
}

Flickering on trackchange with ffmpeg option

Currently the tmpimgfile logic is firing on every track change regardless of whether the album changes.

Logically, there could be two states: where the file is different and where it isn't. In which case could only change when the art is different.

Use of hardcoded paths

Problem

Currently the script uses two hard coded paths for the music directory and the pictures directory.

Solutions

  • Use environmental variables
  • Use $XDG_DATA_HOME to store collateral like no-art.png?

To-do

  • Use $HOME variable for music directory and no-art path for now

Music directory logic isn't clear

mpd's music_dir can't be printed with mpc.

The following should be better explained:

  • mpc will give file paths which are absolute but start under mpd's set music directory
  • The script's variable declaration is necessary to place these paths in the proper context of the user's filesytem

To avoid confusion consider doing the following:

  • Add comments
  • Change place of script's variable declaration for music_dir

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.