Commit Graph

1173 Commits

Author SHA1 Message Date
Samantha Baldwin
7553151520 add requests to travis config 2017-09-04 21:31:58 -04:00
Samantha Baldwin
bfa0308880 AccurateRip V2 support
- output path no longer has fallbacks
- refactor accuraterip cache
- use requests to download accuraterip entries
- add tests for accuraterip functionality
- remove gobject support from accuraterip-checksum calculation
- default track template now includes extension
- begin to remove support for continuing rip
- begin to use print instead of sys.stdout.write() throughout
2017-09-04 21:26:34 -04:00
JoeLametta
3f248bfc00 Merge pull request #159 from sqozz/devision_zero
Fix division by zero
2017-08-02 10:26:20 +02:00
Sqozz
e84361b653 Fix division by zero 2017-07-28 18:27:42 +02:00
JoeLametta
af18471cba Fix failing unittest in systemd-nspawn
Fixes #157
Only test_common_directory.py is changed because the other unittest is working as expected (the failure isn't related to whipper).
2017-06-30 18:17:29 +02:00
JoeLametta
893139f683 Update README.md
Fixes #152
Fixes #165
2017-06-19 14:19:56 +02:00
gorgobacka
4b3d462b16 Detect and handle CD-R discs (#154)
* Use cdrdao to detect CD-Rs and continue ripping only if the argument --cdr is passed.

* Get and display disc format from MusicBrainz.

* Add info about CD-R detection to logger

* Remove Musicbrainz medium format info

* add cdrdao command to logger

* Fix for PEP8

* Fix line break
2017-06-06 11:12:00 +02:00
JoeLametta
fe4cf1a745 Merge pull request #153 from Freso/issue-127-always-disambiguate-on-release
Disambiguate on release
2017-06-05 13:28:02 +02:00
Frederik “Freso” S. Olesen
a0c0ce7e47 Fix(/ignore) PEP8/flake8 errors 2017-06-01 02:31:03 +02:00
Frederik “Freso” S. Olesen
5ba3e924fb Refactor Program.getPath disambiguation logic to .addDisambiguation 2017-05-31 23:33:07 +02:00
Frederik “Freso” S. Olesen
b0d047ded1 Add unittest for new Program.addDisambiguation() method 2017-05-31 23:33:07 +02:00
Frederik “Freso” S. Olesen
2465f03337 Add disambiguation to the end of template strings w/o "%d" 2017-05-31 23:33:07 +02:00
Frederik “Freso” S. Olesen
4512cd3919 Test that disambigation is added to templates without "%d" 2017-05-31 23:33:06 +02:00
Frederik “Freso” S. Olesen
e5f2afe0db Break out of disambiguation loop once disambig has been added
Instead of iterating over all the path parts and added disambiguation to
each, it now only adds the disambiguation to the first match.
2017-05-31 23:33:06 +02:00
Frederik “Freso” S. Olesen
f3e3748d75 Test that disambiguation is only added once 2017-05-31 23:33:06 +02:00
Frederik “Freso” S. Olesen
a14989583e Use regular str.split() to split template parts in disambiguation
os.path.split() only even splits into two components, which means that
path templates that have more than two parts (e.g., `%A/%d - %y/%X`)
will not get split properly for the purpose of added disambiguation
parts to them.

os.path.join() will still work fine to splice the split template back
together as it takes an arbitrary number of arguments.
2017-05-31 23:33:06 +02:00
Frederik “Freso” S. Olesen
12e52da55d Add more template test cases to testDisambiguateOnRelease
Some of these might not occur in the wild, but we theoretically support
them at least, and making sure they work might catch other issues we
didn't think of yet.
2017-05-31 23:33:06 +02:00
Frederik “Freso” S. Olesen
3f30f1d46f Always disambiguate in the release title part of the template
Fixes https://github.com/JoeLametta/whipper/issues/127
2017-05-31 23:31:15 +02:00
Frederik “Freso” S. Olesen
846ee04a5f Add test case illustrating https://github.com/JoeLametta/whipper/issues/127 2017-05-31 23:31:15 +02:00
JoeLametta
5e4303fdbf Merge pull request #160 from Freso/flake8-clean
Stop allowing flake8 to fail in Travis CI
2017-05-31 23:23:22 +02:00
Frederik “Freso” S. Olesen
dd6d1d0579 Stop allowing flake8 to fail in Travis CI
Commit b6fb7e8a86 fixes all current flake8
errors, so unsetting this `allow_failures` makes sure that any PEP8 or
similar syntax mistakes get caught immediately.
2017-05-31 23:14:54 +02:00
JoeLametta
b6fb7e8a86 Solve all flake8 warnings (#163)
Whipper is now fully PEP8 compliant.
Revised version which includes all the changes suggested by Freso.
2017-05-31 23:09:36 +02:00
JoeLametta
b331f53b47 Merge pull request #161 from Freso/minor-touchups
Minor touchups
2017-05-21 10:08:17 +02:00
Frederik “Freso” S. Olesen
b4539d1f80 Change "THOMAS" print statement to logger.debug() call
I left the "THOMAS" part in for now, but this seems more like a debug
message than a user facing message to me—but it was also obviously
something @thomasvs left in for himself, so maybe the whole if clause
has no reason to still be there and should just get removed.
2017-05-19 19:07:16 +02:00
Frederik “Freso” S. Olesen
52731e97c0 Remove old, commented out code
Some of this seems to be debug code which has been left in, some of it
seems to just be old code that was commented out and never put back in
and probably just forgotten about. Either way, we use git for a reason,
so there's no need for these code snippets to stick around. The code
history can be inspected and old code retrieved that way.
2017-05-19 19:05:11 +02:00
Frederik “Freso” S. Olesen
8ebd329a19 Fix capitalisation of MusicBrainz everywhere
Make MusicBrainz consistently written as "MusicBrainz" and not
"musicbrainz" or "Musicbrainz".
Doesn't change instances that refer to the Python module or similar.
2017-05-19 01:16:45 +02:00
Frederik “Freso” S. Olesen
e75a54ee01 Fix typo in inline comment ("Ingore" → "Ignore") 2017-05-19 01:05:07 +02:00
JoeLametta
5b2639a329 Merge branch 'Freso-misc-file-cleanup' 2017-05-03 17:08:39 +02:00
JoeLametta
a3a592dc09 Merge branch 'misc-file-cleanup' of https://github.com/Freso/morituri into Freso-misc-file-cleanup
Conflicts:
	misc/show-coverage.py
2017-05-03 17:08:27 +02:00
JoeLametta
4fa8c4b9d2 Merge pull request #151 from Freso/flake8-fixups
Add flake8 testing to CI
2017-05-03 16:40:20 +02:00
Frederik “Freso” S. Olesen
f0692ba7d7 Remove "misc/whipper-uninstalled"
A script that sets up an environment for running whipper without
actually installing it. With the clean ups that have happened to whipper
as well as later developments in the Python eco system, simply setting
up a virtualenv and running whipper from within that seems like a more
reasonable approach at this time.

This also fixes https://github.com/JoeLametta/whipper/issues/47 by
removing the "morituri-uninstalled mode" completely. :)
2017-04-28 23:24:09 +02:00
Frederik “Freso” S. Olesen
0055e5367e Remove "misc/pycheckerrc"
Not actually used by anything in the current codebase and PyChecker
doesn't seem to be the recommended Python code style checker or linting
tool currently. If we need a configuration file for another tool later
on, we can make one then based on current need and wants.
2017-04-28 22:53:32 +02:00
Frederik “Freso” S. Olesen
99e146333d Add more statistics to flake8 output 2017-04-28 14:02:16 +02:00
Frederik “Freso” S. Olesen
82c990e030 Use in instead of deprecated .has_key() method 2017-04-28 13:54:38 +02:00
Frederik “Freso” S. Olesen
6be899632d Fix flake8 whitespace warnings.
Guided by the output of `flake8 --select=W`.
2017-04-28 13:47:11 +02:00
Frederik “Freso” S. Olesen
6c33d37b55 Run flake8 in Travis CI 2017-04-28 13:46:55 +02:00
Frederik “Freso” S. Olesen
182684dc12 Remove "misc/show-coverage.py"
Was added in 2009 and not updated since. There are several Python
coverage tools out there, and the current ./COVERAGE doesn't seem to be
generated using this script either.
2017-04-28 11:07:37 +02:00
Frederik “Freso” S. Olesen
280c3f1817 Remove "misc/pep8.py" (outdated PEP8 style checker)
pep8.py was added in 2012. Since then, we now have flake8 and a number
of other really good PEP 8 (and other style, best practice, etc.) code
checkers/linters. It doesn't make sense to track this directly in the
repository. If we want to do automated code style/sanity checking, we
should add a dependency on an actually maintained program/script rather
than keeping it locally in the repository.
2017-04-28 10:55:03 +02:00
JoeLametta
fc3cdbfebf Merge pull request #109 from Freso/fix-morituri-references
Fix references to morituri.
2017-04-27 18:03:08 +02:00
Torbjörn Lönnemark
185fff3e06 Fix fe105a11.pickle
> Loaded and re-saved in a different pickle format (the initial format).
> After that it's just search/replace
2017-04-27 00:17:53 +02:00
Frederik “Freso” S. Olesen
a20c25258d Remove "Morituri - for those about to RIP" lines. 2017-04-26 23:08:50 +02:00
Frederik “Freso” S. Olesen
c719d9c077 Update filenames.
Note that the (internal) file names of
"whipper/test/cache/result/fe105a11.pickle" did not get updated, since
that breaks the tests for some reason.
2017-04-26 23:08:50 +02:00
Frederik “Freso” S. Olesen
494a86d607 Rename default logger. 2017-04-26 23:08:50 +02:00
Frederik “Freso” S. Olesen
cb0042c832 Update morituri references in inline documentation. 2017-04-26 23:08:50 +02:00
Frederik “Freso” S. Olesen
ff309e468c Rename "morituri" module to "whipper".
Fixes https://github.com/JoeLametta/whipper/issues/100
2017-04-26 23:08:28 +02:00
Frederik “Freso” S. Olesen
b51f465841 Update .gitignore (#148)
* Make git ignore files generated by setup.py install
* Make git ignore coverage.py's data collection file
2017-04-26 18:49:04 +02:00
Frederik “Freso” S. Olesen
a8af9b79ab s/morituri/whipper/ in GPL copyright blurbs. 2017-04-26 16:09:13 +02:00
JoeLametta
17b70ce82b Fix Travis CI failure
I've updated whipper's version number value in the cue sheets used for testing purposes to make it match with the internal one
2017-04-24 16:33:17 +02:00
JoeLametta
3dad52df42 Update whipper release number in init.py
I'm going to tag this as a new amended version 0.5.1: no changes were done apart from the version number bugfix.
I've also included a code coverage report.

Fixes #147
2017-04-24 16:22:51 +02:00
JoeLametta
4dbdf59456 Remove GStreamer left out from .travis.yml
No big deal, missed it in my previous commit
2017-04-24 12:12:31 +02:00