Commit Graph

19 Commits

Author SHA1 Message Date
Ville Skyttä
9ed5c65230 Link updates 2016-07-31 09:27:07 +03:00
Wieland Hoffmann
0826730616 Increment the version of addrelease.py
This should have been done a while ago already because there have been
some commits which fix bugs, but...
2015-01-11 13:47:32 +01:00
Wieland Hoffmann
84ffe3502f Fix the last commit
because I forgot to `git add` the file again
2014-06-28 21:14:13 +02:00
Wieland Hoffmann
50bc0755af Reset self.form_values after generating the HTML file
Otherwise, :qa
2014-06-28 21:12:52 +02:00
Frederik "Freso" S. Olesen
8bca1ecfbb addrelease.py: Use approximated "~length" for Recordings.
Recordings don't support sub-second time precision, so the
track.metadata.length used for the two Add...AsRelease classes will
cause an error on /recording/create's "length" field.
track.metadata["~length"] contains the time converted to mm:ss format
and will not cause the error on /recording/create, so this commit
changes AddFileAsRecording to use that.
2014-04-08 21:55:12 +02:00
Frederik "Freso" S. Olesen
b765452aac addrelease.py: Define form_values in __init__().
See https://github.com/musicbrainz/picard/pull/271/files#r11352974
2014-04-07 23:00:54 +02:00
Frederik "Freso" S. Olesen
464aa50298 addrelease.py: Revert change to PLUGIN_NAME.
Per nikki's comment on pull request #271:
https://github.com/musicbrainz/picard/pull/271#discussion_r11242854
2014-04-05 13:17:01 +02:00
Frederik "Freso" S. Olesen
77af0591b0 addrelease.py: Improve PEP8 compliance (E701).
Fixing instance of error E701: multiple statements on one line (colon).
2014-04-02 17:57:03 +02:00
Frederik "Freso" S. Olesen
bf0fab7f3d addrelease.py: Update plugin metadata.
- Add Freso to PLUGIN_AUTHOR
- Update PLUGIN_NAME and _DESCRIPTION to describe added file
  functionality.
- Increment PLUGIN_VERSION to 0.5.
2014-04-02 17:50:32 +02:00
Frederik "Freso" S. Olesen
ddcf02b339 addrelease.py: Add AddFileAsRelease class.
Allows for easily adding single files (which can't be clustered) as releases.
2014-04-02 17:44:48 +02:00
Frederik "Freso" S. Olesen
eaa5474445 addrelease.py: Add AddFileAsRecording class.
Allows for easily adding individual files as standalone recordings.
2014-04-02 17:22:41 +02:00
Frederik "Freso" S. Olesen
713061b82f addrelease.py: Abstract out submission URL. 2014-04-02 17:20:24 +02:00
Frederik "Freso" S. Olesen
060f2a3812 addrelease.py: Abstract .callback() to parent class.
Child classes now just need to define object type, NAME, and the
set_form_values() method - and reigster_*_action.
2014-04-02 16:36:40 +02:00
Frederik "Freso" S. Olesen
fe06a50369 addrelease.py: Refactor AddClusterAsRelease.
Abstract out some of the functionality all clumped together in
AddClusterAsRelease.callback() to methods of new parent class
AddObjectAsEntity.
2014-04-02 16:13:13 +02:00
Laurent Monin
c272099bd9 Improve conformance to PEP8, tidy up. 2013-08-15 15:01:41 +02:00
Wieland Hoffmann
243eed13b8 addrelease: initialize discnumber_shift outside the loop 2013-04-10 10:39:51 +02:00
Wieland Hoffmann
d381048216 addrelease: Try harder to seed the RE properly
Disc numbers <= 0 were previously changed to values lower than 0 which
caused the RE to crash. Fix this by using the lowest disc number of the
cluster (which is somewhat sorted) to figure out the difference between
that disc number and 0 and use that number to change all disc number to
be 0-based while preserving their order.
2013-04-03 11:50:07 +02:00
Chad Wilson
7a47dc9c35 Fix the addrelease plugin to be compatible with changes made to the metadatabox and clusters (clusters no longer have the 'artist' tag; only 'albumartist'). Updated the compatible API version accordingly. If we don't release next version as 1.0, please chage the plugin' API version accordingly! 2012-05-26 16:56:15 +08:00
Chad Wilson
eb354c0cd2 Moved plugin to correct subdir with respect to main Picard repo 2012-05-26 15:41:04 +08:00