Commit Graph

190 Commits (master)

Author SHA1 Message Date
AnthonyF fe2eafae4b Add another fallback date for tracks
In some cases a track may not have an album release or track release date, in this case fallback to when the track was first added to Bandcamp.
2022-05-18 11:54:02 -04:00
Anthony Forsberg 8569d6e9fe
Merge pull request #194 from relthyg/template_docs
Update docs for template variables
2022-05-08 09:24:23 -04:00
relthyg c14ef3e054 Update docs for template variables 2022-04-02 18:42:30 +02:00
AnthonyF d35c7edd4f Version bump
Sad excuse for a commit I know.
2021-12-09 22:01:46 -05:00
AnthonyF 439be8417c Backport fix from 1.0.0-dev-r1, correct build command 2021-12-09 21:59:14 -05:00
AnthonyF 1b424c90ce Python version fix for workflow 2021-12-09 21:43:13 -05:00
AnthonyF 67cd64f3ce Version fix, github actions update 2021-12-09 21:41:11 -05:00
AnthonyF e0b2ca8f4f Merge remote-tracking branch 'origin/master' 2021-12-09 21:22:00 -05:00
Anthony Forsberg e8721a663e
Provide date and label as template variables (#187) 2021-12-09 21:23:22 -05:00
AnthonyF cf9d43fed2 Housekeeping + Minor bugfixes
Fixed: #186, #188, #189

Cleaned up lingering `.format()`s and replaced with appropriate f-strings.

Updated project structure to slightly more modern standards.
2021-12-09 21:18:42 -05:00
relthyg 391646f59e Provide date and label as template variables 2021-08-14 12:17:09 +02:00
Anthony Forsberg 3019b26c46
Create CODE_OF_CONDUCT.md
Adding code of conduct via Github site for conveniences sake.
2021-01-14 17:13:14 -05:00
Anthony Forsberg 87d0c25467 Update issue templates
Adding Issue Templates via the Github site bacause I'm lazy and don't want to look up the filenames/locations.
2021-01-14 17:09:53 -05:00
AnthonyF 6c8d802248 Auto install dependency wheel 2021-01-10 16:17:08 -05:00
AnthonyF e4ed3096ff Workflow change 2021-01-10 16:15:08 -05:00
AnthonyF 4a33f4a405 Small correction in build commands 2021-01-10 15:29:40 -05:00
AnthonyF f0b23a38be Add workflow for automated PyPI builds
Currently points to TestPyPI until keys can be made.
2021-01-10 15:23:30 -05:00
AnthonyF f3e91a7d4d Exposed slugify args
Enhanced flexibility when naming output files:
Example: `--template="%{artist}/%{album}/%{track}-%{title}" --space-char="_"`

Would produce "scene" style filenames.

Also added is the ability to:
 - Retain upper case letters
 - Leave spaces intact
 - Convert characters to ASCII (北京 -> beijing)
 - Allow additional characters like `()[];` etc
2021-01-10 15:03:53 -05:00
Nightdavisao 0b9ce91621
change the matching <script> type attribute (#171) 2020-10-16 20:29:07 -04:00
ViperZer0 4a5e14b8f1
Added multiple URL functionality. (#160)
* Added multiple URL functionality.

* removed debug messages
2020-09-27 08:11:01 -07:00
Piotr Patrzyk 3d3a524af2
Jsdatafix (#167)
* bandcampjson simplify

* one merged json

* change script identifier

* version bump

* rm extract_data

* go back to json data as list

* tralbum fix

* fix title path

* logging fix
2020-09-27 08:05:04 -07:00
BourgondAries 4f8c28e3b1
Use the popup image instead of the thumbnail (#163)
The thumbnail is often 700x700 in resolution, the pop-up image tends
to be 1200x1200.

For use in music libraries, where the album art may be displayed. It's
preferable to fetch the original resolution album art.
2020-09-26 13:33:17 -07:00
Anthony Forsberg b5da676752 Readme update
Changed the reccomended install to command to something that would cause less issues across different OSs
2018-12-04 15:40:56 -05:00
Anthony Forsberg 243e537684 Switch to shutil for getting terminal size
Due to possible permissions issues with automated testing switching to shutil to indirectly call os.get_terminal_size() is best.
2018-03-09 20:24:52 -05:00
Anthony Forsberg 7dd655cece Version bump 2018-03-06 17:34:35 -05:00
Anthony Forsberg af0635cfac Transition from sys.stdiout.write to print
Homebrew Jenkins testing compatability
2018-03-06 17:33:09 -05:00
Anthony Forsberg e8a016fc35 Fixes #138 for all terminals 2018-02-07 17:32:53 -05:00
Anthony Forsberg 1d82ca669a Output tweaks
Fixes #138 and #139
2018-02-06 15:40:38 -05:00
Anthony Forsberg 1521acd977 Preliminary 0.0.9 changes
`--artist` tag can no longer be used on its own accidently.
2017-09-27 17:10:45 -04:00
Anthony Forsberg f5bcb492c9 Merge branch 'genre-tag-filenames' 2017-09-27 14:23:04 -04:00
Anthony Forsberg 905ff8cfd4 Session file tweaks and track url schema fix
bandcamp-dl will now ignore the session file if a url is manually provided, this should prevent clashing with things such as frontends or other external programs which make use of it. Restoring previous download sessions will still work, simply run bandcamp-dl without arguments (Other than --base-dir if previously used) and it will behave as normal.

Bandcamp changed their file urls to include the protocol, code has been changed to reflect this.
2017-09-27 14:22:03 -04:00
Nicholas abb32308a6 Fix for #123 - ensures lockfile deleted from base directory (#124)
* Fix for #123 - ensures lockfile deleted from base directory

__main__ created the file in base-dir but bandcampDownloader checked for it in the working
directory. As bandcampDownloader has the base-dir, this commit uses that to point in
the expected place.

* Fix #123 arguments need breathing room
2017-07-04 12:20:56 -04:00
Anthony Forsberg 5bb969f8d7 Python version requirement added to setup 2017-05-26 12:59:06 -04:00
Anthony Forsberg 303e9315cb README Update 2017-05-25 11:26:14 -04:00
Anthony Forsberg c460cdc09c Added debug option, corrected an argument check
`--debug` option is now in, should give you a better idea of what is happening when used and where a possible error may be.
2017-05-25 11:22:45 -04:00
Anthony Forsberg c6ae5a99fc Version bump for release 2017-05-24 15:31:56 -04:00
Anthony Forsberg 2f8b87713c Lyrics embedding update
Fixed lyrics embedding, they will now work even if the lyrics were left out of the track data as we now insert it ourselves by grabbing it from the tracks individual page.

This of course slows things down when using the option so be aware.
2017-05-24 15:29:04 -04:00
Anthony Forsberg 5d9327195a Preliminary lyric embedding changes 2017-05-23 14:47:41 -04:00
Anthony Forsberg c3bcb77fd6 Silly code, fixed 2017-05-23 13:56:39 -04:00
Anthony Forsberg c0048dd9fe Tweak argument defaults
Manually specifying True/False/None for the arguments was not needed, docopt sets them to False unless they are used.
2017-05-23 13:56:01 -04:00
Anthony Forsberg a2ad7439c2 File permissions issue under Windows fixed
Under Windows while using the `--overwrite` option files would refuse to be overwritten, this is now fixed by first removing the file then renaming it.
2017-05-23 13:53:56 -04:00
Anthony Forsberg ff13704c83 Usage cleanup, squashed URL error 2017-05-23 13:51:19 -04:00
Anthony Forsberg 25e5da8cdb not.finished file bugfix
Take into account filename changes per version when deleting the temp file at the end of the download process.
2017-05-21 13:47:37 -04:00
Anthony Forsberg c8680f2694 Version specific not.finished files, etc
`not.finished` files are now version specific, old `not.finished` files will simply not be loaded preventing any issues with feature changes that require new arguments.

Minimum Python version is now enforced properly, it should now be impossible to install (via `pip`) with an unsupported Python version.

Bandcamp-dl version is now located in setup.py only with it being added to a generated `__init__.py` during packaging or install.
2017-05-20 16:02:17 -04:00
Anthony Forsberg 4413ad3ab2 Added --no-slugify option
Option added to maintain track, artist, and album names as they are. (Retain spaces, capitalization, etc)
2017-05-08 21:31:56 -04:00
Anthony Forsberg c881c1d00d Fixed complete failure after Bandcamp site update.
Fixes: #113, #110
2017-05-08 12:58:03 -04:00
Anthony Forsberg 6f4be1cc7a Revert "Add top-level header (#114)" (#115)
This reverts commit 656c45a0ba.
2017-05-08 12:48:53 -04:00
Roger 656c45a0ba Add top-level header (#114) 2017-05-08 11:00:19 -04:00
Anthony Forsberg 12327e119b 0.0.8 Update
Added --track for downloading individual tracks/singles
Added --embed-art to forcibly embed album art if available
2017-04-15 09:30:34 -04:00
Conor Randall 9db2aba929 Include Homebrew for OSX as install method (#109) 2017-04-15 06:39:06 -04:00