Commit Graph

60 Commits

Author SHA1 Message Date
Frederik “Freso” S. Olesen
a8af9b79ab s/morituri/whipper/ in GPL copyright blurbs. 2017-04-26 16:09:13 +02:00
Merlijn Wajer
e7767694af Rip out all code that directly uses gstreamer
We can now rip CDs without gstreamer.

This is not the most clean attempt, but I have tried to remove most of the
code that depends on gstreamer. I hope there is not a lot of code left that
depends on code that I have removed - I can at least rip a CD fully.
2017-02-09 23:05:34 +01:00
Samantha Baldwin
d1ed80d62a argparse & logging (#92)
* introduce logcommand.Lager, Whipper(); use argparse for whipper image commands, stub logging

* update Lager docstring to mention config.Config()

* make incorrect subcommand and --version work on toplevel command

* migrate accurip show, expand Lager, do not attempt to return from Lager.__init__.

* migrate offset find, add Lager.error

* correct offset find drive symlink handling

* migrate drive

* change Lager.__init__(prog) to arg from kwarg

* but actually

* remove Whipper.usage

* add and use Lager.device_option() context manager

* help I married an axe murderer

* use unified options namespace for entire command tree

* migrate whipper cd without comprehensive config loading

* switch to logging module

- use logging instead of flog for non-extern modules
- use WHIPPER_DEBUG and WHIPPER_LOGFILE env variables

* convert self.log calls to logger.debug

* convert self.error calls to logger.error

* remove log.Loggable, use logger not logging

* Logging conversion continues

- Convert log.* calls to logger.*
- Remove morituri.common.log imports

* remove morituri.common.log from tests

* remove extern/flog, bare minimum Debug conversion

* update README for logging changes

* update soxi to use logging

* refactor Lager for more declarative subcommands

* Refactor Lager.device_option:

- inline into __init__
- throw IOError instead of Exception for missing drives
- remove CommandError checking in rip/main

* rename rip to whipper in rip.main

* convert rip.debug commands

* Rename logcommand.Lager to command.BaseCommand

- remove command.CommandError occurrences
- remove python-command external module

* remove submodules from README, update rclog formatter

* update minor ambiguity in readme for command invocation

* update version number to match setup.py

* remove gitmodules

* update version number in tests as well (boo)

* convert logger.error to logger.critical

* Change morituri.rip to morituri.command

- mv common.command to command.basecommand
- move TEMPLATES used only by rip.cd out of rip.common
- update entry point for command to command.main

* update basecommand documentation

* go pyflaking: import fixing

* replace self.stdout with sys.stdout

* remove BaseCommand.config, alphabetise imports

* convert self.stdXXX leftovers

* convert last getRootCommand to config.Config

* convert last getExceptionMessage's to str

* change musicbrainz useragent to whipper
2016-12-20 23:11:30 +01:00
Samantha Baldwin
566414c939 nuke-autohell (#54)
* remove m4 directory
* remove leftover Makefile.am after confirming its uselessness
* remove another useless autoconf Makefile.am
2016-10-21 11:33:05 +02:00
JoeLametta
2983fc3d03 Removed examples and gtk related files 2016-10-15 17:28:21 +02:00
JoeLametta
38810796ba Remove thomasvs' python-deps (#31)
* Crude removal of thomasvs' python-deps
* Fix previous commit
2016-08-27 17:33:18 +02:00
Alexei
2a3d2bb70f Removed dead link 2015-12-12 11:08:50 -08:00
Alexei
66e2f3f45b Removed bad make lines 2015-12-12 11:00:06 -08:00
Alexei
c7b8f95323 Removed mentions of old musicbrainz ngs directory 2015-12-12 10:45:49 -08:00
Thomas Vander Stichele
987bc91c2f make sure distcheck works too 2013-08-24 01:38:41 +02:00
Thomas Vander Stichele
d4365184c8 add make rules to trigger git submodule init/sync/update
Fixes trac bug #144
2013-08-24 01:09:53 +02:00
Thomas Vander Stichele
365415a6c5 Handle missing required argument to option. Fixes #18. 2013-07-14 09:55:35 +02:00
Thomas Vander Stichele
13a8a5f289 after updating python-musicbrainz-ngs, symlink the package dir.
upstream changed structure to create a subdirectory for the musicbrainz
package.
2013-02-06 13:36:44 +01:00
Thomas Vander Stichele
9aa95e01ac update to newer musicbrainz-ngs suggested by sanoj 2013-02-03 23:25:06 +01:00
Thomas Vander Stichele
d17e528106 Don't fail on pycdio missing. Fixes trac 128. 2013-01-30 21:55:10 +01:00
Thomas Vander Stichele
ad1cf0ff84 Handle broken pycdio 0.18 2013-01-28 22:13:25 +01:00
Thomas Vander Stichele
e5fefdadde Update to not import moap.util. Fixes #2. 2013-01-28 21:13:04 +01:00
Thomas Vander Stichele
b92280187f update python-deps 2013-01-27 22:32:46 +01:00
Thomas Vander Stichele
6ac8408f0d use python-deps to handle missing dependencies.
Apply it to gst python module.
2013-01-27 22:24:22 +01:00
Thomas Vander Stichele
434a7ca131 add python-deps to handle dependencies 2013-01-27 22:01:23 +01:00
Thomas Vander Stichele
db717e38b3 latest command 2013-01-16 08:48:09 +01:00
Thomas Vander Stichele
0306e022fb fix distcheck 2013-01-13 22:47:09 +01:00
Thomas Vander Stichele
8d014b9e76 add submodules 2013-01-13 15:54:04 +01:00
Thomas Vander Stichele
8181b76f85 here's to me being stupid 2012-11-23 15:55:57 +00:00
Thomas Vander Stichele
b292b340d1 update urls 2012-11-23 15:46:31 +00:00
Thomas Vander Stichele
001769f338 fix dist 2012-11-23 15:43:21 +00:00
Thomas Vander Stichele
3704ce31da put symlink to github checkout 2012-11-18 15:09:55 +00:00
Thomas Vander Stichele
3370acac68 * morituri/extern/task/gstreamer.py:
Fix wrong commit made to fix #89.
2012-11-18 14:57:56 +00:00
Thomas Vander Stichele
cc7d031b5e * gstreamer.py:
Only set an exception once in bus_error_cb.
	  Was triggered by morituri's checksum test, but only
	  if multiple tests were run - got the same bus error
	  twice.
2012-11-18 13:06:59 +00:00
Thomas Vander Stichele
903fade567 simplify logic; log bus error cb 2012-11-18 13:04:37 +00:00
Thomas Vander Stichele
2a0bc4a8df make a LogStub class 2012-11-18 12:31:15 +00:00
Thomas Vander Stichele
bd87a67e48 pep8 fixes 2012-11-18 12:20:18 +00:00
Thomas Vander Stichele
0fab4515c6 pep8 fixes 2012-11-11 23:00:37 +00:00
Thomas Vander Stichele
c2f827c24c pep8 fixes 2012-11-11 22:37:11 +00:00
Thomas Vander Stichele
f0c66013e3 * morituri/extern/task/gstreamer.py:
* morituri/test/test_common_checksum.py:
	  Protect backslashes in names.  Fixes #89.
2012-08-12 18:25:03 +00:00
Thomas Vander Stichele
b9af80e76d * task.py:
Add a debug statement.
2012-07-12 09:18:52 +00:00
Thomas Vander Stichele
119689205d typo 2011-10-28 18:58:48 +00:00
Thomas Vander Stichele
505e2e34c6 * morituri/extern/Makefile.am:
Hopefully fix both make and make distcheck.
2011-10-28 18:46:36 +00:00
Thomas Vander Stichele
b5fc509747 * morituri/common/Makefile.am:
* morituri/common/musicbrainzngs.py:
	* morituri/common/program.py:
	* morituri/extern/Makefile.am:
	  Use musicbrainz NGS for ripping.
	  Can now rip Weezer, the Blue Album, both discs.
2011-10-22 15:52:57 +00:00
Thomas Vander Stichele
ae93a6d5e9 * morituri/extern/Makefile.am:
* morituri/extern/musicbrainzngs/musicbrainz.py (svn:special):
	* morituri/extern/musicbrainzngs/mbxml.py (svn:special):
	* morituri/extern/musicbrainzngs (added):
	* morituri/extern/musicbrainzngs/mbxml.py (added):
	* morituri/extern/musicbrainzngs/__init__.py (added):
	* morituri/extern/musicbrainzngs/musicbrainz.py (added):
	  Pull in my fork of python-musicbrainz-ngs
2011-10-19 22:36:14 +00:00
Thomas Vander Stichele
ad71fa06db * TODO:
* morituri/extern/task/task.py:
	  Instead of chaining next in multi tasks, making the call
	  chain larger (and exceed maximum depth on track 75), schedule
	  it immediately.
2011-10-19 17:34:02 +00:00
Thomas Vander Stichele
ba3dd85dc5 * morituri/extern/task/gstreamer.py:
Query using time if DEFAULT fails.
2011-09-15 14:23:25 +00:00
Thomas Vander Stichele
e6176d8b8c doc fix 2011-08-25 11:04:20 +00:00
Thomas Vander Stichele
fdbaa33b1f * task.py:
Better logging when scheduling.
	* gstreamer.py:
	  If paused() returns True, don't go to playing.
	  add a method for querying duration in the common case.
2011-08-15 10:25:55 +00:00
Thomas Vander Stichele
ac2ab6a34a * task.py:
Remove scrubFilename call.
2011-08-08 11:37:09 +00:00
Thomas Vander Stichele
bc62f92ce4 * task.py:
Pull in getExceptionMessage privately.
2011-08-08 11:35:35 +00:00
Thomas Vander Stichele
a8c437307c * morituri/extern/task/task.py:
Also stub out log calls on Runner.
2011-08-07 18:24:01 +00:00
Thomas Vander Stichele
c8e5545776 * morituri/extern/task/task.py:
Also handle error() log calls.
2011-08-07 18:20:21 +00:00
Thomas Vander Stichele
b5e1e8da7d * gstreamer.py:
* task.py:
	  Don't rely on the log module; users that want to log
	  should first subclass from a log class that implements
	  warning/info/debug/log
2011-08-05 20:21:31 +00:00
Thomas Vander Stichele
8af605c2c0 * gstreamer.py:
Document bus and pipeline.  Make bus public.
2011-08-05 20:19:58 +00:00