Giter Site home page Giter Site logo

cmus-syncthing's People

Stargazers

 avatar  avatar  avatar  avatar

cmus-syncthing's Issues

Deleted playlists in the playlists directory are not regenerated

How to reproduce the bug ?

  • run cmus-syncthing.py
  • manually delete a playlist from playlists in the syncthing directory
  • run cmus-syncthing.py again

What is the current behavior ?

The deleted playlist is not regenerated.

How should it behave ?

The playlist should be regenerated.

Move terminal UI code into main.py

TUI code is currently in cmus_syncthing.py.
It would be more convenient to raise exceptions in cmus_syncthing.py and to catch them in main.py.
main.py would then generate console output accordingly.

Avoid two instances running simultaneously

How to reproduce the bug ?

Steps to reproduce the behavior:

  1. Run cmus-syncthing.py to copy a long playlist. It has to take enough time to be able to execute 2 simultaneously
  2. Run cmus-syncthing.py while 1 is running

What happens ?

Both instances run concurrently, which might cause them to write simultaneously to the same file.

How should it behave ?

2 should stop running if 1 is running.

Is there some additional relevant context-specific piece of information worth sharing ?

No.

Add a verbose mode option in cmus-syncthing.conf

There is currently no output to stdout when running cmus-syncthing if no critical errors occur.
This option would allow those who run cmus-syncthing manually to get a comprehensive output of the operations being executed. These operations would include :

  • file copy
  • file deletion
  • playlist deletion

Non existing file in playlists causes crash

How to reproduce the bug ?

Steps to reproduce the behavior:

  1. Go to ~/.config/cmus/playlists
  2. Create a new playlist test
  3. Add a track test.mp3 to the playlist that does not exist
  4. Run cmus-syncthing.py

What happens ?

cmus-syncthing raises a FileNotFoundError exception when trying to copy the file.

How should it behave ?

cmus-syncthing should handle properly the exception and warn about a missing file.

Is there some additional relevant context-specific piece of information worth sharing ?

No.

Similarly-named tracks overwrite each other

How to reproduce the bug ?

  • create a playlist in cmus
  • add a track named A.mp3 to the newly created playlist
  • add a different track with the same filename A.mp3 to the newly created playlist
  • rune cmus-syncthing.py

What is the current behavior ?

The newly created playlist will contain two entries, but each of them will point to the same file A.mp3.

How should it behave ?

Each entry should point to two different files corresponding to two different tracks, even though they have the same filename.

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.