Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users/modnaruser/audio codec flag #14

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ModnarUser
Copy link

Added cli flag for setting audio codec (flac/mp3) because I was finding myself converting everything to mp3 anyway ;)

@ModnarUser
Copy link
Author

successfully tested with a bunch of songs and the following invocations:

  • ./spotrec.py -o ./my_song_dir --skip-intro --audio-codec mp3
  • ./spotrec.py -o ./my_song_dir --skip-intro
  • ./spotrec.py -o ./my_song_dir --skip-intro --audio-codec flac

Copy link

@NicoHood NicoHood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice Patch!

@ModnarUser ModnarUser closed this Oct 8, 2021
@ModnarUser ModnarUser reopened this Oct 8, 2021
self.tmp_file_prefix = "."
self.filename = self.tmp_file_prefix + \
os.path.basename(file) + ".flac"
if _tmp_file:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line raises a Name Error:

[Spotify] State changed: Playing
[SpotRec] Starting recording
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
    self.run()
  File "/opt/SpotRec/./spotrec.py", line 358, in run
    ff.record(self.out_dir,
  File "/opt/SpotRec/./spotrec.py", line 463, in record
    if _tmp_file:
NameError: name '_tmp_file' is not defined
[Spotify] State changed: Paused
``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants