Commit Graph
86 Commits
Author SHA1 Message Date
Serene-Arc a6e5201ff3 Apply formatting tools to all files
This is 'the big one', which touches every file so that it all conforms
to the given standard.
2023-10-22 09:53:18 +10:00
Andrew Rogl 1ec87a3bdd pyupgrade beetsplug and tests
All tests working
More tidy up to be done
2021-08-26 19:12:51 +10:00
Adrian Sampson 2f5f9ea174 Remove shlex_split utility
This works around a bug that does not exist in Python 3.x, and the
workaround (by calling the underlying shlex.split function with bytes)
was causing crashes on some versions of Python 3. Seemed to work fine on
3.10-dev, though, oddly.
2021-08-19 17:14:16 -04:00
Mike 1d32849daa Add ability for play plugin to emit utf8 BOM 2018-06-08 23:26:48 -06:00
j000 5a82c7ead1 Remove whitespaces from empty line 2017-09-27 23:31:35 +02:00
j000 77e8f21094 [Play plugin]Respect relative paths when using albums 2017-09-26 03:20:00 +02:00
xarph 02aa6191c1 rename --force to --yes in play plugin
fix some pep8 goo
2017-04-19 10:51:44 -07:00
xarph ffcaf33845 add -f argument to play command 2017-04-18 15:30:24 -07:00
nath@home 920784a42d Play: handle plural in warning output 2017-03-23 22:46:23 +01:00
Adrian Sampson 6b9d766082 Remove compatibility with misspelled config option
This has been hanging around long enough; it's about time to drop the old
name.
2017-01-07 17:09:51 -05:00
diomekes 8d613425fd small docstring rewrite 2017-01-06 23:46:16 -05:00
diomekes 8d97257647 use shlex_split, clean up code and docs 2017-01-03 22:10:35 -05:00
diomekes ab4246c5db add prompt choice to play items before import
fix line number

add comments
2016-12-30 23:51:20 -05:00
Adrian Sampson c241f09bce Tiny text tweaks for #2144 2016-07-27 14:56:55 -04:00
xarph be7c9d3b67 Remove unneeded if clause since .format will silently pass if the needle
is not found.
Add changelog note.
2016-07-27 11:23:37 -07:00
xarph 349a3260f8 Apparently py34-flake8 wants whitespace around operators. 2016-07-26 16:08:52 -07:00
xarph 9fb763e151 fix bug where $args would be included in the command output if $args was
set in config but -A or --args was left off the beet play command.
2016-07-26 15:41:45 -07:00
Johnny Robeson f82f5f51a4 use !r for command exec logging in play plugin
This is a bit simpler and is compatible with py2 and 3.
2016-07-10 06:00:53 -04:00
Johnny Robeson a15ae96616 add a missing text_string in play plugin
I don't think wanna send the cli args as bytes to the logger
2016-07-04 02:48:54 -04:00
Johnny Robeson 6b3cc6ff37 adapt print_() callers to send unicode strings 2016-06-29 03:17:02 -04:00
Johnny Robeson 6745759ea5 open even more files in binary mode
* play plugin
* smartplaylist plugin
2016-06-13 05:18:33 -04:00
Adrian Sampson e54c7eec3d Standardize __future__ imports without parentheses
Since the list is short enough now, we don't need parentheses for the line
wrap. This is a little less ugly.
2016-02-28 15:03:51 -08:00
Peter Kessen 456565b6f2 Removed import of unicode_literals from plugins
* play
* plexpudate
* random
* replaygain
2016-02-20 14:22:45 +01:00
nath@laptop 6e2b249c54 fix-typos: Write changelog
Also stealth-reformulate a recent comment of mine which contained
another (!) typo
2016-01-06 11:18:39 +01:00
nath@laptop 1e72ba75c7 play: Preserve backwards compat when fixing typos 2016-01-06 10:12:45 +01:00
nath@laptop 72056e8e07 play: Fix typo treshold > threshold:
We should warn users that the corresponding config key changed accordingly.
2016-01-06 09:21:37 +01:00
Jesse Weinstein 246afda9c4 Actually, push the job off on the caller 2016-01-03 13:07:27 -08:00
nath@laptop 775ac4ed83 play: Log exception from os call more accurately
Depending on raw or not, we do not necessarily play a 'playlist'. Use 'query' generically instead.
2015-12-31 21:49:03 +01:00
nath@laptop f685a59e71 play: remove dead code
This piece of code won't ever execute because interactive open terminates python execution
2015-12-31 13:51:18 +01:00
Jack Wilsdon 12cd5306b7 Update copyright dates to 2016 2015-12-30 15:42:06 +00:00
Peter Kessen 3eb8008b11 added encoding as comment in files
added line like
# -*- coding: utf-8 -*-
to all files with correct license in header
2015-11-19 18:41:01 +01:00
Adrian Sampson 3475b91c00 Remove unused import
Oops. I was trying to use shlex.quote, but that's Python 3.3+.
2015-09-30 10:32:37 -07:00
Adrian Sampson 2607bee997 Tiny fixes for play 2015-09-30 10:11:17 -07:00
nath@home ff4fda1bb5 play: make the many files warning configurable
The warning_treshold key in the play configuration defines the
minimum number of file before a warning is issued (default 100).
A zero value means no warning is ever issued.

This is the first commit for this feature, and this should fully
implement it.
2015-09-03 22:19:51 +02:00
nath@home b9bc06d9d8 play-raw: Rename the command target:
passed_to_command -> open_args
2015-09-01 23:42:43 +02:00
nath@home 9c663432bd Refactor util/interactive_open: multiple targets
interactive_open should now be invoked with at least the list of
targets and optionally the command to open the targets with.
This allows beets-play to pass multiple file paths directly to
the configured command.

The changes to the existing invocations are pretty trivial in
order to comply to this refactor.
2015-09-01 23:42:42 +02:00
nath@home 4eb563a08c pep8: Correct camelCase to snake_case 2015-09-01 23:42:42 +02:00
nath@home a23c5d4f67 play-raw: Call vlc with one file par arg 2015-09-01 23:42:42 +02:00
nath@home 18d5c3b0a0 play-raw: Add the option to play the raw queried pathes
I slightly rewrote the play plugin in order to improve
the readability and to introduce the "raw" play config
option which makes beet simply pass a list of pathes
to the play command rather than a playlist.
2015-09-01 23:42:42 +02:00
Adrian Sampson 759c79c426 play: Insert arguments anywhere (#1532) 2015-08-16 09:23:09 -07:00
Adrian Sampson ab7e9d4db2 Simplify #1532: CLI only, append to end 2015-08-14 19:52:49 -07:00
Adrian Sampson 7b6c773a3f Cleanup for #1532 2015-08-14 19:44:11 -07:00
Oliver Rümpelein 94258110a7 Forgot to remove an if-statement. 2015-08-03 17:01:56 +02:00
Oliver Rümpelein 69377291ff Try to fix TravisCI-errors. 2015-08-02 21:08:44 +02:00
Oliver Rümpelein 90bb4081fe Implemented --args-feature
* as discussed in #1532, with args-parameter, and optionally
   inserted config-key
 * updated changelog/docs
2015-08-02 20:44:56 +02:00
Oliver Rümpelein 5f9068cb50 Implemented Idea 2 from #1532
* New argument `--optargs` reads string from option
 * If "{}" is present in the given string, the `optargs`
   from config-file get inserted at that point.
2015-08-01 13:55:17 +02:00
Oliver Rümpelein 3b6373541a Fixed Errors indicated by travis-ci
See https://travis-ci.org/sampsyo/beets/jobs/69335554
2015-07-05 15:00:46 +02:00
Oliver Rümpelein 3b2c3a5b31 Renamed options, corrected small typos. 2015-07-02 20:46:10 +02:00
Oliver Rümpelein 0a995c218a Added optional argument for play-plugin
* New config key "play -> optargs"
 * New Subcommand argument "-o", "--optargs"
 * Set position using "{}" within "play -> command"-string
2015-07-02 20:25:54 +02:00
Bruno Cauet 650305c9a1 All suitable plugins use CommonOptionsParser features 2015-03-05 17:03:02 +01:00