isrcsubmit-2.1.0/0000755000000000000000000000000013434121046012372 5ustar rootrootisrcsubmit-2.1.0/isrcsubmit.sh0000755000000000000000000000006712331733035015122 0ustar rootroot#!/bin/sh export PATH=$PATH:. exec ./isrcsubmit.py $@ isrcsubmit-2.1.0/pkg/0000755000000000000000000000000012534557612013167 5ustar rootrootisrcsubmit-2.1.0/pkg/Makefile0000644000000000000000000000635212534557612014635 0ustar rootrootversion := 2.0.1 current := isrcsubmit-$(version) downloads := ../web/isrcsubmit.jonnyjd.net/downloads/ upload := ftp://isrcsubmit.jonnyjd.net/downloads/ musicbrainzngs := musicbrainzngs-0.5 discid := discid-1.1.0 libdiscid := libdiscid-0.6.1 scripts := isrcsubmit.py $(current).py #scripts := $(current).py tar := $(current) win32 := $(current)-win32 mac := $(current)-mac all := $(scripts) $(tar).tar.gz $(win32).zip $(mac).zip source_repo := .. source_branch := master source_dir := isrcsubmit # TODO: make sure isrcsubmit.py is really updated! tag_ref := $(source_repo)/.git/refs/tags/v$(version) branch_ref := $(source_repo)/.git/refs/heads/$(source_branch) ifeq ($(wildcard $(tag_ref)),) source_ref := $(branch_ref) else source_ref := $(tag_ref) endif ifeq ($(shell cd $(source_repo) && git tag -l v$(version)),) source_checkout := cd $(source_repo) git checkout $(source_branch) else source_checkout := cd $(source_repo) git checkout v$(version) endif define cp_source = cp -a $(source_dir)/ $(1) rm -rf $(1)/.git endef base_libs := $(musicbrainzngs) $(discid) $(libdiscid) define cp_base_libs = mv $(1)/COPYING $(1)/COPYING.isrcsubmit mv $(1)/AUTHORS $(1)/AUTHORS.isrcsubmit mkdir $(1)/src cp -ar $(musicbrainzngs)/musicbrainzngs $(1)/ cp -ar $(musicbrainzngs) $(1)/src/ cp -ar $(discid)/discid $(1)/ cp -ar $(discid) $(1)/src/ cp -ar $(libdiscid) $(1)/src/ endef all: $(all) upload: $(all) cp -a $^ $(downloads) cd $(downloads) && ftpsync -cn . $(upload) isrcsubmit.py: $(source_ref) cp -a $(source_dir)/isrcsubmit.py . $(current).py: $(source_ref) cp -a $(source_dir)/isrcsubmit.py $(current).py tar: $(tar).tar.gz $(tar).tar.gz: $(source_ref) $(call cp_source, $(tar)) tar --owner=root --group=root -czf $@ $(tar) rm -rf $(tar) win32: $(win32).zip $(win32).zip: $(source_ref) $(base_libs) $(libdiscid)-win32.zip mediatools $(call cp_source, $(win32)) $(call cp_base_libs, $(win32)) unzip $(libdiscid)-win32.zip cp -a $(libdiscid)-win32/discid.dll $(win32)/ cp -ar mediatools $(win32)/ cp -a mediatools.exe $(win32)/ zip -qr $@ $(win32) rm -rf $(libdiscid)-win32 rm -rf $(win32) mac: $(mac).zip $(mac).zip: $(source_ref) $(base_libs) $(libdiscid)-mac.zip $(call cp_source, $(mac)) $(call cp_base_libs, $(mac)) unzip $(libdiscid)-mac.zip cp -a $(libdiscid)-mac/universal/libdiscid.0.dylib $(mac)/ zip -qr $@ $(mac) rm -rf $(libdiscid)-mac rm -rf $(mac) # sources: # $(source_dir): git clone -b $(source_branch) $(source_repo) $@ $(source_ref): $(source_dir) cd $^ && git pull $(source_checkout) # libraries: # $(musicbrainzngs): $(musicbrainzngs).tar.gz tar -xzf $^ $(musicbrainzngs).tar.gz: wget http://pypi.python.org/packages/source/m/musicbrainzngs/$@ $(discid): $(discid).tar.gz tar -xzf $^ $(discid).tar.gz: wget http://pypi.python.org/packages/source/d/discid/$@ libdiscid: $(libdiscid) $(libdiscid): $(libdiscid).tar.gz tar -xzf $^ $(libdiscid).tar.gz: wget http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/$@ $(libdiscid)-%.zip: wget http://ftp.musicbrainz.org/pub/musicbrainz/libdiscid/$@ mediatools: mediatools.zip unzip -o $^ mediatools.zip: wget http://www.flanagan-family.com/$@ clean: rm -rf $(source_dir) rm -f $(all) rm -rf $(base_libs) rm -rf mediatools mediatools.exe .PHONY: $(source_ref) isrcsubmit-2.1.0/pkg/.gitignore0000644000000000000000000000013112331733035015140 0ustar rootrootold *.py *.zip *.tar.gz discid-*/ libdiscid-*/ musicbrainzngs-*/ isrcsubmit/ mediatools/ isrcsubmit-2.1.0/MANIFEST.in0000644000000000000000000000037112331733035014133 0ustar rootrootinclude README.rst AUTHORS CHANGES.markdown COPYING include isrcsubmit.bat isrcsubmit.sh test_isrcsubmit.py include Makefile MANIFEST.in tox.ini recursive-include test_data *.toc *.pickle *.json recursive-include doc *.rst conf.py exclude setup.cfg isrcsubmit-2.1.0/COPYING0000644000000000000000000010451312331733035013433 0ustar rootroot GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . isrcsubmit-2.1.0/test_data/0000755000000000000000000000000012331733035014344 5ustar rootrootisrcsubmit-2.1.0/test_data/hSI7B4G4AkB5.DEBcW.3KCn.D_E-_cdrdao.toc0000644000000000000000000000443512331733035022316 0ustar rootrootCD_DA CATALOG "5099749534728" // Track 1 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902002" FILE "data.wav" 0 03:19:62 // Track 2 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7900013" FILE "data.wav" 03:19:62 02:08:20 // Track 3 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902019" FILE "data.wav" 05:28:07 03:54:70 // Track 4 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902020" FILE "data.wav" 09:23:02 02:44:03 // Track 5 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902021" FILE "data.wav" 12:07:05 03:29:10 // Track 6 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902022" FILE "data.wav" 15:36:15 03:18:65 // Track 7 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902023" FILE "data.wav" 18:55:05 03:54:50 // Track 8 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902024" FILE "data.wav" 22:49:55 03:47:15 // Track 9 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7900012" FILE "data.wav" 26:36:70 03:49:05 // Track 10 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7900010" FILE "data.wav" 30:26:00 03:09:70 // Track 11 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7900001" FILE "data.wav" 33:35:70 03:10:45 // Track 12 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902025" FILE "data.wav" 36:46:40 03:55:02 // Track 13 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902018" FILE "data.wav" 40:41:42 01:47:65 // Track 14 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902026" FILE "data.wav" 42:29:32 03:49:40 // Track 15 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902027" FILE "data.wav" 46:18:72 04:03:10 // Track 16 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902028" FILE "data.wav" 50:22:07 02:55:58 // Track 17 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902029" FILE "data.wav" 53:17:65 03:06:05 // Track 18 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902030" FILE "data.wav" 56:23:70 05:33:32 // Track 19 TRACK AUDIO NO COPY NO PRE_EMPHASIS TWO_CHANNEL_AUDIO ISRC "GBBBN7902003" FILE "data.wav" 61:57:27 03:10:05 isrcsubmit-2.1.0/test_data/TqvKjMu7dMliSfmVEBtrL7sBSno-.pickle0000644000000000000000000000166012331733035022574 0ustar rootrootctest_isrcsubmit MockedDisc q)q}q(XidqXTqvKjMu7dMliSfmVEBtrL7sBSno-qXtracksq]q(ctest_isrcsubmit MockedTrack q)q}q (Xnumberq KXisrcq X DEC680000212q ubh)q }q(h Kh X DEC680000218qubh)q}q(h Kh X DEC680000202qubh)q}q(h Kh X DEC680000220qubh)q}q(h Kh X DEC680000221qubh)q}q(h Kh X DEC680000223qubh)q}q(h Kh X DEC680000204qubh)q}q (h Kh X DEC680000222q!ubh)q"}q#(h K h X DEC680000224q$ubh)q%}q&(h K h X DEC680000225q'ubh)q(}q)(h K h Xq*ubh)q+}q,(h K h X DEC680000227q-ubh)q.}q/(h K h X DEC680000226q0ubh)q1}q2(h Kh X DEC680000376q3ubh)q4}q5(h Kh X DEC680000377q6ubeXsubmission_urlq7Xhttp://musicbrainz.org/cdtoc/attach?id=TqvKjMu7dMliSfmVEBtrL7sBSno-&tracks=15&toc=1+15+258725+150+17510+33275+45910+57805+78310+94650+109580+132010+149160+165115+177710+203325+215555+235590q8Xmcnq9X 0000000000000q:ub.isrcsubmit-2.1.0/test_data/hSI7B4G4AkB5.DEBcW.3KCn.D_E-_releases.json0000644000000000000000000072340512331733035023056 0ustar rootroot{ "disc": { "sectors": "293207", "id": "hSI7B4G4AkB5.DEBcW.3KCn.D_E-", "release-list": [ { "id": "174a5513-73d1-3c9d-a316-3c1c179e35f8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "packaging": "Jewel Case", "date": "1999", "label-info-list": [ { "catalog-number": "495347 2", "label": { "id": "011d1192-6f65-45bd-85c4-0400dd45693e", "sort-name": "Columbia", "name": "Columbia", "disambiguation": "1931-1990: only US & CA; 1991 to present: worldwide except JP", "label-code": "162" } } ], "artist-credit-phrase": "The Clash", "status": "Official", "text-representation": { "script": "Latn", "language": "eng" }, "barcode": "5099749534728", "country": "GB", "asin": "B00002MVQO", "medium-list": [ { "track-list": [ { "track_or_recording_length": "203826", "recording": { "id": "ac1ae5ed-02e2-4eba-ad2d-e861a6bf04b2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "203826", "isrc-list": [ "GBBBN7902002" ], "title": "London Calling", "artist-credit-phrase": "The Clash" }, "length": "203826", "number": "1", "position": "1", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "130240", "recording": { "id": "2188771d-b43d-4fc4-a3f6-b44e7a6e70d4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "130240", "isrc-list": [ "GBBBN7900013" ], "title": "Brand New Cadillac", "artist-credit-phrase": "The Clash" }, "length": "130240", "number": "2", "position": "2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237160", "recording": { "id": "6a38755f-68ca-4f9c-bfcd-2d9a12162156", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237160", "isrc-list": [ "GBBBN7902019" ], "title": "Jimmy Jazz", "artist-credit-phrase": "The Clash" }, "length": "237160", "number": "3", "position": "3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "166106", "recording": { "id": "02937d76-a9a4-4815-bcfc-d449d26804f6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "166106", "isrc-list": [ "GBBBN7902020" ], "title": "Hateful", "artist-credit-phrase": "The Clash" }, "length": "166106", "number": "4", "position": "4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "211800", "recording": { "id": "97ea0a85-14ad-47c4-a086-8493307a130e", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "211800", "isrc-list": [ "GBBBN7902021" ], "title": "Rudie Can\u2019t Fail", "artist-credit-phrase": "The Clash" }, "length": "211800", "number": "5", "position": "5", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "201360", "recording": { "id": "b9dc4b7b-34e0-4028-ae5d-756bf08e5f48", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "201360", "isrc-list": [ "GBBBN7902022" ], "title": "Spanish Bombs", "artist-credit-phrase": "The Clash" }, "length": "201360", "number": "6", "position": "6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237666", "recording": { "id": "4037fa0e-0497-4d59-b67c-50ddc9f05995", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237666", "isrc-list": [ "GBBBN7902023" ], "title": "The Right Profile", "artist-credit-phrase": "The Clash" }, "length": "237666", "number": "7", "position": "7", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "230040", "recording": { "id": "276152f9-fe4a-4df0-aedc-606d57d429c2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7902024" ], "title": "Lost in the Supermarket", "artist-credit-phrase": "The Clash" }, "length": "230040", "number": "8", "position": "8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "232226", "recording": { "id": "e3bbd499-d80f-4964-a42f-664b15a5b72d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7900012" ], "title": "Clampdown", "artist-credit-phrase": "The Clash" }, "length": "232226", "number": "9", "position": "9", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193666", "recording": { "id": "6653886f-7d45-40bd-bb6c-51cc5895e022", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "192000", "isrc-list": [ "GBBBN7900010" ], "title": "The Guns of Brixton", "artist-credit-phrase": "The Clash" }, "length": "193666", "number": "10", "position": "10", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193240", "recording": { "id": "c0b50456-428c-4709-8cbc-44115ac2f014", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "193240", "isrc-list": [ "GBBBN7900001" ], "title": "Wrong \u2019Em Boyo", "artist-credit-phrase": "The Clash" }, "length": "193240", "number": "11", "position": "11", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237200", "recording": { "id": "abeb0916-5221-480d-b188-0c328d54b5ca", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237200", "isrc-list": [ "GBBBN7902025" ], "title": "Death or Glory", "artist-credit-phrase": "The Clash" }, "length": "237200", "number": "12", "position": "12", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "109533", "recording": { "id": "b7b519ff-66a9-4768-b9d2-1e527b091b7d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "109533", "isrc-list": [ "GBBBN7902018" ], "title": "Koka Kola", "artist-credit-phrase": "The Clash" }, "length": "109533", "number": "13", "position": "13", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "233000", "recording": { "id": "d8f25235-6a0c-4051-9952-03188b3cc51d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "233000", "isrc-list": [ "GBBBN7902026" ], "title": "The Card Cheat", "artist-credit-phrase": "The Clash" }, "length": "233000", "number": "14", "position": "14", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "245960", "recording": { "id": "4260ffa8-9bd2-4cd5-8350-2af1251caf7c", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "245960", "isrc-list": [ "GBBBN7902027" ], "title": "Lover\u2019s Rock", "artist-credit-phrase": "The Clash" }, "length": "245960", "number": "15", "position": "15", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "177506", "recording": { "id": "47ad3f7f-9285-4dcf-b391-b98f4c8d9ea4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "177506", "isrc-list": [ "GBBBN7902028" ], "title": "Four Horsemen", "artist-credit-phrase": "The Clash" }, "length": "177506", "number": "16", "position": "16", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "187760", "recording": { "id": "34b3820a-2676-4081-841d-8b66ab09cbc3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "187760", "isrc-list": [ "GBBBN7902029" ], "title": "I\u2019m Not Down", "artist-credit-phrase": "The Clash" }, "length": "187760", "number": "17", "position": "17", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "337133", "recording": { "id": "3c933124-72de-42cc-b896-42e4f373ed2f", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "337133", "isrc-list": [ "GBBBN7902030" ], "title": "Revolution Rock", "artist-credit-phrase": "The Clash" }, "length": "337133", "number": "18", "position": "18", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "191506", "recording": { "id": "09bb4e39-692e-4685-893b-8dad0bbcf549", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "191506", "isrc-list": [ "GBBBN7902003" ], "title": "Train in Vain", "artist-credit-phrase": "The Clash" }, "length": "191506", "number": "19", "position": "19", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" } ], "position": "1", "format": "CD", "disc-list": [ { "sectors": "297005", "id": "0FxZRzrLzeaM6ursyv6_VrZk4_w-" }, { "sectors": "296982", "id": "2FZ9bzQzLysN0WV1cfw0MFtL3.U-" }, { "sectors": "293192", "id": "30iVVm465NLVkMggEID5n6FgMWM-" }, { "sectors": "296887", "id": "GcsIkMZJDNmaetj9GmLGp1jyOlg-" }, { "sectors": "293207", "id": "JI0.k45ESg.8ze5Nc13wOhYDMaI-" }, { "sectors": "296983", "id": "Q3dEYWJRAcc5m0seaPRlYu0d0wo-" }, { "sectors": "296968", "id": "RiTfLe8MjC.ONTsFw0l7FDiRRHk-" }, { "sectors": "299647", "id": "SM1sbkyhlp6sIdqLwHjBsLZFNMA-" }, { "sectors": "296977", "id": "aHZySDeqfeI9yeyOCOMgwJYuw4o-" }, { "sectors": "299724", "id": "b2B_m88N7PhkWPRgc0NiIOl5.0M-" }, { "sectors": "293207", "id": "hSI7B4G4AkB5.DEBcW.3KCn.D_E-" }, { "sectors": "296882", "id": "i4c.FMWpd8QjWCWcRKCz6OgfpI8-" }, { "sectors": "295099", "id": "kKOqMEuRDSeW_.K49SUEJXensLY-" }, { "sectors": "293162", "id": "mIhE88myHio7Pe0GT9Gva4EldRY-" } ] } ], "title": "London Calling", "quality": "normal" }, { "id": "21a14cc0-2a39-32b3-811b-6e20fae67a57", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "packaging": "Jewel Case", "date": "1999", "label-info-list": [ { "catalog-number": "EK 63885", "label": { "id": "8f638ddb-131a-4cc3-b3d4-7ebdac201b55", "sort-name": "Epic", "name": "Epic", "label-code": "199" } } ], "artist-credit-phrase": "The Clash", "status": "Official", "text-representation": { "script": "Latn", "language": "eng" }, "barcode": "074646388525", "country": "US", "asin": "B00004BZ0N", "medium-list": [ { "track-list": [ { "track_or_recording_length": "203826", "recording": { "id": "ac1ae5ed-02e2-4eba-ad2d-e861a6bf04b2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "203826", "isrc-list": [ "GBBBN7902002" ], "title": "London Calling", "artist-credit-phrase": "The Clash" }, "length": "203826", "number": "1", "position": "1", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "130240", "recording": { "id": "2188771d-b43d-4fc4-a3f6-b44e7a6e70d4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "130240", "isrc-list": [ "GBBBN7900013" ], "title": "Brand New Cadillac", "artist-credit-phrase": "The Clash" }, "length": "130240", "number": "2", "position": "2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237160", "recording": { "id": "6a38755f-68ca-4f9c-bfcd-2d9a12162156", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237160", "isrc-list": [ "GBBBN7902019" ], "title": "Jimmy Jazz", "artist-credit-phrase": "The Clash" }, "length": "237160", "number": "3", "position": "3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "166106", "recording": { "id": "02937d76-a9a4-4815-bcfc-d449d26804f6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "166106", "isrc-list": [ "GBBBN7902020" ], "title": "Hateful", "artist-credit-phrase": "The Clash" }, "length": "166106", "number": "4", "position": "4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "211800", "recording": { "id": "97ea0a85-14ad-47c4-a086-8493307a130e", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "211800", "isrc-list": [ "GBBBN7902021" ], "title": "Rudie Can\u2019t Fail", "artist-credit-phrase": "The Clash" }, "length": "211800", "number": "5", "position": "5", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "201360", "recording": { "id": "b9dc4b7b-34e0-4028-ae5d-756bf08e5f48", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "201360", "isrc-list": [ "GBBBN7902022" ], "title": "Spanish Bombs", "artist-credit-phrase": "The Clash" }, "length": "201360", "number": "6", "position": "6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237666", "recording": { "id": "4037fa0e-0497-4d59-b67c-50ddc9f05995", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237666", "isrc-list": [ "GBBBN7902023" ], "title": "The Right Profile", "artist-credit-phrase": "The Clash" }, "length": "237666", "number": "7", "position": "7", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "230040", "recording": { "id": "276152f9-fe4a-4df0-aedc-606d57d429c2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7902024" ], "title": "Lost in the Supermarket", "artist-credit-phrase": "The Clash" }, "length": "230040", "number": "8", "position": "8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "232226", "recording": { "id": "e3bbd499-d80f-4964-a42f-664b15a5b72d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7900012" ], "title": "Clampdown", "artist-credit-phrase": "The Clash" }, "length": "232226", "number": "9", "position": "9", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193666", "recording": { "id": "6653886f-7d45-40bd-bb6c-51cc5895e022", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "192000", "isrc-list": [ "GBBBN7900010" ], "title": "The Guns of Brixton", "artist-credit-phrase": "The Clash" }, "length": "193666", "number": "10", "position": "10", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193240", "recording": { "id": "c0b50456-428c-4709-8cbc-44115ac2f014", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "193240", "isrc-list": [ "GBBBN7900001" ], "title": "Wrong \u2019Em Boyo", "artist-credit-phrase": "The Clash" }, "length": "193240", "number": "11", "position": "11", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237200", "recording": { "id": "abeb0916-5221-480d-b188-0c328d54b5ca", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237200", "isrc-list": [ "GBBBN7902025" ], "title": "Death or Glory", "artist-credit-phrase": "The Clash" }, "length": "237200", "number": "12", "position": "12", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "109533", "recording": { "id": "b7b519ff-66a9-4768-b9d2-1e527b091b7d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "109533", "isrc-list": [ "GBBBN7902018" ], "title": "Koka Kola", "artist-credit-phrase": "The Clash" }, "length": "109533", "number": "13", "position": "13", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "233000", "recording": { "id": "d8f25235-6a0c-4051-9952-03188b3cc51d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "233000", "isrc-list": [ "GBBBN7902026" ], "title": "The Card Cheat", "artist-credit-phrase": "The Clash" }, "length": "233000", "number": "14", "position": "14", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "245960", "recording": { "id": "4260ffa8-9bd2-4cd5-8350-2af1251caf7c", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "245960", "isrc-list": [ "GBBBN7902027" ], "title": "Lover\u2019s Rock", "artist-credit-phrase": "The Clash" }, "length": "245960", "number": "15", "position": "15", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "177506", "recording": { "id": "47ad3f7f-9285-4dcf-b391-b98f4c8d9ea4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "177506", "isrc-list": [ "GBBBN7902028" ], "title": "Four Horsemen", "artist-credit-phrase": "The Clash" }, "length": "177506", "number": "16", "position": "16", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "187760", "recording": { "id": "34b3820a-2676-4081-841d-8b66ab09cbc3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "187760", "isrc-list": [ "GBBBN7902029" ], "title": "I\u2019m Not Down", "artist-credit-phrase": "The Clash" }, "length": "187760", "number": "17", "position": "17", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "337133", "recording": { "id": "3c933124-72de-42cc-b896-42e4f373ed2f", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "337133", "isrc-list": [ "GBBBN7902030" ], "title": "Revolution Rock", "artist-credit-phrase": "The Clash" }, "length": "337133", "number": "18", "position": "18", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "191506", "recording": { "id": "09bb4e39-692e-4685-893b-8dad0bbcf549", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "191506", "isrc-list": [ "GBBBN7902003" ], "title": "Train in Vain", "artist-credit-phrase": "The Clash" }, "length": "191506", "number": "19", "position": "19", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" } ], "position": "1", "format": "CD", "disc-list": [ { "sectors": "297005", "id": "0FxZRzrLzeaM6ursyv6_VrZk4_w-" }, { "sectors": "296982", "id": "2FZ9bzQzLysN0WV1cfw0MFtL3.U-" }, { "sectors": "293192", "id": "30iVVm465NLVkMggEID5n6FgMWM-" }, { "sectors": "296887", "id": "GcsIkMZJDNmaetj9GmLGp1jyOlg-" }, { "sectors": "293207", "id": "JI0.k45ESg.8ze5Nc13wOhYDMaI-" }, { "sectors": "296983", "id": "Q3dEYWJRAcc5m0seaPRlYu0d0wo-" }, { "sectors": "296968", "id": "RiTfLe8MjC.ONTsFw0l7FDiRRHk-" }, { "sectors": "299647", "id": "SM1sbkyhlp6sIdqLwHjBsLZFNMA-" }, { "sectors": "296977", "id": "aHZySDeqfeI9yeyOCOMgwJYuw4o-" }, { "sectors": "299724", "id": "b2B_m88N7PhkWPRgc0NiIOl5.0M-" }, { "sectors": "293207", "id": "hSI7B4G4AkB5.DEBcW.3KCn.D_E-" }, { "sectors": "296882", "id": "i4c.FMWpd8QjWCWcRKCz6OgfpI8-" }, { "sectors": "295099", "id": "kKOqMEuRDSeW_.K49SUEJXensLY-" }, { "sectors": "293162", "id": "mIhE88myHio7Pe0GT9Gva4EldRY-" } ] } ], "title": "London Calling", "quality": "normal" }, { "id": "378fcd3a-9e3d-3667-a499-0ec9a2c29f14", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "packaging": "Digipak", "date": "2004-09-20", "label-info-list": [ { "catalog-number": "517928 3", "label": { "id": "011d1192-6f65-45bd-85c4-0400dd45693e", "sort-name": "Columbia", "name": "Columbia", "disambiguation": "1931-1990: only US & CA; 1991 to present: worldwide except JP", "label-code": "162" } } ], "artist-credit-phrase": "The Clash", "status": "Official", "text-representation": { "script": "Latn", "language": "eng" }, "disambiguation": "25th anniversary edition", "country": "GB", "asin": "B0002QXMD4", "medium-list": [ { "track-list": [ { "track_or_recording_length": "203826", "recording": { "id": "ac1ae5ed-02e2-4eba-ad2d-e861a6bf04b2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "203826", "isrc-list": [ "GBBBN7902002" ], "title": "London Calling", "artist-credit-phrase": "The Clash" }, "length": "203826", "number": "1", "position": "1", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "130240", "recording": { "id": "2188771d-b43d-4fc4-a3f6-b44e7a6e70d4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "130240", "isrc-list": [ "GBBBN7900013" ], "title": "Brand New Cadillac", "artist-credit-phrase": "The Clash" }, "length": "130240", "number": "2", "position": "2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237160", "recording": { "id": "6a38755f-68ca-4f9c-bfcd-2d9a12162156", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237160", "isrc-list": [ "GBBBN7902019" ], "title": "Jimmy Jazz", "artist-credit-phrase": "The Clash" }, "length": "237160", "number": "3", "position": "3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "166106", "recording": { "id": "02937d76-a9a4-4815-bcfc-d449d26804f6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "166106", "isrc-list": [ "GBBBN7902020" ], "title": "Hateful", "artist-credit-phrase": "The Clash" }, "length": "166106", "number": "4", "position": "4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "211800", "recording": { "id": "97ea0a85-14ad-47c4-a086-8493307a130e", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "211800", "isrc-list": [ "GBBBN7902021" ], "title": "Rudie Can\u2019t Fail", "artist-credit-phrase": "The Clash" }, "length": "211800", "number": "5", "position": "5", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "201360", "recording": { "id": "b9dc4b7b-34e0-4028-ae5d-756bf08e5f48", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "201360", "isrc-list": [ "GBBBN7902022" ], "title": "Spanish Bombs", "artist-credit-phrase": "The Clash" }, "length": "201360", "number": "6", "position": "6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237666", "recording": { "id": "4037fa0e-0497-4d59-b67c-50ddc9f05995", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237666", "isrc-list": [ "GBBBN7902023" ], "title": "The Right Profile", "artist-credit-phrase": "The Clash" }, "length": "237666", "number": "7", "position": "7", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "230040", "recording": { "id": "276152f9-fe4a-4df0-aedc-606d57d429c2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7902024" ], "title": "Lost in the Supermarket", "artist-credit-phrase": "The Clash" }, "length": "230040", "number": "8", "position": "8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "232226", "recording": { "id": "e3bbd499-d80f-4964-a42f-664b15a5b72d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7900012" ], "title": "Clampdown", "artist-credit-phrase": "The Clash" }, "length": "232226", "number": "9", "position": "9", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193666", "recording": { "id": "6653886f-7d45-40bd-bb6c-51cc5895e022", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "192000", "isrc-list": [ "GBBBN7900010" ], "title": "The Guns of Brixton", "artist-credit-phrase": "The Clash" }, "length": "193666", "number": "10", "position": "10", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193240", "recording": { "id": "c0b50456-428c-4709-8cbc-44115ac2f014", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "193240", "isrc-list": [ "GBBBN7900001" ], "title": "Wrong \u2019Em Boyo", "artist-credit-phrase": "The Clash" }, "length": "193240", "number": "11", "position": "11", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237200", "recording": { "id": "abeb0916-5221-480d-b188-0c328d54b5ca", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237200", "isrc-list": [ "GBBBN7902025" ], "title": "Death or Glory", "artist-credit-phrase": "The Clash" }, "length": "237200", "number": "12", "position": "12", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "109533", "recording": { "id": "b7b519ff-66a9-4768-b9d2-1e527b091b7d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "109533", "isrc-list": [ "GBBBN7902018" ], "title": "Koka Kola", "artist-credit-phrase": "The Clash" }, "length": "109533", "number": "13", "position": "13", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "233000", "recording": { "id": "d8f25235-6a0c-4051-9952-03188b3cc51d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "233000", "isrc-list": [ "GBBBN7902026" ], "title": "The Card Cheat", "artist-credit-phrase": "The Clash" }, "length": "233000", "number": "14", "position": "14", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "245960", "recording": { "id": "4260ffa8-9bd2-4cd5-8350-2af1251caf7c", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "245960", "isrc-list": [ "GBBBN7902027" ], "title": "Lover\u2019s Rock", "artist-credit-phrase": "The Clash" }, "length": "245960", "number": "15", "position": "15", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "177506", "recording": { "id": "47ad3f7f-9285-4dcf-b391-b98f4c8d9ea4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "177506", "isrc-list": [ "GBBBN7902028" ], "title": "Four Horsemen", "artist-credit-phrase": "The Clash" }, "length": "177506", "number": "16", "position": "16", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "187760", "recording": { "id": "34b3820a-2676-4081-841d-8b66ab09cbc3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "187760", "isrc-list": [ "GBBBN7902029" ], "title": "I\u2019m Not Down", "artist-credit-phrase": "The Clash" }, "length": "187760", "number": "17", "position": "17", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "337133", "recording": { "id": "3c933124-72de-42cc-b896-42e4f373ed2f", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "337133", "isrc-list": [ "GBBBN7902030" ], "title": "Revolution Rock", "artist-credit-phrase": "The Clash" }, "length": "337133", "number": "18", "position": "18", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "191506", "recording": { "id": "09bb4e39-692e-4685-893b-8dad0bbcf549", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "191506", "isrc-list": [ "GBBBN7902003" ], "title": "Train in Vain", "artist-credit-phrase": "The Clash" }, "length": "191506", "number": "19", "position": "19", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" } ], "position": "1", "format": "CD", "title": "Original LP", "disc-list": [ { "sectors": "297005", "id": "0FxZRzrLzeaM6ursyv6_VrZk4_w-" }, { "sectors": "296982", "id": "2FZ9bzQzLysN0WV1cfw0MFtL3.U-" }, { "sectors": "293192", "id": "30iVVm465NLVkMggEID5n6FgMWM-" }, { "sectors": "296887", "id": "GcsIkMZJDNmaetj9GmLGp1jyOlg-" }, { "sectors": "293207", "id": "JI0.k45ESg.8ze5Nc13wOhYDMaI-" }, { "sectors": "296983", "id": "Q3dEYWJRAcc5m0seaPRlYu0d0wo-" }, { "sectors": "296968", "id": "RiTfLe8MjC.ONTsFw0l7FDiRRHk-" }, { "sectors": "299647", "id": "SM1sbkyhlp6sIdqLwHjBsLZFNMA-" }, { "sectors": "296920", "id": "Y50Uorrp88_yUvNFCO1vzN4RNDA-" }, { "sectors": "296977", "id": "aHZySDeqfeI9yeyOCOMgwJYuw4o-" }, { "sectors": "299724", "id": "b2B_m88N7PhkWPRgc0NiIOl5.0M-" }, { "sectors": "293207", "id": "hSI7B4G4AkB5.DEBcW.3KCn.D_E-" }, { "sectors": "296882", "id": "i4c.FMWpd8QjWCWcRKCz6OgfpI8-" }, { "sectors": "295099", "id": "kKOqMEuRDSeW_.K49SUEJXensLY-" }, { "sectors": "293162", "id": "mIhE88myHio7Pe0GT9Gva4EldRY-" } ] }, { "track-list": [ { "track_or_recording_length": "203626", "recording": { "id": "695a1077-d538-4a19-9e67-d7458c5b54db", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Hateful", "length": "203626", "artist-credit-phrase": "The Clash" }, "length": "203626", "number": "1", "position": "1", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "188800", "recording": { "id": "39f56417-8eb9-4c0d-8bd4-f63cde7c5cf8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Rudie Can\u2019t Fail", "length": "188800", "artist-credit-phrase": "The Clash" }, "length": "188800", "number": "2", "position": "2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "152613", "recording": { "id": "e1a130e8-f713-4367-864c-28e25110f0f5", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Paul\u2019s Tune", "length": "152613", "artist-credit-phrase": "The Clash" }, "length": "152613", "number": "3", "position": "3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "214013", "recording": { "id": "c940fe0d-e2ed-4811-a908-574e84af32c2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "I\u2019m Not Down", "length": "214013", "artist-credit-phrase": "The Clash" }, "length": "214013", "number": "4", "position": "4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "165306", "recording": { "id": "e0b66653-c997-4cfc-be05-02e2c20511c3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "4 Horsemen", "length": "165306", "artist-credit-phrase": "The Clash" }, "length": "165306", "number": "5", "position": "5", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "117586", "recording": { "id": "60bbfbe8-37eb-4e22-a5ad-31c0ad51a922", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Koka Kola, Advertising & Cocaine", "length": "117586", "artist-credit-phrase": "The Clash" }, "length": "117586", "number": "6", "position": "6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "227586", "recording": { "id": "ac2d2b2b-00ad-4f38-be3c-06454ab9ca13", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Death or Glory", "length": "227586", "artist-credit-phrase": "The Clash" }, "length": "227586", "number": "7", "position": "7", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "225666", "recording": { "id": "9361d854-df6c-426a-97a7-23a211773b33", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Lover\u2019s Rock", "length": "225666", "artist-credit-phrase": "The Clash" }, "length": "225666", "number": "8", "position": "8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "129426", "recording": { "id": "3b0d7f64-e8a6-44e7-a7e7-9d6320bed88a", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Lonesome Me", "length": "129426", "artist-credit-phrase": "The Clash" }, "length": "129426", "number": "9", "position": "9", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "139333", "recording": { "id": "71f15b51-da12-4aaf-b6e8-4e91407d9b64", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "The Police Walked in 4 Jazz", "length": "139333", "artist-credit-phrase": "The Clash" }, "length": "139333", "number": "10", "position": "10", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "232106", "recording": { "id": "276152f9-fe4a-4df0-aedc-606d57d429c2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7902024" ], "title": "Lost in the Supermarket", "artist-credit-phrase": "The Clash" }, "length": "232106", "number": "11", "position": "11", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "117266", "recording": { "id": "a9983212-6af0-4ab8-bbfd-0853f64d110a", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Up-Toon (instrumental)", "length": "117266", "artist-credit-phrase": "The Clash" }, "length": "117266", "number": "12", "position": "12", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "154920", "recording": { "id": "5e899c20-17ee-4638-9076-68e17d776f78", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Walking the Slidewalk", "length": "154920", "artist-credit-phrase": "The Clash" }, "length": "154920", "number": "13", "position": "13", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "245000", "recording": { "id": "cc9800d8-8682-4557-9f1a-67fa6b5658bb", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Where You Gonna Go (Soweto)", "length": "245000", "artist-credit-phrase": "The Clash" }, "length": "245000", "number": "14", "position": "14", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237320", "recording": { "id": "fde7fe59-91e7-4b72-b3b9-3d75e83eba97", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "The Man in Me", "length": "237320", "artist-credit-phrase": "The Clash" }, "length": "237320", "number": "15", "position": "15", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "159866", "recording": { "id": "0cbd7eaa-abbf-4c96-b3bf-bdfe35f4f1ad", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Remote Control", "length": "159866", "artist-credit-phrase": "The Clash" }, "length": "159866", "number": "16", "position": "16", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "251053", "recording": { "id": "e1dc8b5f-996c-486c-a5f9-138089f8b42d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Working and Waiting", "length": "251053", "artist-credit-phrase": "The Clash" }, "length": "251053", "number": "17", "position": "17", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "267506", "recording": { "id": "0be15c1e-ba35-4768-8b99-df0614c384c8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Heart & Mind", "length": "267506", "artist-credit-phrase": "The Clash" }, "length": "267506", "number": "18", "position": "18", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "128306", "recording": { "id": "2188771d-b43d-4fc4-a3f6-b44e7a6e70d4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "130240", "isrc-list": [ "GBBBN7900013" ], "title": "Brand New Cadillac", "artist-credit-phrase": "The Clash" }, "length": "128306", "number": "19", "position": "19", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "266666", "recording": { "id": "85232471-e953-4e27-80dd-4222a47f62c6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "London Calling", "length": "266666", "artist-credit-phrase": "The Clash" }, "length": "266666", "number": "20", "position": "20", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "231613", "recording": { "id": "608e5c9a-45b8-4cf4-b540-9f1961347ef2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Revolution Rock", "length": "231613", "artist-credit-phrase": "The Clash" }, "length": "231613", "number": "21", "position": "21", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" } ], "position": "2", "format": "CD", "title": "The Vanilla Tapes", "disc-list": [ { "sectors": "304319", "id": "Dh3sG1V5FOrM6k7_xnvtp4t1w3E-" } ] }, { "track-list": [ { "position": "1", "recording": { "id": "c02cbdf1-e499-4052-8e9f-ee4aff770f2d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "The Last Testament: The Making of London Calling (Documentary)", "artist-credit-phrase": "The Clash" }, "artist-credit-phrase": "The Clash", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "number": "1" }, { "position": "2", "recording": { "id": "901ea886-a513-4574-a7da-e4e39f34d438", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "London Calling (Video)", "artist-credit-phrase": "The Clash" }, "artist-credit-phrase": "The Clash", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "number": "2" }, { "position": "3", "recording": { "id": "ac02eb03-ac62-410e-b2af-5bf4eb0cfbe9", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Train In Vain (Video)", "artist-credit-phrase": "The Clash" }, "artist-credit-phrase": "The Clash", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "number": "3" }, { "position": "4", "recording": { "id": "0a89eccc-b9d3-4cf9-abaa-fdf6c36c5f26", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "Clampdown (Video)", "artist-credit-phrase": "The Clash" }, "artist-credit-phrase": "The Clash", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "number": "4" }, { "position": "5", "recording": { "id": "b86ccf42-abb4-4a2a-890b-2e010f721612", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "title": "London Calling in Wessex Studios (Home Video Footage)", "artist-credit-phrase": "The Clash" }, "artist-credit-phrase": "The Clash", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "number": "5" } ], "position": "3", "format": "DVD", "title": "The Last Testament: The Making of London Calling", "disc-list": [] } ], "title": "London Calling", "quality": "normal", "barcode": "5099751792833" }, { "id": "64cbd9c8-7446-3e26-8db0-81653eadc8dd", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "packaging": "Jewel Case", "date": "1987", "label-info-list": [ { "catalog-number": "EGK 36328", "label": { "id": "8f638ddb-131a-4cc3-b3d4-7ebdac201b55", "sort-name": "Epic", "name": "Epic", "label-code": "199" } } ], "artist-credit-phrase": "The Clash", "status": "Official", "text-representation": { "script": "Latn", "language": "eng" }, "barcode": "074643632829", "country": "US", "asin": "B0000025HU", "medium-list": [ { "track-list": [ { "track_or_recording_length": "203826", "recording": { "id": "ac1ae5ed-02e2-4eba-ad2d-e861a6bf04b2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "203826", "isrc-list": [ "GBBBN7902002" ], "title": "London Calling", "artist-credit-phrase": "The Clash" }, "length": "203826", "number": "1", "position": "1", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "130240", "recording": { "id": "2188771d-b43d-4fc4-a3f6-b44e7a6e70d4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "130240", "isrc-list": [ "GBBBN7900013" ], "title": "Brand New Cadillac", "artist-credit-phrase": "The Clash" }, "length": "130240", "number": "2", "position": "2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237160", "recording": { "id": "6a38755f-68ca-4f9c-bfcd-2d9a12162156", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237160", "isrc-list": [ "GBBBN7902019" ], "title": "Jimmy Jazz", "artist-credit-phrase": "The Clash" }, "length": "237160", "number": "3", "position": "3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "166106", "recording": { "id": "02937d76-a9a4-4815-bcfc-d449d26804f6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "166106", "isrc-list": [ "GBBBN7902020" ], "title": "Hateful", "artist-credit-phrase": "The Clash" }, "length": "166106", "number": "4", "position": "4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "211800", "recording": { "id": "97ea0a85-14ad-47c4-a086-8493307a130e", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "211800", "isrc-list": [ "GBBBN7902021" ], "title": "Rudie Can\u2019t Fail", "artist-credit-phrase": "The Clash" }, "length": "211800", "number": "5", "position": "5", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "201360", "recording": { "id": "b9dc4b7b-34e0-4028-ae5d-756bf08e5f48", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "201360", "isrc-list": [ "GBBBN7902022" ], "title": "Spanish Bombs", "artist-credit-phrase": "The Clash" }, "length": "201360", "number": "6", "position": "6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237666", "recording": { "id": "4037fa0e-0497-4d59-b67c-50ddc9f05995", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237666", "isrc-list": [ "GBBBN7902023" ], "title": "The Right Profile", "artist-credit-phrase": "The Clash" }, "length": "237666", "number": "7", "position": "7", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "230040", "recording": { "id": "276152f9-fe4a-4df0-aedc-606d57d429c2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7902024" ], "title": "Lost in the Supermarket", "artist-credit-phrase": "The Clash" }, "length": "230040", "number": "8", "position": "8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "232226", "recording": { "id": "e3bbd499-d80f-4964-a42f-664b15a5b72d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7900012" ], "title": "Clampdown", "artist-credit-phrase": "The Clash" }, "length": "232226", "number": "9", "position": "9", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193666", "recording": { "id": "6653886f-7d45-40bd-bb6c-51cc5895e022", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "192000", "isrc-list": [ "GBBBN7900010" ], "title": "The Guns of Brixton", "artist-credit-phrase": "The Clash" }, "length": "193666", "number": "10", "position": "10", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193240", "recording": { "id": "c0b50456-428c-4709-8cbc-44115ac2f014", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "193240", "isrc-list": [ "GBBBN7900001" ], "title": "Wrong \u2019Em Boyo", "artist-credit-phrase": "The Clash" }, "length": "193240", "number": "11", "position": "11", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237200", "recording": { "id": "abeb0916-5221-480d-b188-0c328d54b5ca", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237200", "isrc-list": [ "GBBBN7902025" ], "title": "Death or Glory", "artist-credit-phrase": "The Clash" }, "length": "237200", "number": "12", "position": "12", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "109533", "recording": { "id": "b7b519ff-66a9-4768-b9d2-1e527b091b7d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "109533", "isrc-list": [ "GBBBN7902018" ], "title": "Koka Kola", "artist-credit-phrase": "The Clash" }, "length": "109533", "number": "13", "position": "13", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "233000", "recording": { "id": "d8f25235-6a0c-4051-9952-03188b3cc51d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "233000", "isrc-list": [ "GBBBN7902026" ], "title": "The Card Cheat", "artist-credit-phrase": "The Clash" }, "length": "233000", "number": "14", "position": "14", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "245960", "recording": { "id": "4260ffa8-9bd2-4cd5-8350-2af1251caf7c", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "245960", "isrc-list": [ "GBBBN7902027" ], "title": "Lover\u2019s Rock", "artist-credit-phrase": "The Clash" }, "length": "245960", "number": "15", "position": "15", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "177506", "recording": { "id": "47ad3f7f-9285-4dcf-b391-b98f4c8d9ea4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "177506", "isrc-list": [ "GBBBN7902028" ], "title": "Four Horsemen", "artist-credit-phrase": "The Clash" }, "length": "177506", "number": "16", "position": "16", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "187760", "recording": { "id": "34b3820a-2676-4081-841d-8b66ab09cbc3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "187760", "isrc-list": [ "GBBBN7902029" ], "title": "I\u2019m Not Down", "artist-credit-phrase": "The Clash" }, "length": "187760", "number": "17", "position": "17", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "337133", "recording": { "id": "3c933124-72de-42cc-b896-42e4f373ed2f", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "337133", "isrc-list": [ "GBBBN7902030" ], "title": "Revolution Rock", "artist-credit-phrase": "The Clash" }, "length": "337133", "number": "18", "position": "18", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "191506", "recording": { "id": "09bb4e39-692e-4685-893b-8dad0bbcf549", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "191506", "isrc-list": [ "GBBBN7902003" ], "title": "Train in Vain", "artist-credit-phrase": "The Clash" }, "length": "191506", "number": "19", "position": "19", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" } ], "position": "1", "format": "CD", "disc-list": [ { "sectors": "297005", "id": "0FxZRzrLzeaM6ursyv6_VrZk4_w-" }, { "sectors": "296982", "id": "2FZ9bzQzLysN0WV1cfw0MFtL3.U-" }, { "sectors": "293192", "id": "30iVVm465NLVkMggEID5n6FgMWM-" }, { "sectors": "296887", "id": "GcsIkMZJDNmaetj9GmLGp1jyOlg-" }, { "sectors": "293207", "id": "JI0.k45ESg.8ze5Nc13wOhYDMaI-" }, { "sectors": "296983", "id": "Q3dEYWJRAcc5m0seaPRlYu0d0wo-" }, { "sectors": "296968", "id": "RiTfLe8MjC.ONTsFw0l7FDiRRHk-" }, { "sectors": "299647", "id": "SM1sbkyhlp6sIdqLwHjBsLZFNMA-" }, { "sectors": "296977", "id": "aHZySDeqfeI9yeyOCOMgwJYuw4o-" }, { "sectors": "299724", "id": "b2B_m88N7PhkWPRgc0NiIOl5.0M-" }, { "sectors": "293207", "id": "hSI7B4G4AkB5.DEBcW.3KCn.D_E-" }, { "sectors": "296882", "id": "i4c.FMWpd8QjWCWcRKCz6OgfpI8-" }, { "sectors": "295099", "id": "kKOqMEuRDSeW_.K49SUEJXensLY-" }, { "sectors": "293162", "id": "mIhE88myHio7Pe0GT9Gva4EldRY-" }, { "sectors": "296882", "id": "zG7lNMDNNoSE8m_nl9J49cqjIIg-" } ] } ], "title": "London Calling", "quality": "normal" }, { "id": "757e942f-b4f7-4f83-a475-c1a5727c7b50", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "date": "2004-09-21", "label-info-list": [], "artist-credit-phrase": "The Clash", "status": "Official", "text-representation": { "script": "Latn", "language": "eng" }, "country": "US", "asin": "B0002Y4TZG", "medium-list": [ { "track-list": [ { "track_or_recording_length": "203826", "recording": { "id": "ac1ae5ed-02e2-4eba-ad2d-e861a6bf04b2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "203826", "isrc-list": [ "GBBBN7902002" ], "title": "London Calling", "artist-credit-phrase": "The Clash" }, "length": "203826", "number": "1", "position": "1", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "130240", "recording": { "id": "2188771d-b43d-4fc4-a3f6-b44e7a6e70d4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "130240", "isrc-list": [ "GBBBN7900013" ], "title": "Brand New Cadillac", "artist-credit-phrase": "The Clash" }, "length": "130240", "number": "2", "position": "2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237160", "recording": { "id": "6a38755f-68ca-4f9c-bfcd-2d9a12162156", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237160", "isrc-list": [ "GBBBN7902019" ], "title": "Jimmy Jazz", "artist-credit-phrase": "The Clash" }, "length": "237160", "number": "3", "position": "3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "166106", "recording": { "id": "02937d76-a9a4-4815-bcfc-d449d26804f6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "166106", "isrc-list": [ "GBBBN7902020" ], "title": "Hateful", "artist-credit-phrase": "The Clash" }, "length": "166106", "number": "4", "position": "4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "211800", "recording": { "id": "97ea0a85-14ad-47c4-a086-8493307a130e", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "211800", "isrc-list": [ "GBBBN7902021" ], "title": "Rudie Can\u2019t Fail", "artist-credit-phrase": "The Clash" }, "length": "211800", "number": "5", "position": "5", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "201360", "recording": { "id": "b9dc4b7b-34e0-4028-ae5d-756bf08e5f48", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "201360", "isrc-list": [ "GBBBN7902022" ], "title": "Spanish Bombs", "artist-credit-phrase": "The Clash" }, "length": "201360", "number": "6", "position": "6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237666", "recording": { "id": "4037fa0e-0497-4d59-b67c-50ddc9f05995", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237666", "isrc-list": [ "GBBBN7902023" ], "title": "The Right Profile", "artist-credit-phrase": "The Clash" }, "length": "237666", "number": "7", "position": "7", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "230040", "recording": { "id": "276152f9-fe4a-4df0-aedc-606d57d429c2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7902024" ], "title": "Lost in the Supermarket", "artist-credit-phrase": "The Clash" }, "length": "230040", "number": "8", "position": "8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "232226", "recording": { "id": "e3bbd499-d80f-4964-a42f-664b15a5b72d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7900012" ], "title": "Clampdown", "artist-credit-phrase": "The Clash" }, "length": "232226", "number": "9", "position": "9", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193666", "recording": { "id": "6653886f-7d45-40bd-bb6c-51cc5895e022", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "192000", "isrc-list": [ "GBBBN7900010" ], "title": "The Guns of Brixton", "artist-credit-phrase": "The Clash" }, "length": "193666", "number": "10", "position": "10", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193240", "recording": { "id": "c0b50456-428c-4709-8cbc-44115ac2f014", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "193240", "isrc-list": [ "GBBBN7900001" ], "title": "Wrong \u2019Em Boyo", "artist-credit-phrase": "The Clash" }, "length": "193240", "number": "11", "position": "11", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237200", "recording": { "id": "abeb0916-5221-480d-b188-0c328d54b5ca", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237200", "isrc-list": [ "GBBBN7902025" ], "title": "Death or Glory", "artist-credit-phrase": "The Clash" }, "length": "237200", "number": "12", "position": "12", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "109533", "recording": { "id": "b7b519ff-66a9-4768-b9d2-1e527b091b7d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "109533", "isrc-list": [ "GBBBN7902018" ], "title": "Koka Kola", "artist-credit-phrase": "The Clash" }, "length": "109533", "number": "13", "position": "13", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "233000", "recording": { "id": "d8f25235-6a0c-4051-9952-03188b3cc51d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "233000", "isrc-list": [ "GBBBN7902026" ], "title": "The Card Cheat", "artist-credit-phrase": "The Clash" }, "length": "233000", "number": "14", "position": "14", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "245960", "recording": { "id": "4260ffa8-9bd2-4cd5-8350-2af1251caf7c", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "245960", "isrc-list": [ "GBBBN7902027" ], "title": "Lover\u2019s Rock", "artist-credit-phrase": "The Clash" }, "length": "245960", "number": "15", "position": "15", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "177506", "recording": { "id": "47ad3f7f-9285-4dcf-b391-b98f4c8d9ea4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "177506", "isrc-list": [ "GBBBN7902028" ], "title": "Four Horsemen", "artist-credit-phrase": "The Clash" }, "length": "177506", "number": "16", "position": "16", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "187760", "recording": { "id": "34b3820a-2676-4081-841d-8b66ab09cbc3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "187760", "isrc-list": [ "GBBBN7902029" ], "title": "I\u2019m Not Down", "artist-credit-phrase": "The Clash" }, "length": "187760", "number": "17", "position": "17", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "337133", "recording": { "id": "3c933124-72de-42cc-b896-42e4f373ed2f", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "337133", "isrc-list": [ "GBBBN7902030" ], "title": "Revolution Rock", "artist-credit-phrase": "The Clash" }, "length": "337133", "number": "18", "position": "18", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "191506", "recording": { "id": "09bb4e39-692e-4685-893b-8dad0bbcf549", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "191506", "isrc-list": [ "GBBBN7902003" ], "title": "Train in Vain", "artist-credit-phrase": "The Clash" }, "length": "191506", "number": "19", "position": "19", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" } ], "position": "1", "disc-list": [ { "sectors": "297005", "id": "0FxZRzrLzeaM6ursyv6_VrZk4_w-" }, { "sectors": "296982", "id": "2FZ9bzQzLysN0WV1cfw0MFtL3.U-" }, { "sectors": "293192", "id": "30iVVm465NLVkMggEID5n6FgMWM-" }, { "sectors": "296887", "id": "GcsIkMZJDNmaetj9GmLGp1jyOlg-" }, { "sectors": "293207", "id": "JI0.k45ESg.8ze5Nc13wOhYDMaI-" }, { "sectors": "296983", "id": "Q3dEYWJRAcc5m0seaPRlYu0d0wo-" }, { "sectors": "296968", "id": "RiTfLe8MjC.ONTsFw0l7FDiRRHk-" }, { "sectors": "299647", "id": "SM1sbkyhlp6sIdqLwHjBsLZFNMA-" }, { "sectors": "296977", "id": "aHZySDeqfeI9yeyOCOMgwJYuw4o-" }, { "sectors": "299724", "id": "b2B_m88N7PhkWPRgc0NiIOl5.0M-" }, { "sectors": "293207", "id": "hSI7B4G4AkB5.DEBcW.3KCn.D_E-" }, { "sectors": "296882", "id": "i4c.FMWpd8QjWCWcRKCz6OgfpI8-" }, { "sectors": "295099", "id": "kKOqMEuRDSeW_.K49SUEJXensLY-" }, { "sectors": "293162", "id": "mIhE88myHio7Pe0GT9Gva4EldRY-" } ] } ], "title": "London Calling", "quality": "normal" }, { "id": "75b17f23-8ad1-3df2-9c7c-cae03b2b8eb4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "packaging": "Cardboard/Paper Sleeve", "date": "2009-12-14", "label-info-list": [ { "catalog-number": "88697618392", "label": { "id": "011d1192-6f65-45bd-85c4-0400dd45693e", "sort-name": "Columbia", "name": "Columbia", "disambiguation": "1931-1990: only US & CA; 1991 to present: worldwide except JP", "label-code": "162" } } ], "artist-credit-phrase": "The Clash", "status": "Official", "text-representation": { "script": "Latn", "language": "eng" }, "barcode": "886976183929", "country": "GB", "asin": "B002UO73Z4", "medium-list": [ { "track-list": [ { "track_or_recording_length": "203826", "recording": { "id": "ac1ae5ed-02e2-4eba-ad2d-e861a6bf04b2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "203826", "isrc-list": [ "GBBBN7902002" ], "title": "London Calling", "artist-credit-phrase": "The Clash" }, "length": "203826", "number": "1", "position": "1", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "130240", "recording": { "id": "2188771d-b43d-4fc4-a3f6-b44e7a6e70d4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "130240", "isrc-list": [ "GBBBN7900013" ], "title": "Brand New Cadillac", "artist-credit-phrase": "The Clash" }, "length": "130240", "number": "2", "position": "2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237160", "recording": { "id": "6a38755f-68ca-4f9c-bfcd-2d9a12162156", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237160", "isrc-list": [ "GBBBN7902019" ], "title": "Jimmy Jazz", "artist-credit-phrase": "The Clash" }, "length": "237160", "number": "3", "position": "3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "166106", "recording": { "id": "02937d76-a9a4-4815-bcfc-d449d26804f6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "166106", "isrc-list": [ "GBBBN7902020" ], "title": "Hateful", "artist-credit-phrase": "The Clash" }, "length": "166106", "number": "4", "position": "4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "211800", "recording": { "id": "97ea0a85-14ad-47c4-a086-8493307a130e", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "211800", "isrc-list": [ "GBBBN7902021" ], "title": "Rudie Can\u2019t Fail", "artist-credit-phrase": "The Clash" }, "length": "211800", "number": "5", "position": "5", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "201360", "recording": { "id": "b9dc4b7b-34e0-4028-ae5d-756bf08e5f48", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "201360", "isrc-list": [ "GBBBN7902022" ], "title": "Spanish Bombs", "artist-credit-phrase": "The Clash" }, "length": "201360", "number": "6", "position": "6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237666", "recording": { "id": "4037fa0e-0497-4d59-b67c-50ddc9f05995", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237666", "isrc-list": [ "GBBBN7902023" ], "title": "The Right Profile", "artist-credit-phrase": "The Clash" }, "length": "237666", "number": "7", "position": "7", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "230040", "recording": { "id": "276152f9-fe4a-4df0-aedc-606d57d429c2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7902024" ], "title": "Lost in the Supermarket", "artist-credit-phrase": "The Clash" }, "length": "230040", "number": "8", "position": "8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "232226", "recording": { "id": "e3bbd499-d80f-4964-a42f-664b15a5b72d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7900012" ], "title": "Clampdown", "artist-credit-phrase": "The Clash" }, "length": "232226", "number": "9", "position": "9", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193666", "recording": { "id": "6653886f-7d45-40bd-bb6c-51cc5895e022", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "192000", "isrc-list": [ "GBBBN7900010" ], "title": "The Guns of Brixton", "artist-credit-phrase": "The Clash" }, "length": "193666", "number": "10", "position": "10", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193240", "recording": { "id": "c0b50456-428c-4709-8cbc-44115ac2f014", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "193240", "isrc-list": [ "GBBBN7900001" ], "title": "Wrong \u2019Em Boyo", "artist-credit-phrase": "The Clash" }, "length": "193240", "number": "11", "position": "11", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237200", "recording": { "id": "abeb0916-5221-480d-b188-0c328d54b5ca", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237200", "isrc-list": [ "GBBBN7902025" ], "title": "Death or Glory", "artist-credit-phrase": "The Clash" }, "length": "237200", "number": "12", "position": "12", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "109533", "recording": { "id": "b7b519ff-66a9-4768-b9d2-1e527b091b7d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "109533", "isrc-list": [ "GBBBN7902018" ], "title": "Koka Kola", "artist-credit-phrase": "The Clash" }, "length": "109533", "number": "13", "position": "13", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "233000", "recording": { "id": "d8f25235-6a0c-4051-9952-03188b3cc51d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "233000", "isrc-list": [ "GBBBN7902026" ], "title": "The Card Cheat", "artist-credit-phrase": "The Clash" }, "length": "233000", "number": "14", "position": "14", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "245960", "recording": { "id": "4260ffa8-9bd2-4cd5-8350-2af1251caf7c", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "245960", "isrc-list": [ "GBBBN7902027" ], "title": "Lover\u2019s Rock", "artist-credit-phrase": "The Clash" }, "length": "245960", "number": "15", "position": "15", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "177506", "recording": { "id": "47ad3f7f-9285-4dcf-b391-b98f4c8d9ea4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "177506", "isrc-list": [ "GBBBN7902028" ], "title": "Four Horsemen", "artist-credit-phrase": "The Clash" }, "length": "177506", "number": "16", "position": "16", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "187760", "recording": { "id": "34b3820a-2676-4081-841d-8b66ab09cbc3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "187760", "isrc-list": [ "GBBBN7902029" ], "title": "I\u2019m Not Down", "artist-credit-phrase": "The Clash" }, "length": "187760", "number": "17", "position": "17", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "337133", "recording": { "id": "3c933124-72de-42cc-b896-42e4f373ed2f", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "337133", "isrc-list": [ "GBBBN7902030" ], "title": "Revolution Rock", "artist-credit-phrase": "The Clash" }, "length": "337133", "number": "18", "position": "18", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "191506", "recording": { "id": "09bb4e39-692e-4685-893b-8dad0bbcf549", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "191506", "isrc-list": [ "GBBBN7902003" ], "title": "Train in Vain", "artist-credit-phrase": "The Clash" }, "length": "191506", "number": "19", "position": "19", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" } ], "position": "1", "format": "CD", "disc-list": [ { "sectors": "297005", "id": "0FxZRzrLzeaM6ursyv6_VrZk4_w-" }, { "sectors": "296982", "id": "2FZ9bzQzLysN0WV1cfw0MFtL3.U-" }, { "sectors": "293192", "id": "30iVVm465NLVkMggEID5n6FgMWM-" }, { "sectors": "296887", "id": "GcsIkMZJDNmaetj9GmLGp1jyOlg-" }, { "sectors": "293207", "id": "JI0.k45ESg.8ze5Nc13wOhYDMaI-" }, { "sectors": "296983", "id": "Q3dEYWJRAcc5m0seaPRlYu0d0wo-" }, { "sectors": "296968", "id": "RiTfLe8MjC.ONTsFw0l7FDiRRHk-" }, { "sectors": "299647", "id": "SM1sbkyhlp6sIdqLwHjBsLZFNMA-" }, { "sectors": "296977", "id": "aHZySDeqfeI9yeyOCOMgwJYuw4o-" }, { "sectors": "299724", "id": "b2B_m88N7PhkWPRgc0NiIOl5.0M-" }, { "sectors": "293207", "id": "hSI7B4G4AkB5.DEBcW.3KCn.D_E-" }, { "sectors": "296882", "id": "i4c.FMWpd8QjWCWcRKCz6OgfpI8-" }, { "sectors": "295099", "id": "kKOqMEuRDSeW_.K49SUEJXensLY-" }, { "sectors": "293162", "id": "mIhE88myHio7Pe0GT9Gva4EldRY-" } ] } ], "title": "London Calling", "quality": "normal" }, { "id": "dd2a7795-055f-3f00-9e7f-2369b4403aef", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "packaging": "Jewel Case", "date": "1999-10-08", "label-info-list": [ { "catalog-number": "496247 2", "label": { "id": "011d1192-6f65-45bd-85c4-0400dd45693e", "sort-name": "Columbia", "name": "Columbia", "disambiguation": "1931-1990: only US & CA; 1991 to present: worldwide except JP", "label-code": "162" } } ], "artist-credit-phrase": "The Clash", "status": "Official", "text-representation": { "script": "Latn", "language": "eng" }, "barcode": "9399700070729", "country": "AU", "medium-list": [ { "track-list": [ { "track_or_recording_length": "203826", "recording": { "id": "ac1ae5ed-02e2-4eba-ad2d-e861a6bf04b2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "203826", "isrc-list": [ "GBBBN7902002" ], "title": "London Calling", "artist-credit-phrase": "The Clash" }, "length": "203826", "number": "1", "position": "1", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "130240", "recording": { "id": "2188771d-b43d-4fc4-a3f6-b44e7a6e70d4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "130240", "isrc-list": [ "GBBBN7900013" ], "title": "Brand New Cadillac", "artist-credit-phrase": "The Clash" }, "length": "130240", "number": "2", "position": "2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237160", "recording": { "id": "6a38755f-68ca-4f9c-bfcd-2d9a12162156", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237160", "isrc-list": [ "GBBBN7902019" ], "title": "Jimmy Jazz", "artist-credit-phrase": "The Clash" }, "length": "237160", "number": "3", "position": "3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "166106", "recording": { "id": "02937d76-a9a4-4815-bcfc-d449d26804f6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "166106", "isrc-list": [ "GBBBN7902020" ], "title": "Hateful", "artist-credit-phrase": "The Clash" }, "length": "166106", "number": "4", "position": "4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "211800", "recording": { "id": "97ea0a85-14ad-47c4-a086-8493307a130e", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "211800", "isrc-list": [ "GBBBN7902021" ], "title": "Rudie Can\u2019t Fail", "artist-credit-phrase": "The Clash" }, "length": "211800", "number": "5", "position": "5", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "201360", "recording": { "id": "b9dc4b7b-34e0-4028-ae5d-756bf08e5f48", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "201360", "isrc-list": [ "GBBBN7902022" ], "title": "Spanish Bombs", "artist-credit-phrase": "The Clash" }, "length": "201360", "number": "6", "position": "6", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237666", "recording": { "id": "4037fa0e-0497-4d59-b67c-50ddc9f05995", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237666", "isrc-list": [ "GBBBN7902023" ], "title": "The Right Profile", "artist-credit-phrase": "The Clash" }, "length": "237666", "number": "7", "position": "7", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "230040", "recording": { "id": "276152f9-fe4a-4df0-aedc-606d57d429c2", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7902024" ], "title": "Lost in the Supermarket", "artist-credit-phrase": "The Clash" }, "length": "230040", "number": "8", "position": "8", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "232226", "recording": { "id": "e3bbd499-d80f-4964-a42f-664b15a5b72d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "229000", "isrc-list": [ "GBBBN7900012" ], "title": "Clampdown", "artist-credit-phrase": "The Clash" }, "length": "232226", "number": "9", "position": "9", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193666", "recording": { "id": "6653886f-7d45-40bd-bb6c-51cc5895e022", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "192000", "isrc-list": [ "GBBBN7900010" ], "title": "The Guns of Brixton", "artist-credit-phrase": "The Clash" }, "length": "193666", "number": "10", "position": "10", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "193240", "recording": { "id": "c0b50456-428c-4709-8cbc-44115ac2f014", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "193240", "isrc-list": [ "GBBBN7900001" ], "title": "Wrong \u2019Em Boyo", "artist-credit-phrase": "The Clash" }, "length": "193240", "number": "11", "position": "11", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "237200", "recording": { "id": "abeb0916-5221-480d-b188-0c328d54b5ca", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "237200", "isrc-list": [ "GBBBN7902025" ], "title": "Death or Glory", "artist-credit-phrase": "The Clash" }, "length": "237200", "number": "12", "position": "12", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "109533", "recording": { "id": "b7b519ff-66a9-4768-b9d2-1e527b091b7d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "109533", "isrc-list": [ "GBBBN7902018" ], "title": "Koka Kola", "artist-credit-phrase": "The Clash" }, "length": "109533", "number": "13", "position": "13", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "233000", "recording": { "id": "d8f25235-6a0c-4051-9952-03188b3cc51d", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "233000", "isrc-list": [ "GBBBN7902026" ], "title": "The Card Cheat", "artist-credit-phrase": "The Clash" }, "length": "233000", "number": "14", "position": "14", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "245960", "recording": { "id": "4260ffa8-9bd2-4cd5-8350-2af1251caf7c", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "245960", "isrc-list": [ "GBBBN7902027" ], "title": "Lover\u2019s Rock", "artist-credit-phrase": "The Clash" }, "length": "245960", "number": "15", "position": "15", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "177506", "recording": { "id": "47ad3f7f-9285-4dcf-b391-b98f4c8d9ea4", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "177506", "isrc-list": [ "GBBBN7902028" ], "title": "Four Horsemen", "artist-credit-phrase": "The Clash" }, "length": "177506", "number": "16", "position": "16", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "187760", "recording": { "id": "34b3820a-2676-4081-841d-8b66ab09cbc3", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "187760", "isrc-list": [ "GBBBN7902029" ], "title": "I\u2019m Not Down", "artist-credit-phrase": "The Clash" }, "length": "187760", "number": "17", "position": "17", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "337133", "recording": { "id": "3c933124-72de-42cc-b896-42e4f373ed2f", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "337133", "isrc-list": [ "GBBBN7902030" ], "title": "Revolution Rock", "artist-credit-phrase": "The Clash" }, "length": "337133", "number": "18", "position": "18", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" }, { "track_or_recording_length": "191506", "recording": { "id": "09bb4e39-692e-4685-893b-8dad0bbcf549", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "length": "191506", "isrc-list": [ "GBBBN7902003" ], "title": "Train in Vain", "artist-credit-phrase": "The Clash" }, "length": "191506", "number": "19", "position": "19", "artist-credit": [ { "artist": { "id": "8f92558c-2baa-4758-8c38-615519e9deda", "sort-name": "Clash, The", "name": "The Clash", "disambiguation": "70s-80s British punk rock band" } } ], "artist-credit-phrase": "The Clash" } ], "position": "1", "format": "CD", "disc-list": [ { "sectors": "297005", "id": "0FxZRzrLzeaM6ursyv6_VrZk4_w-" }, { "sectors": "296982", "id": "2FZ9bzQzLysN0WV1cfw0MFtL3.U-" }, { "sectors": "293192", "id": "30iVVm465NLVkMggEID5n6FgMWM-" }, { "sectors": "296887", "id": "GcsIkMZJDNmaetj9GmLGp1jyOlg-" }, { "sectors": "293207", "id": "JI0.k45ESg.8ze5Nc13wOhYDMaI-" }, { "sectors": "296983", "id": "Q3dEYWJRAcc5m0seaPRlYu0d0wo-" }, { "sectors": "296968", "id": "RiTfLe8MjC.ONTsFw0l7FDiRRHk-" }, { "sectors": "299647", "id": "SM1sbkyhlp6sIdqLwHjBsLZFNMA-" }, { "sectors": "296977", "id": "aHZySDeqfeI9yeyOCOMgwJYuw4o-" }, { "sectors": "299724", "id": "b2B_m88N7PhkWPRgc0NiIOl5.0M-" }, { "sectors": "293207", "id": "hSI7B4G4AkB5.DEBcW.3KCn.D_E-" }, { "sectors": "296882", "id": "i4c.FMWpd8QjWCWcRKCz6OgfpI8-" }, { "sectors": "295099", "id": "kKOqMEuRDSeW_.K49SUEJXensLY-" }, { "sectors": "293162", "id": "mIhE88myHio7Pe0GT9Gva4EldRY-" } ] } ], "title": "London Calling", "quality": "normal" } ] } }isrcsubmit-2.1.0/test_data/hSI7B4G4AkB5.DEBcW.3KCn.D_E-.pickle0000644000000000000000000000215412331733035021460 0ustar rootrootctest_isrcsubmit MockedDisc q)q}q(XidqXhSI7B4G4AkB5.DEBcW.3KCn.D_E-qXsubmission_urlqXhttp://musicbrainz.org/cdtoc/attach?id=hSI7B4G4AkB5.DEBcW.3KCn.D_E-&tracks=19&toc=1+19+293207+150+15137+24757+42377+54680+70365+85280+102880+119920+137100+151345+165640+183267+191357+208572+226807+239990+253945+278952qXtracksq]q(ctest_isrcsubmit MockedTrack q )q }q (Xnumberq KXisrcq X GBBBN7902002qubh )q}q(h Kh X GBBBN7900013qubh )q}q(h Kh X GBBBN7902019qubh )q}q(h Kh X GBBBN7902020qubh )q}q(h Kh X GBBBN7902021qubh )q}q(h Kh X GBBBN7902022qubh )q}q(h Kh X GBBBN7902023q ubh )q!}q"(h Kh X GBBBN7902024q#ubh )q$}q%(h K h X GBBBN7900012q&ubh )q'}q((h K h X GBBBN7900010q)ubh )q*}q+(h K h X GBBBN7900001q,ubh )q-}q.(h K h X GBBBN7902025q/ubh )q0}q1(h K h X GBBBN7902018q2ubh )q3}q4(h Kh X GBBBN7902026q5ubh )q6}q7(h Kh X GBBBN7902027q8ubh )q9}q:(h Kh X GBBBN7902028q;ubh )q<}q=(h Kh X GBBBN7902029q>ubh )q?}q@(h Kh X GBBBN7902030qAubh )qB}qC(h Kh X GBBBN7902003qDubeXmcnqEX 5099749534728qFub.isrcsubmit-2.1.0/test_data/TqvKjMu7dMliSfmVEBtrL7sBSno-_releases.json0000644000000000000000000005025112331733035024161 0ustar rootroot{ "disc": { "id": "TqvKjMu7dMliSfmVEBtrL7sBSno-", "sectors": "258725", "release-list": [ { "id": "07090529-0fbf-4bd3-adc4-fe627343976d", "asin": "B00004STZ8", "date": "2000-05-02", "text-representation": { "script": "Latn", "language": "eng" }, "status": "Official", "country": "DE", "quality": "normal", "artist-credit-phrase": "Guano Apes", "title": "Don\u2019t Give Me Names", "barcode": "743217522421", "label-info-list": [ { "label": { "id": "29d7c88f-5200-4418-a683-5c94ea032e38", "disambiguation": "Bertelsmann Music Group", "name": "BMG", "sort-name": "BMG", "label-code": "116" }, "catalog-number": "74321 75224 2" }, { "label": { "id": "da631842-b2b2-4b65-a526-592f1b776c18", "disambiguation": "German rock, subsidiary of GUN Records", "name": "Supersonic Records", "sort-name": "Supersonic Records", "label-code": "1892" }, "catalog-number": "SUPERSONIC 051" } ], "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ], "medium-list": [ { "track-list": [ { "track_or_recording_length": "231466", "position": "1", "recording": { "id": "95042c0a-5b64-4f61-ba75-2a1be26466d3", "isrc-list": [ "DEC680000212" ], "title": "Innocent Greed", "artist-credit-phrase": "Guano Apes", "length": "231466", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "231466", "number": "1", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "210200", "position": "2", "recording": { "id": "f987b1c3-fc48-4466-9323-3bdcff6cba24", "isrc-list": [ "DEC680000218" ], "title": "No Speech", "artist-credit-phrase": "Guano Apes", "length": "210200", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "210200", "number": "2", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "168466", "position": "3", "recording": { "id": "be817c76-e7eb-44f8-9ad1-733725040674", "isrc-list": [ "DEC680000202" ], "title": "Big in Japan", "artist-credit-phrase": "Guano Apes", "length": "168466", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "168466", "number": "3", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "158600", "position": "4", "recording": { "id": "26a688d6-e7f1-419e-9528-7581f36bf776", "isrc-list": [ "DEC680000220" ], "title": "Money & Milk", "artist-credit-phrase": "Guano Apes", "length": "158600", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "158600", "number": "4", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "273400", "position": "5", "recording": { "id": "8664d10b-72e6-436d-bbeb-b9926cdc97c2", "isrc-list": [ "DEC680000221" ], "title": "Living in a Lie", "artist-credit-phrase": "Guano Apes", "length": "273400", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "273400", "number": "5", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "217866", "position": "6", "recording": { "id": "37d0fabb-b4dd-4d8f-910c-d8e780fa2c74", "isrc-list": [ "DEC680000223" ], "title": "D\u00f6del Up", "artist-credit-phrase": "Guano Apes", "length": "217866", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "217866", "number": "6", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "199066", "position": "7", "recording": { "id": "99e70ae0-89a3-42d6-9687-ad78f61b720d", "isrc-list": [ "DEC680000204" ], "title": "I Want It", "artist-credit-phrase": "Guano Apes", "length": "199066", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "199066", "number": "7", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "299066", "position": "8", "recording": { "id": "1f8e3771-a70c-470d-a887-d5bb96a94dde", "isrc-list": [ "DEC680000222" ], "title": "Heaven", "artist-credit-phrase": "Guano Apes", "length": "299066", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "299066", "number": "8", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "228666", "position": "9", "recording": { "id": "e51130d5-2151-4eb6-b874-b6334ad839e2", "isrc-list": [ "DEC680000224" ], "title": "Mine All Mine", "artist-credit-phrase": "Guano Apes", "length": "228666", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "228666", "number": "9", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "212733", "position": "10", "recording": { "id": "f4db8da8-62fd-43ea-872a-55a40efd583e", "isrc-list": [ "DEC680000225" ], "title": "Too Close to Leave", "artist-credit-phrase": "Guano Apes", "length": "212733", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "212733", "number": "10", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "167933", "position": "11", "recording": { "id": "218dc3ad-2c7f-40b5-b912-887928c46810", "isrc-list": [ "DEC680000203" ], "title": "Gogan", "artist-credit-phrase": "Guano Apes", "length": "167933", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "167933", "number": "11", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "341533", "position": "12", "recording": { "id": "59186c4a-9463-4cfb-9a3d-3e161e9c65a6", "isrc-list": [ "DEC680000227" ], "title": "Anne Claire", "artist-credit-phrase": "Guano Apes", "length": "341533", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "341533", "number": "12", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "163066", "position": "13", "recording": { "id": "8bcda8b6-9724-4d90-abbf-c4103d1f3b85", "isrc-list": [ "DEC680000226" ], "title": "Ain\u2019t Got Time", "artist-credit-phrase": "Guano Apes", "length": "163066", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "163066", "number": "13", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "267133", "position": "14", "recording": { "id": "375537ed-4ad6-4d55-906a-7ff423823234", "isrc-list": [ "DEC680000376" ], "title": "Living in a Lie (unplugged)", "artist-credit-phrase": "Guano Apes", "length": "267133", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "267133", "number": "14", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, { "track_or_recording_length": "310466", "position": "15", "recording": { "id": "680d7037-1cab-403c-88a6-36e93d82fded", "isrc-list": [ "DEC680000377" ], "title": "Anne Claire (unplugged)", "artist-credit-phrase": "Guano Apes", "length": "310466", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] }, "artist-credit-phrase": "Guano Apes", "length": "310466", "number": "15", "artist-credit": [ { "artist": { "id": "66da25f9-1534-4dd1-b88c-718bc24e1ccd", "name": "Guano Apes", "sort-name": "Guano Apes" } } ] } ], "format": "CD", "position": "1", "disc-list": [ { "id": "4QErGPmWoXZEA8ztu4.c2aApaUA-", "sectors": "260165" }, { "id": "TqvKjMu7dMliSfmVEBtrL7sBSno-", "sectors": "258725" }, { "id": "V_X6KyyJXpCGI6KuicNFrBuko08-", "sectors": "258875" } ] } ], "packaging": "Digipak" } ] } }isrcsubmit-2.1.0/setup.py0000755000000000000000000001013113434120134014100 0ustar rootroot#!/usr/bin/env python import sys import unittest try: from setuptools import setup, Command have_setuptools = True except ImportError: from distutils.core import setup, Command have_setuptools = False from distutils.command.build import build try: import sphinx from sphinx.setup_command import BuildDoc using_sphinx = True except ImportError: using_sphinx = False cmdclass = {} if using_sphinx: # use Sphinx to build the manpage if it is available class BuildDocMan(BuildDoc): def initialize_options(self): BuildDoc.initialize_options(self) self.builder = 'man' self.source_dir = 'doc' self.build_dir = 'build' # automatically build manpages as sub target of build build.sub_commands.append(('build_sphinx_man', None)) cmdclass['build_sphinx_man'] = BuildDocMan import platform if platform.system() in ['FreeBSD', 'OpenBSD']: man_dir = 'man' else: man_dir = 'share/man' import os.path man_pages = [ (os.path.join(man_dir, 'man1'), ['build/man/isrcsubmit.1']), (os.path.join(man_dir, 'man5'), ['build/man/isrcsubmit-config.5']) ] else: man_pages = [] args = {} if have_setuptools: args["install_requires"] = ["discid >=1.0.0", "musicbrainzngs >=0.4"], # we load isrcsubmit on setup args["setup_requires"] = args["install_requires"], class Test(Command): description = "run the test suite" # options as listed with "--help test" # --verbose --quiet -> self.verbose are already handles as global options user_options = [ ("tests=", None, "a comma separated list of tests to run (default all)") ] def initialize_options(self): # set defaults self.tests = None def finalize_options(self): if self.verbose: self.verbosity = 2 else: self.verbosity = 1 if self.tests is not None: if self.tests: self.names = self.tests.split(",") else: self.names = [] else: self.names = ["test_isrcsubmit.TestInternal", "test_isrcsubmit.TestScript"] def run(self): suite = unittest.defaultTestLoader.loadTestsFromNames(self.names) runner = unittest.TextTestRunner(verbosity=self.verbosity) result = runner.run(suite) if result.wasSuccessful(): sys.exit(0) else: sys.exit(len(result.failures) + len(result.errors)) cmdclass["test"] = Test with open("README.rst") as readme: long_description = readme.read() setup(name="isrcsubmit", version="2.1.0", description="submit ISRCs from disc to MusicBrainz", long_description=long_description, author="Johannes Dewender", author_email="brainz@JonnyJD.net", url="https://github.com/JonnyJD/musicbrainz-isrcsubmit", requires=["discid(>=1.0.0)", "musicbrainzngs(>=0.4)"], scripts=["isrcsubmit.py"], license="GPLv3+", classifiers=[ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: MacOS X", "Environment :: Win32 (MS Windows)", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Database :: Front-Ends", "Topic :: Multimedia :: Sound/Audio :: CD Audio :: CD Ripping", "Topic :: Text Processing :: Filters" ], data_files=man_pages, cmdclass=cmdclass, **args ) # vim:set shiftwidth=4 smarttab expandtab: isrcsubmit-2.1.0/README.rst0000644000000000000000000000754713434120134014073 0ustar rootrootIsrcsubmit 2.1.0 for MusicBrainz ================================ This python script extracts ISRCs_ from audio CDs and submits them to MusicBrainz_. This script uses python-musicbrainzngs to access the MusicBrainz API and python-discid to create an identifier for the disc. The script works for Linux, Mac OS X and Windows. .. _ISRCs: http://en.wikipedia.org/wiki/International_Standard_Recording_Code .. _MusicBrainz: http://musicbrainz.org Features: --------- * read ISRCs from disc * search for releases with the TOC of the disc * display release information from MusicBrainz * submit ISRCs * submit discIds / TOCs * duplicate ISRC detection (local and on server) Dependencies: ------------- * Python 2 >= 2.6 or Python 3 >= 3.1 * python-discid_ >= 1.0.0 (or python-libdiscid_ >= 0.2.0) * python-musicbrainzngs_ >= 0.4 * keyring_ (optional) .. _python-discid: http://python-discid.readthedocs.org/ .. _python-libdiscid: http://pythonhosted.org/python-libdiscid/ .. _python-musicbrainzngs: http://python-musicbrainzngs.readthedocs.org/ .. _keyring: https://github.com/jaraco/keyring Usage: ------ :: isrcsubmit.py [options] [username] [device] All arguments are optional. For detailed usage see:: isrcsubmit.py -h Windows Usage: -------------- Windows users should use:: isrcsubmit.bat Mac Usage: ---------- Mac users should rather use:: isrcsubmit.sh This also works on Linux. Duplicate ISRCs: ---------------- Some cd readers report the same ISRCs for different (adjacent) tracks. Others don't, for the same physical disc. For me my dvd writer worked better. On Windows the mediatools backend should give correct results either way. Isrcsubmit checks for problems with duplicate ISRCs and prints a warning. You will always have the choice to cancel the submission if something seems to be wrong. If the disc is known to MusicBrainz, additional information about it is fetched from MusicBrainz. If the disc is unknown, you will be given the chance to submit the ID to the server. "Installation": --------------- If you downloaded isrcsubmit as a zip package for your platform then you only need to extract that somewhere and start using it. You can also stop reading this section. You can install using pypi_ with:: pip install isrcsubmit This handles all python dependencies, but you still need to install libdiscid (before running pip). The script itself does not need any installation, but "python setup.py install" might work for you. However, the backends and libraries should get installed so that the script has access to them. On Linux you just install the above mentioneed dependencies with the package manager of your distribution. For Ubuntu all dependencies should be in the MusicBrainz Stable PPA, if not in the official repositories. On Windows and Mac you have to put the musicbrainzngs folder of python-musicbrainzngs, discid of python-discid in the same directory as this script or adjust the python path. You also need to put discid.dll (Windows) and libdiscid.dylib.0 (Mac) into this location or in the PATH. .. _pypi: https://pypi.python.org/pypi Additional information: ----------------------- In order to submit ISRCs to musicbrainz.org you need to have a user acount. You can create an account at http://musicbrainz.org/register free of charge. The core of the MusicBrainz dataset including the ISRC contributions is placed into the Public Domain. For a documentation of the available backends please refer to the manual or the `web page`_. You might find additional information about this script at the `MusicBrainz forums`_. .. _web page: http://jonnyjd.github.io/musicbrainz-isrcsubmit/backends .. _MusicBrainz forums: http://forums.musicbrainz.org/viewtopic.php?id=3444 Bugs: ----- Please report bugs on GitHub_. .. _GitHub: https://github.com/JonnyJD/musicbrainz-isrcsubmit License: -------- GNU General Public License Version 3 or later isrcsubmit-2.1.0/.travis.yml0000644000000000000000000000043213434120134014477 0ustar rootrootlanguage: python python: - "2.6" - "2.7" - "3.2" - "3.3" - "3.4" - "3.5" - "pypy" before_install: - sudo apt-get update -qq - sudo apt-get install -qq libdiscid0 cdrdao install: pip install -q discid musicbrainzngs script: python setup.py test branches: except: - v1 isrcsubmit-2.1.0/test_isrcsubmit.py0000755000000000000000000002743613434120134016203 0ustar rootroot#!/usr/bin/env python # Copyright (C) 2014 Johannes Dewender # This test is free. You can redistribute and/or modify it at will. import os import re import sys import math import json import pickle import unittest from io import TextIOWrapper, BytesIO from subprocess import Popen import musicbrainzngs import isrcsubmit try: import discid from discid import DiscError except ImportError: from libdiscid.compat import discid from libdiscid.compat.discid import DiscError SCRIPT_NAME = "isrcsubmit.py" TEST_DATA = "test_data/" SAVE_RUN = False class TestInternal(unittest.TestCase): def setUp(self): # suppress output with open(os.devnull, 'w') as devnull: self._old_stdout = os.dup(sys.stdout.fileno()) os.dup2(devnull.fileno(), 1) def test_encoding(self): self.assertTrue(type(isrcsubmit.encode("test")) is type(b"test")) self.assertEqual(isrcsubmit.encode("test"), b"test") self.assertTrue(type(isrcsubmit.decode(b"test")) is type(b"test".decode())) self.assertEqual(isrcsubmit.decode(b"test"), "test") string = "test" self.assertEqual(isrcsubmit.decode(isrcsubmit.encode(string)), string) bytestring = b"test" self.assertEqual(isrcsubmit.encode(isrcsubmit.decode(bytestring)), bytestring) def test_gather_options(self): # make sure most important options always work options = isrcsubmit.gather_options([SCRIPT_NAME]) self.assertFalse(options.debug) self.assertTrue(options.backend) self.assertEqual(options.server, "musicbrainz.org") self.assertFalse(options.force_submit) self.assertTrue(options.release_id is None) user = "JonnyJD" device = "/some/other/device" options = isrcsubmit.gather_options([SCRIPT_NAME, user, device]) self.assertEqual(options.user, user) self.assertEqual(options.device, device) options = isrcsubmit.gather_options([SCRIPT_NAME, "-d", device, "-u", user]) self.assertEqual(options.user, user) self.assertEqual(options.device, device) options = isrcsubmit.gather_options([SCRIPT_NAME, "--user", user, "--device", device]) self.assertEqual(options.user, user) self.assertEqual(options.device, device) def tearDown(self): # restore output os.dup2(self._old_stdout, 1) # mock musicbrainzngs queries # - - - - - - - - - - - - - - # save mbngs functions _mbngs_get_releases_by_discid = musicbrainzngs.get_releases_by_discid _mbngs_get_release_by_id = musicbrainzngs.get_release_by_id _mbngs_submit_isrcs = musicbrainzngs.submit_isrcs def _get_releases_by_discid(disc_id, includes=[]): file_name = "%s%s_releases.json" % (TEST_DATA, disc_id) if SAVE_RUN: releases = _mbngs_get_releases_by_discid(disc_id, includes) with open(file_name, "w") as releases_file: json.dump(releases, releases_file, indent=2) return releases else: with open(file_name, "r") as releases_file: return json.load(releases_file) musicbrainzngs.get_releases_by_discid = _get_releases_by_discid def _get_release_by_id(release_id, includes=[]): file_name = "%s%s.json" % (TEST_DATA, release_id) if SAVE_RUN: release = _mbngs_get_release_by_id(release_id, includes) with open(file_name, "w") as release_file: json.dump(release, releases_file, indent=2) return releases else: with open(file_name, "r") as release_file: return json.load(release_file) musicbrainzngs.get_release_by_id = _get_release_by_id def _submit_isrcs(tracks2isrcs): global data_sent data_sent.tracks2isrcs = tracks2isrcs return True musicbrainzngs.submit_isrcs = _submit_isrcs # mock discid reading # - - - - - - - - - - class MockedTrack(object): def __init__(self, track): self.number = track.number self.isrc = track.isrc class MockedDisc(object): def __init__(self, disc): self.id = disc.id self.submission_url = disc.submission_url self.mcn = disc.mcn tracks = [] for track in disc.tracks: tracks.append(MockedTrack(track)) self.tracks = tracks # save discid functions _discid_read = discid.read def _read(device=None, features=[]): if SAVE_RUN: # always read all features to save full libdiscid information disc = _discid_read(device, ["read", "mcn", "isrc"]) file_name = "%s%s.pickle" % (TEST_DATA, disc.id) with open(file_name, "wb") as disc_file: pickle.dump(MockedDisc(disc), disc_file, 2) return disc else: file_name = "%s%s.pickle" % (TEST_DATA, mocked_disc_id) with open(file_name, "rb") as disc_file: return pickle.load(disc_file) isrcsubmit.discid.read = _read # mock cdrdao reading # - - - - - - - - - - class _Popen(Popen): def __new__(cls, args, stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr): if args[0] == "cdrdao": file_name = "%s%s_cdrdao.toc" % (TEST_DATA, mocked_disc_id) if SAVE_RUN: # save file to a different place args[-1] = file_name # delete file so cdrdao doesn't complain it's already there os.remove(file_name) else: # don't actually call cdrdao args = ["echo", "mocked cdrdao"] return Popen(args, stdin=stdin, stdout=stdout, stderr=stderr) isrcsubmit.Popen = _Popen def _open(name, mode): if re.search(r"cdrdao-.*\.toc", name): name = "%s%s_cdrdao.toc" % (TEST_DATA, mocked_disc_id) return open(name, mode) isrcsubmit.open = _open # general mocking # - - - - - - - - _isrcsubmit_has_program = isrcsubmit.has_program _isrcsubmit_get_prog_version = isrcsubmit.get_prog_version def _has_program(program, strict=False): if program == "libdiscid": # we mock it anyways # libdiscid >= 0.2.2 still needed to load discid return True elif program == "cdrdao": # also mocked return True else: return _isrcsubmit_has_program(program, strict) def _get_prog_version(prog): if prog == "libdiscid": version = "mocked libdiscid" elif prog == "cdrdao": version = "mocked cdrdao" else: return _isrcsubmit_get_prog_version(prog) return isrcsubmit.decode(version) isrcsubmit.has_program = _has_program isrcsubmit.get_prog_version = _get_prog_version # mock answers given by user # - - - - - - - - - - - - - def append_to_stdin(msg): position = sys.stdin.tell() sys.stdin.write(msg) sys.stdin.seek(position) def answer_on_stdin(answer, default=True): if answer == default: append_to_stdin("\n") elif answer: append_to_stdin("y\n") else: append_to_stdin("n\n") def handle_question(string): global last_question question = False default = False # these questions can be handled right now if "username" in string: append_to_stdin("invalid_username\n") # doesn't matter, mocked elif "password" in string: append_to_stdin("invalid_password\n") # doesn't matter, mocked elif "Which one do you want?" in string: try: append_to_stdin("%d\n" % answers["choice"]) except KeyError: append_to_stdin("1\n") elif "press " in string: append_to_stdin("\n") # these questions use multiple writes if "submit" in string and "disc" in string: last_question = "submit_disc" elif "help clean" in string: last_question = "clean" elif "ISRC in browser" in string: last_question = "open_isrc" # question and prompt can be on different writes if "[y/N]" in string: question = True; default = False if "[Y/n]" in string: question = True; default = True if question: try: answer = answers[last_question] except KeyError: answer = default answer_on_stdin(answer, default) class SmartStdin(TextIOWrapper): def write(self, string): if type(string) == bytes: string = string.decode() return super(type(self), self).write(string) class SmartStdout(TextIOWrapper): def write(self, string): handle_question(string) # using "except TypeError" and the buffer would be nice # but exceptions don't seem to work here in Python 2.6 # additionally TexIOWrapper doesn't have "buffer" in 2.6 if type(string) == bytes: string = string.decode() return super(type(self), self).write(string) # the actual tests of the overall script # - - - - - - - - - - - - - - - - - - - class TestScript(unittest.TestCase): def setUp(self): global answers, data_sent, mocked_disc_id global last_question # make sure globals are unset answers = data_sent = {} mocked_disc_id = last_question = None # gather output self._old_stdout = sys.stdout self._stdout = SmartStdout(BytesIO(), sys.stdout.encoding) sys.stdout = self._stdout self._old_stdin = sys.stdin self._stdin = SmartStdin(BytesIO(), sys.stdin.encoding) sys.stdin = self._stdin def _output(self): sys.stdout.seek(0) return sys.stdout.read() def assert_output(self, string): self.assertTrue(string in self._output().strip()) def _debug(self): return sys.stderr.write(self._output()) def test_version(self): try: isrcsubmit.main([SCRIPT_NAME, "--version"]) except SystemExit: pass finally: self.assertTrue(isrcsubmit.__version__ in self._output().strip()) def test_help(self): try: isrcsubmit.main([SCRIPT_NAME, "-h"]) except SystemExit: pass finally: self.assertTrue(self._output().strip()) def test_libdiscid(self): global mocked_disc_id mocked_disc_id = "TqvKjMu7dMliSfmVEBtrL7sBSno-" # we use defaults to questions -> no settings here try: isrcsubmit.main([SCRIPT_NAME, "--backend", "libdiscid"]) except SystemExit: pass finally: self.assertTrue(isrcsubmit.__version__ in self._output().strip()) self.assert_output("mocked libdiscid") self.assert_output("TqvKjMu7dMliSfmVEBtrL7sBSno-") self.assert_output("07090529-0fbf-4bd3-adc4-fe627343976d") self.assert_output("submit the disc?") self.assert_output("DEC680000220 is already attached to track 4") self.assert_output("No new ISRCs") def test_cdrdao(self): global mocked_disc_id mocked_disc_id = "hSI7B4G4AkB5.DEBcW.3KCn.D_E-" answers["choice"] = 1 try: isrcsubmit.main([SCRIPT_NAME, "--backend", "cdrdao", "--device", "/dev/cdrw"]) except SystemExit: pass finally: self.assertTrue(isrcsubmit.__version__ in self._output().strip()) self.assert_output("mocked cdrdao") self.assert_output("hSI7B4G4AkB5.DEBcW.3KCn.D_E-") self.assert_output("none of these") self.assert_output("174a5513-73d1-3c9d-a316-3c1c179e35f8") self.assert_output("GBBBN7902023 is already attached to track 7") self.assert_output("No new ISRCs") def tearDown(self): # restore output sys.stdout = self._old_stdout self._stdout.close() sys.stdin = self._old_stdin class TestDisc(unittest.TestCase): """Test reading the disc currently in the drive """ pass if __name__ == "__main__": unittest.main() # vim:set shiftwidth=4 smarttab expandtab: isrcsubmit-2.1.0/isrcsubmit.bat0000644000000000000000000000021312331733035015244 0ustar rootroot@echo off for /f "tokens=2 delims=:." %%x in ('chcp') do set cp=%%x chcp 65001>NUL & cmd /c "isrcsubmit.py %*" & chcp %cp%>NUL echo. pause isrcsubmit-2.1.0/README.txt0000777000000000000000000000000012331733035015556 2README.rstustar rootrootisrcsubmit-2.1.0/isrcsubmit.py0000755000000000000000000012112513434120134015132 0ustar rootroot#!/usr/bin/env python # Copyright (C) 2009-2015 Johannes Dewender # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . """This is a tool to submit ISRCs from a disc to MusicBrainz. Various backends are used to gather the ISRCs and python-musicbrainz2 to submit them. The project is hosted on https://github.com/JonnyJD/musicbrainz-isrcsubmit """ __version__ = "2.1.0" AGENT_NAME = "isrcsubmit.py" DEFAULT_SERVER = "musicbrainz.org" # starting with highest priority BACKENDS = ["mediatools", "media_info", "cdrdao", "libdiscid", "discisrc"] BROWSERS = ["xdg-open", "x-www-browser", "firefox", "chromium", "chrome", "opera"] # The webbrowser module is used when nothing is found in this list. # This especially happens on Windows and Mac OS X (browser mostly not in PATH) import os import re import sys import codecs import logging import getpass import tempfile import webbrowser from datetime import datetime from optparse import OptionParser from subprocess import Popen, PIPE, call try: import discid from discid import DiscError except ImportError: try: from libdiscid.compat import discid from libdiscid.compat.discid import DiscError except ImportError: # When both are not available, raise exception for python-discid import discid import musicbrainzngs from musicbrainzngs import AuthenticationError, ResponseError, WebServiceError try: import keyring except ImportError: keyring = None try: from configparser import ConfigParser except ImportError: from ConfigParser import ConfigParser if os.name == "nt": SHELLNAME = "isrcsubmit.bat" else: SHELLNAME = "isrcsubmit.sh" if os.path.isfile(SHELLNAME): SCRIPTNAME = SHELLNAME else: SCRIPTNAME = os.path.basename(sys.argv[0]) # make code run on Python 2 and 3 try: user_input = raw_input except NameError: user_input = input try: unicode_string = unicode except NameError: unicode_string = str # global variables options = None ws2 = None logger = logging.getLogger("isrcsubmit") def script_version(): return "isrcsubmit %s by JonnyJD for MusicBrainz" % __version__ def print_help(option=None, opt=None, value=None, parser=None): print("%s" % script_version()) print(\ """ This python script extracts ISRCs from audio cds and submits them to MusicBrainz (musicbrainz.org). You need to have a MusicBrainz account, specify the username and will be asked for your password every time you execute the script. Isrcsubmit will warn you if there are any problems and won't actually submit anything to MusicBrainz without giving a final choice. Isrcsubmit will warn you if any duplicate ISRCs are detected and help you fix priviously inserted duplicate ISRCs. The ISRC-track relationship we found on our disc is taken as our correct evaluation. """) parser.print_usage() print("""\ Please report bugs on https://github.com/JonnyJD/musicbrainz-isrcsubmit""") sys.exit(0) def print_usage(option=None, opt=None, value=None, parser=None): print("%s\n" % script_version()) parser.print_help() sys.exit(0) class Isrc(object): def __init__(self, isrc, track=None): self._id = isrc self._tracks = [] if track is not None: self._tracks.append(track) def add_track(self, track): if track not in self._tracks: self._tracks.append(track) def get_tracks(self): return self._tracks def get_track_numbers(self): numbers = [] for track in self._tracks: numbers.append(track["position"]) return ", ".join(numbers) class Track(dict): """track with equality checking This makes it easy to check if this track is already in a collection. Only the element already in the collection needs to be hashable. """ def __init__(self, track, number=None): self._track = track self._recording = track["recording"] self._number = number # check that we found the track with the correct number assert(int(self._track["position"]) == self._number) def __eq__(self, other): return self["id"] == other["id"] def __getitem__(self, item): try: return self._recording[item] except KeyError: return self._track[item] def get(self, item, default=None): try: return self._recording.get(item, default) except KeyError: return self._track.get(item, default) class OwnTrack(Track): """A track found on an analyzed (own) disc""" pass def get_config_home(): """Returns the base directory for isrcsubmit's configuration files.""" if os.name == "nt": default_location = os.environ.get("APPDATA") else: default_location = os.path.expanduser("~/.config") xdg_config_home = os.environ.get("XDG_CONFIG_HOME", default_location) return os.path.join(xdg_config_home, "isrcsubmit") def config_path(): """Returns isrsubmit's config file location.""" return os.path.join(get_config_home(), "config") def gather_options(argv): global options if sys.platform == "darwin": # That is the device drutil expects and stable # /dev/rdisk1 etc. change with multiple hard disks, dmgs mounted etc. # libdiscid < 0.6.0 can't handle drive numbers default_device = "1" else: default_device = discid.get_default_device() config = ConfigParser() config.read(config_path()) parser = OptionParser(version=script_version(), add_help_option=False) parser.set_usage( "{prog} [options] [user] [device]\n {prog} -h".format( prog=SCRIPTNAME)) parser.add_option("-h", action="callback", callback=print_usage, help="Short usage help") parser.add_option("--help", action="callback", callback=print_help, help="Complete help for the script") parser.add_option("-u", "--user", metavar="USERNAME", help="MusicBrainz username, if not given as argument.") # note that -d previously stand for debug parser.add_option("-d", "--device", metavar="DEVICE", help="CD device with a loaded audio cd, if not given as argument." + " The default is %s." % default_device) parser.add_option("--release-id", metavar="RELEASE_ID", help="Optional MusicBrainz ID of the release." + " This will be gathered if not given.") parser.add_option("-b", "--backend", choices=BACKENDS, metavar="PROGRAM", help="Force using a specific backend to extract ISRCs from the" + " disc. Possible backends are: %s." % ", ".join(BACKENDS) + " They are tried in this order otherwise.") parser.add_option("--browser", metavar="BROWSER", help="Program to open URLs. This will be automatically detected" " for most setups, if not chosen manually.") parser.add_option("--force-submit", action="store_true", default=False, help="Always open TOC/disc ID in browser.") parser.add_option("--server", metavar="SERVER", help="Server to send ISRCs to. Default: %s" % DEFAULT_SERVER) parser.add_option("--debug", action="store_true", default=False, help="Show debug messages." + " Currently shows some backend messages.") parser.add_option("--keyring", action="store_true", dest="keyring", help="Use keyring if available.") parser.add_option("--no-keyring", action="store_false", dest="keyring", help="Disable keyring.") (options, args) = parser.parse_args(argv[1:]) print("%s" % script_version()) # assign positional arguments to options if options.user is None and args: options.user = args[0] args = args[1:] if options.device is None and args: options.device = args[0] args = args[1:] if args: logger.warning("Superfluous arguments: %s", ", ".join(args)) # If an option is set in the config and not overriden on the command line, # assign them to options. if options.keyring is None and config.has_option("general", "keyring"): options.keyring = config.getboolean("general", "keyring") if options.backend is None and config.has_option("general", "backend"): options.backend = config.get("general", "backend") if options.backend not in BACKENDS: print_error("Backend given in config file is not a valid choice.", "Choose a backend from %s" % ", ".join(BACKENDS)) sys.exit(-1) if options.browser is None and config.has_option("general", "browser"): options.browser = config.get("general", "browser") if options.device is None and config.has_option("general", "device"): options.device = config.get("general", "device") if options.server is None and config.has_option("musicbrainz", "server"): options.server = config.get("musicbrainz", "server") if options.user is None and config.has_option("musicbrainz", "user"): options.user = config.get("musicbrainz", "user") # assign remaining options automatically if options.device is None: options.device = default_device options.sane_which = test_which() if options.browser is None: options.browser = find_browser() if options.server is None: options.server = DEFAULT_SERVER if options.keyring is None: options.keyring = True if options.backend and not has_program(options.backend, strict=True): print_error("Chosen backend not found. No ISRC extraction possible!", "Make sure that %s is installed." % options.backend) sys.exit(-1) elif not options.backend: options.backend = find_backend() return options def test_which(): """There are some old/buggy "which" versions on Windows. We want to know if the user has a "sane" which we can trust. Unxutils has a broken 2.4 version. Which >= 2.16 should be fine. """ with open(os.devnull, "w") as devnull: try: # "which" should at least find itself return_code = call(["which", "which"], stdout=devnull, stderr=devnull) except OSError: return False # no which at all else: if (return_code == 0): return True else: print('warning: your version of the tool "which"' ' is buggy/outdated') if os.name == "nt": print(' unxutils is old/broken, GnuWin32 is good.') return False def get_prog_version(prog): if prog == "libdiscid": version = discid.LIBDISCID_VERSION_STRING elif prog == "cdrdao": outdata = Popen([prog], stderr=PIPE).communicate()[1] version = b" ".join(outdata.splitlines()[0].split()[::2][0:2]) else: version = prog return decode(version) def has_program(program, strict=False): """When the backend is only a symlink to another backend, we will return False, unless we strictly want to use this backend. """ if program == "libdiscid": return "isrc" in discid.FEATURES with open(os.devnull, "w") as devnull: if options.sane_which: p_which = Popen(["which", program], stdout=PIPE, stderr=devnull) program_path = p_which.communicate()[0].strip() if p_which.returncode == 0: # check if it is only a symlink to another backend real_program = os.path.basename(os.path.realpath(program_path)) if program != real_program and ( real_program in BACKENDS or real_program in BROWSERS): if strict: print("WARNING: %s is a symlink to %s" % (program, real_program)) return True else: return False # use real program (target) instead return True else: return False elif program in BACKENDS: try: # we just try to start these non-interactive console apps call([program], stdout=devnull, stderr=devnull) except OSError: return False else: return True else: return False def find_backend(): """search for an available backend """ backend = None for prog in BACKENDS: if has_program(prog): backend = prog break if backend is None: print_error("Cannot find a backend to extract the ISRCS!", "Isrcsubmit can work with one of the following:", " " + ", ".join(BACKENDS)) sys.exit(-1) return backend def find_browser(): """search for an available browser """ for browser in BROWSERS: if has_program(browser): return browser # This will use the webbrowser module to find a default return None def open_browser(url, exit=False, submit=False): """open url in the selected browser, default if none """ if options.browser: if exit: try: if os.name == "nt": # silly but necessary for spaces in the path os.execlp(options.browser, '"' + options.browser + '"', url) else: # linux/unix works fine with spaces os.execlp(options.browser, options.browser, url) except OSError as err: error = ["Couldn't open the url in %s: %s" % (options.browser, str(err))] if submit: error.append("Please submit via: %s" % url) print_error(*error) sys.exit(1) else: try: if options.debug: Popen([options.browser, url]) else: with open(os.devnull, "w") as devnull: Popen([options.browser, url], stdout=devnull) except OSError as err: error = ["Couldn't open the url in %s: %s" % (options.browser, str(err))] if submit: error.append("Please submit via: %s" % url) print_error(*error) else: try: if options.debug: webbrowser.open(url) else: # this supresses stdout webbrowser.get().open(url) except webbrowser.Error as err: error = ["Couldn't open the url: %s" % str(err)] if submit: error.append("Please submit via: %s" % url) print_error(*error) if exit: sys.exit(1) def get_real_mac_device(option_device): """drutil takes numbers as drives. We ask drutil what device name corresponds to that drive in order so we can use it as a drive for libdiscid """ proc = Popen(["drutil", "status", "-drive", option_device], stdout=PIPE) try: given = proc.communicate()[0].splitlines()[3].split("Name:")[1].strip() except IndexError: print_error("could not find real device", "maybe there is no disc in the drive?") sys.exit(-1) # libdiscid needs the "raw" version return given.replace("/disk", "/rdisk") def cp65001(name): """This might be buggy, but better than just a LookupError """ if name.lower() == "cp65001": return codecs.lookup("utf-8") codecs.register(cp65001) def printf(format_string, *args): """Print with the % and without additional spaces or newlines """ if not args: # make it convenient to use without args -> different to C args = (format_string, ) format_string = "%s" sys.stdout.write(format_string % args) def decode(msg): """This will replace unsuitable characters and use stdin encoding """ if isinstance(msg, bytes): return msg.decode(sys.stdin.encoding, "replace") else: return unicode_string(msg) def encode(msg): """This will replace unsuitable characters and use stdout encoding """ if isinstance(msg, unicode_string): return msg.encode(sys.stdout.encoding, "replace") else: return bytes(msg) def print_encoded(*args): """This will replace unsuitable characters and doesn't append a newline """ stringArgs = () for arg in args: stringArgs += encode(arg), msg = b" ".join(stringArgs) if not msg.endswith(b"\n"): msg += b" " if os.name == "nt": os.write(sys.stdout.fileno(), msg) else: try: sys.stdout.buffer.write(msg) except AttributeError: sys.stdout.write(msg) def print_release(release, position=None): """Print information about a release. If the position is given, this should be an entry in a list of releases (choice) """ country = (release.get("country") or "").ljust(2) date = (release.get("date") or "").ljust(10) barcode = (release.get("barcode") or "").rjust(13) label_list = release["label-info-list"] catnumber_list = [] for label in label_list: cat_number = label.get("catalog-number") if cat_number: catnumber_list.append(cat_number) catnumbers = ", ".join(catnumber_list) if position is None: print_encoded("Artist:\t\t%s\n" % release["artist-credit-phrase"]) print_encoded("Release:\t%s" % release["title"]) else: print_encoded("%#2d:" % position) print_encoded("%s - %s" % ( release["artist-credit-phrase"], release["title"])) if release.get("status"): print("(%s)" % release["status"]) else: print("") if position is None: print_encoded("Release Event:\t%s\t%s\n" % (date, country)) print_encoded("Barcode:\t%s\n" % release.get("barcode") or "") print_encoded("Catalog No.:\t%s\n" % catnumbers) print_encoded("MusicBrainz ID:\t%s\n" % release["id"]) else: print_encoded("\t%s\t%s\t%s\t%s\n" % ( country, date, barcode, catnumbers)) def print_error(*args): string_args = tuple([str(arg) for arg in args]) logger.error("\n ".join(string_args)) def backend_error(err): print_error("Couldn't gather ISRCs with %s: %i - %s" % (options.backend, err.errno, err.strerror)) sys.exit(1) def ask_for_submission(url, print_url=False): if options.force_submit: submit_requested = True else: printf("Would you like to open the browser to submit the disc?") submit_requested = user_input(" [y/N] ").lower() == "y" if submit_requested: open_browser(url, exit=True, submit=True) elif print_url: print("Please submit the Disc ID with this url:") print(url) class WebService2(): """A web service wrapper that asks for a password when first needed. This uses musicbrainzngs as a wrapper itself. """ def __init__(self, username=None): self.auth = False self.keyring_failed = False self.username = username musicbrainzngs.set_hostname(options.server) musicbrainzngs.set_useragent(AGENT_NAME, __version__, "http://github.com/JonnyJD/musicbrainz-isrcsubmit") def authenticate(self): """Sets the password if not set already """ if not self.auth: print("") if self.username is None: printf("Please input your MusicBrainz username (empty=abort): ") self.username = user_input() if len(self.username) == 0: print("(aborted)") sys.exit(1) password = None if keyring is not None and options.keyring and not self.keyring_failed: password = keyring.get_password(options.server, self.username) if password is None: password = getpass.getpass( "Please input your MusicBrainz password: ") print("") musicbrainzngs.auth(self.username, password) self.auth = True self.keyring_failed = False if keyring is not None and options.keyring: keyring.set_password(options.server, self.username, password) def get_releases_by_discid(self, disc_id, includes=[]): try: response = musicbrainzngs.get_releases_by_discid(disc_id, includes=includes) except ResponseError as err: if err.cause.code == 404: return [] else: print_error("Couldn't fetch release: %s" % err) sys.exit(1) except WebServiceError as err: print_error("Couldn't fetch release: %s" % err) sys.exit(1) else: if response.get("disc"): return response["disc"]["release-list"] else: return [] def get_release_by_id(self, release_id, includes=[]): try: return musicbrainzngs.get_release_by_id(release_id, includes=includes) except WebServiceError as err: print_error("Couldn't fetch release: %s" % err) sys.exit(1) def submit_isrcs(self, tracks2isrcs): logger.info("tracks2isrcs: %s", tracks2isrcs) while True: try: self.authenticate() musicbrainzngs.submit_isrcs(tracks2isrcs) except AuthenticationError as err: print_error("Invalid credentials: %s" % err) self.auth = False self.keyring_failed = True self.username = None continue except WebServiceError as err: print_error("Couldn't send ISRCs: %s" % err) sys.exit(1) else: print("Successfully submitted %d ISRCS." % len(tracks2isrcs)) break class Disc(object): def read_disc(self): try: # calculate disc ID from disc if self._backend == "libdiscid" and not options.force_submit: disc = discid.read(self._device, features=["mcn", "isrc"]) else: disc = discid.read(self._device) self._disc = disc except DiscError as err: print_error("DiscID calculation failed: %s" % err) sys.exit(1) def __init__(self, device, backend, verified=False): if sys.platform == "darwin": self._device = get_real_mac_device(device) logger.info("CD drive #%s corresponds to %s internally", device, self._device) else: self._device = device self._disc = None self._release = None self._backend = backend self._verified = verified self._asked_for_submission = False self._common_includes=["artists", "labels", "recordings", "isrcs", "artist-credits"] # the last one only for cleanup self.read_disc() # sets self._disc @property def id(self): return self._disc.id @property def mcn(self): mcn = self._disc.mcn if mcn and int(mcn) > 0: return mcn else: return None @property def tracks(self): return self._disc.tracks @property def submission_url(self): url = self._disc.submission_url # mm.mb.o points to mb.o, if present in the url url = url.replace("//mm.", "//") return url.replace("musicbrainz.org", options.server) @property def asked_for_submission(self): return self._asked_for_submission @property def release(self): """The corresponding MusicBrainz release This will ask the user to choose if the discID is ambiguous. """ if self._release is None: self.get_release(self._verified) # can still be None return self._release def fetch_release(self, release_id): """Check if a pre-selected release has the correct TOC attached """ includes = self._common_includes + ["discids"] result = ws2.get_release_by_id(release_id, includes=includes) release = result["release"] for medium in release["medium-list"]: for disc in medium["disc-list"]: if disc["id"] == self.id: return release # disc ID is not attached to the release return None def select_release(self): """Find the corresponding MusicBrainz release by disc ID This will ask the user to choose if the discID is ambiguous. """ includes = self._common_includes results = ws2.get_releases_by_discid(self.id, includes=includes) num_results = len(results) if options.force_submit: print("\nSubmission forced.") selected_release = None elif num_results == 0: print("\nThis Disc ID is not in the database.") selected_release = None elif num_results > 1: print("\nThis Disc ID is ambiguous:") print(" 0: none of these\n") self._asked_for_submission = True for i in range(num_results): release = results[i] # printed list is 1..n, not 0..n-1 ! print_release(release, i + 1) try: num = user_input("Which one do you want? [0-%d] " % num_results) if int(num) not in range(0, num_results + 1): raise IndexError if int(num) == 0: ask_for_submission(self.submission_url, print_url=True) sys.exit(1) else: selected_release = results[int(num) - 1] except (ValueError, IndexError): print_error("Invalid Choice") sys.exit(1) except KeyboardInterrupt: print("\nexiting..") sys.exit(1) else: selected_release = results[0] return selected_release def get_release(self, verified=False): """This will get a release the ISRCs will be added to. """ # check if a release was pre-selected if options.release_id: chosen_release = self.fetch_release(options.release_id) else: chosen_release = self.select_release() if chosen_release and chosen_release["id"] is None: # a "release" that is only a stub has no musicbrainz id print("\nThere is only a stub in the database:") print_encoded("%s - %s\n\n" % (chosen_release["artist-credit-phrase"], chosen_release["title"])) chosen_release = None # don't use stub verified = True # the id is verified by the stub if chosen_release is None or options.force_submit: if verified: url = self.submission_url ask_for_submission(url, print_url=True) sys.exit(1) else: print("recalculating to re-check..") self.read_disc() self.get_release(verified=True) self._release = chosen_release return chosen_release def get_disc(device, backend, verified=False): """This creates a Disc object, which also calculates the id of the disc """ disc = Disc(device, backend, verified) print('\nDiscID:\t\t%s' % disc.id) if disc.mcn: print('MCN/EAN:\t%s' % disc.mcn) print('Tracks on disc:\t%d' % len(disc.tracks)) return disc def gather_isrcs(disc, backend, device): """read the disc in the device with the backend and extract the ISRCs """ backend_output = [] devnull = open(os.devnull, "w") if backend == "libdiscid": pattern = r'[A-Z]{2}[A-Z0-9]{3}\d{2}\d{5}' for track in disc.tracks: if track.isrc: match = re.match(pattern, track.isrc) if match is None: print("no valid ISRC: %s" % track.isrc) else: backend_output.append((track.number, track.isrc)) # redundant to "libdiscid", but this might be handy for prerelease testing elif backend == "discisrc": pattern = \ r'Track\s+([0-9]+)\s+:\s+([A-Z]{2})-?([A-Z0-9]{3})-?(\d{2})-?(\d{5})' try: if sys.platform == "darwin": device = get_real_mac_device(device) proc = Popen([backend, device], stdout=PIPE) isrcout = proc.stdout except OSError as err: backend_error(err) for line in isrcout: line = decode(line) # explicitely decode from pipe ext_logger = logging.getLogger("discisrc") ext_logger.debug(line.rstrip()) # rstrip newline if line.startswith("Track") and len(line) > 12: match = re.search(pattern, line) if match is None: print("can't find ISRC in: %s" % line) continue track_number = int(match.group(1)) isrc = ("%s%s%s%s" % (match.group(2), match.group(3), match.group(4), match.group(5))) backend_output.append((track_number, isrc)) # media_info is a preview version of mediatools, both are for Windows # this does some kind of raw read elif backend in ["mediatools", "media_info"]: pattern = \ r'ISRC\s+([0-9]+)\s+([A-Z]{2})-?([A-Z0-9]{3})-?(\d{2})-?(\d{5})' if backend == "mediatools": args = [backend, "drive", device, "isrc"] else: args = [backend, device] try: proc = Popen(args, stdout=PIPE) isrcout = proc.stdout except OSError as err: backend_error(err) for line in isrcout: line = decode(line) # explicitely decode from pipe ext_logger = logging.getLogger("mediatools") ext_logger.debug(line.rstrip()) # rstrip newline if line.startswith("ISRC") and not line.startswith("ISRCS"): match = re.search(pattern, line) if match is None: print("can't find ISRC in: %s" % line) continue track_number = int(match.group(1)) isrc = ("%s%s%s%s" % (match.group(2), match.group(3), match.group(4), match.group(5))) backend_output.append((track_number, isrc)) # cdrdao will create a temp file and we delete it afterwards # cdrdao is also available for windows # this will also fetch ISRCs from CD-TEXT elif backend == "cdrdao": # no byte pattern, file is opened as unicode pattern = r'[A-Z]{2}[A-Z0-9]{3}\d{2}\d{5}' tmpname = "cdrdao-%s.toc" % datetime.now() tmpname = tmpname.replace(":", "-") # : is invalid on windows tmpfile = os.path.join(tempfile.gettempdir(), tmpname) logger.info("Saving toc in %s..", tmpfile) if os.name == "nt": if device != discid.get_default_device(): logger.warning("cdrdao uses the default device") args = [backend, "read-toc", "-v", "0", tmpfile] else: args = [backend, "read-toc", "--device", device, "-v", "0", tmpfile] try: if options.debug: proc = Popen(args, stdout=devnull) else: proc = Popen(args, stdout=devnull, stderr=devnull) if proc.wait() != 0: print_error("%s returned with %i" % (backend, proc.returncode)) sys.exit(1) except OSError as err: backend_error(err) else: # that file seems to be opened in Unicode mode in Python 3 with open(tmpfile, "r") as toc: track_number = None for line in toc: ext_logger = logging.getLogger("cdrdao") ext_logger.debug(line.rstrip()) # rstrip newline words = line.split() if words: if words[0] == "//": track_number = int(words[2]) elif words[0] == "ISRC" and track_number is not None: isrc = "".join(words[1:]).strip('"- ') match = re.match(pattern, isrc) if match is None: print("no valid ISRC: %s" % isrc) else: backend_output.append((track_number, isrc)) # safeguard against missing trackNumber lines # or duplicated ISRC tags (like in CD-Text) track_number = None finally: try: os.unlink(tmpfile) except OSError: pass devnull.close() return backend_output def check_isrcs_local(backend_output, mb_tracks): """check backend_output for (local) duplicates and inconsistencies """ isrcs = dict() # isrcs found on disc tracks2isrcs = dict() # isrcs to be submitted errors = 0 for (track_number, isrc) in backend_output: if isrc not in isrcs: isrcs[isrc] = Isrc(isrc) # check if we found this ISRC for multiple tracks with_isrc = [item for item in backend_output if item[1] == isrc] if len(with_isrc) > 1: track_list = [str(item[0]) for item in with_isrc] print_error("%s gave the same ISRC for multiple tracks!" % options.backend, "ISRC: %s\ttracks: %s" % (isrc, ", ".join(track_list))) errors += 1 try: track = mb_tracks[track_number - 1] except IndexError: print_error("ISRC %s found for unknown track %d" % (isrc, track_number)) errors += 1 else: own_track = OwnTrack(track, track_number) isrcs[isrc].add_track(own_track) # check if the ISRC was already added to the track if isrc not in own_track.get("isrc-list", []): # single isrcs work in python-musicbrainzngs 0.4, but not 0.3 # lists of isrcs don't work in 0.4 though, see pymbngs #113 tracks2isrcs[own_track["id"]] = isrc print("found new ISRC for track %d: %s" % (track_number, isrc)) else: print("%s is already attached to track %d" % (isrc, track_number)) return isrcs, tracks2isrcs, errors def check_global_duplicates(release, mb_tracks, isrcs): """Help cleaning up global duplicates with the information we got from our disc. """ duplicates = 0 # add already attached ISRCs for i in range(0, len(mb_tracks)): track = mb_tracks[i] track_number = i + 1 track = Track(track, track_number) for isrc in track.get("isrc-list", []): # only check ISRCS we also found on our disc if isrc in isrcs: isrcs[isrc].add_track(track) # check if we have multiple tracks for one ISRC for isrc in isrcs: if len(isrcs[isrc].get_tracks()) > 1: duplicates += 1 if duplicates > 0: printf("\nThere were %d ISRCs ", duplicates) print("that are attached to multiple tracks on this release.") choice = user_input("Do you want to help clean those up? [y/N] ") if choice.lower() == "y": cleanup_isrcs(release, isrcs) def cleanup_isrcs(release, isrcs): """Show information about duplicate ISRCs Our attached ISRCs should be correct -> helps to delete from other tracks """ for isrc in isrcs: tracks = isrcs[isrc].get_tracks() if len(tracks) > 1: print("\nISRC %s attached to:" % isrc) for track in tracks: printf("\t") artist = track.get("artist-credit-phrase") if artist and artist != release["artist-credit-phrase"]: string = "%s - %s" % (artist, track["title"]) else: string = "%s" % track["title"] print_encoded(string) # tab alignment if len(string) >= 32: printf("\n%s", " " * 40) else: if len(string) < 7: printf("\t") if len(string) < 15: printf("\t") if len(string) < 23: printf("\t") if len(string) < 31: printf("\t") printf("\t track %s", track["position"]) if isinstance(track, OwnTrack): print(" [OUR EVALUATION]") else: print("") url = "http://%s/isrc/%s" % (options.server, isrc) if user_input("Open ISRC in the browser? [Y/n] ").lower() != "n": open_browser(url) user_input("(press when done with this ISRC) ") def main(argv): global options global ws2 # preset logger stream_handler = logging.StreamHandler() stream_handler.setFormatter(logging.Formatter("%(levelname)s: %(message)s")) logging.getLogger().addHandler(stream_handler) # add to root handler # global variables options = gather_options(argv) ws2 = WebService2(options.user) if options.debug: logging.getLogger().setLevel(logging.DEBUG) stream_handler.setLevel(logging.INFO) # adding log file logfile = "isrcsubmit.log" file_handler = logging.FileHandler(logfile, mode='w', encoding="utf8", delay=True) formatter = logging.Formatter("%(levelname)s:%(name)s: %(message)s") file_handler.setFormatter(formatter) file_handler.setLevel(logging.DEBUG) logger.info("Writing debug log to %s", logfile) logging.getLogger().addHandler(file_handler) # add context to log file (DEBUG only added there) logger.debug(script_version()) logger.info("using discid version %s", discid.__version__) print("using %s" % get_prog_version(options.backend)) disc = get_disc(options.device, options.backend) disc.get_release() print("") print_release(disc.release) if not disc.asked_for_submission: print("") print("Is this information different for your release?") ask_for_submission(disc.submission_url) media = [] for medium in disc.release["medium-list"]: for disc_entry in medium["disc-list"]: if disc_entry["id"] == disc.id: media.append(medium) break if len(media) > 1: raise DiscError("number of discs with id: %d" % len(media)) mb_tracks = media[0]["track-list"] print("") # (track, isrc) backend_output = gather_isrcs(disc, options.backend, options.device) # list, dict isrcs, tracks2isrcs, errors = check_isrcs_local(backend_output, mb_tracks) if isrcs: print("") # try to submit the ISRCs update_intention = True if not tracks2isrcs: print("No new ISRCs could be found.") else: if errors > 0: print_error("%d problems detected" % errors) if user_input("Do you want to submit? [y/N] ").lower() == "y": ws2.submit_isrcs(tracks2isrcs) else: update_intention = False print("Nothing was submitted to the server.") # check for overall duplicate ISRCs, including server provided if update_intention: # the ISRCs are deemed correct, so we can use them to check others check_global_duplicates(disc.release, mb_tracks, isrcs) if __name__ == "__main__": main(sys.argv) # vim:set shiftwidth=4 smarttab expandtab: isrcsubmit-2.1.0/Makefile0000644000000000000000000000076413434120134014036 0ustar rootroot#version := 2.1.0-dev version := 2.1.0 build: ./setup.py build check: ./setup.py test install: ./setup.py install upload: ./setup.py sdist twine3 upload -s dist/isrcsubmit-$(version).tar.gz version: sed -i -e 's/\(Isrcsubmit\s\)[0-9.]\+[0-9a-z.-]*/\1$(version)/' README.rst sed -i -e 's/\(__version__\s=\s"\)[0-9.]\+[0-9a-z.-]*/\1$(version)/' \ isrcsubmit.py sed -i -e 's/\(version="\)[0-9.]\+[0-9a-z.-]*/\1$(version)/' \ setup.py clean: rm -f *.pyc .PHONY: build install version isrcsubmit-2.1.0/CHANGES.markdown0000644000000000000000000000767013434120134015215 0ustar rootroot### Changes in 2.1.0 (2019-02-22) * [#120] remove --fast-toc from cdrdao options (Freso) * [#113] show cdrdao stderr in debug mode * [#121] allow installing dependencies with pip * [#111] update keyring link (GuilhermeHideki) * [#117] fix escape sequence deprecation for Python 3.6 (scop) * [#105] CI test with Python 3.5 (scop) * [#107] improve logging code (scop) ### Changes in 2.0.1 (2015-06-06) * [#94] also install isrcsubmit-config.5 * [#93] fix name 'FileNotFoundError' is not defined * [#96] fix display of "missing backend" error * [#98] be case insensitive for Y/N prompts ### Changes in 2.0.0 (2014-05-05) * [#59] use libdiscid as isrc backend * [#6] use the NGS (WS/2) web service * [#54] Python 3 support * [#77] opening a browser from command line on Windows and Mac OS X * [#83] use keyring to store/retrieve password (if available) * [#84] configuration file * [#86] use new libdiscid 0.6.0 device detection (if available) * [#72] added manpage isrcsubmit.1 * [#65] added --release-id parameter to skip release selection * [#64] added --server parameter * [#60] added --force-submit parameter to always submit the TOC as new * [#78] Ask user to re-enter user/password on authentication errors * [#87] expose musicbrainzngs logging with --debug * [#74] 400 bad request with mediatools or discisrcs on Python 3 ### Changes in 1.0.0 (2013-03-12) * [#35] add discisrc backend (Mac/Win/Linux) * [#32] Index release choice starting with 1, rather than 0 * updated libdiscid to 0.4.1 for packages * [#39] fix disc id verification (rescan when id not found) * lots of refactoring to prepare for isrcsubmit2 ### Changes in 0.5.2 (2013-01-26) * [#43] fix: global name 'saneWhich' is not defined ### Changes in 0.5.1 (2012-12-23) * [#40] support and use unicode codepage on Windows (cp65001) Use isrcsubmit.bat for unicode output or set `chcp cp65001` before using isrcsubmit.py. Don't forget to change back later, that codepage is buggy! You can display your current codepage with `chcp`. This only works with the `Lucida Console` font set in `cmd`. * add CHANGELOG * [#41] fix: exception on browser error * [#33] fix: device debug output on Windows * [#30] fix: detect broken "which" tool ## Changes in 0.5 (2012-12-02) * [#24] Windows support with the mediatools backend * [#22] add libcdio backend (Linux) * [#15] add --browser parameter * [#28] make username an optional argument ### Changes in 0.4.4 (2012-11-30) * [#27] fix: only submit non-empty ISRCs (cdrdao) * [#26] fix: exception on wrong input at release selection * [#25] fix: last CD is mistaken for DVD (=last disc) ### Changes in 0.4.3 (2012-11-17) * [#23] fix: recognize stubs and ignore them ### Changes in 0.4.2 (2012-10-15) * [#19] only ask for password when necessary * [#14] verify discId when the id is new to MusicBrainz * [#18],[#17] fix: also recognize ISRCs in CD-TEXT (cdrdao) ### Changes in 0.4.1 (2012-04-24) * [#16] fix: handle releases with bonus DVDs correctly ## Changes in 0.4 (2012-03-06) * [#12] Mac support with the drutil backend The drutil backen is *very* slow. It will take minutes! * [#11] add cdrdao backend * [#10] add cdda2wav backend again * [#13] optional --backend parameter to choose a backend manually ### Changes in 0.3.1 (2012-02-22) * [#9] show information about all tracks on the release in duplicate-find ## Changes in 0.3 (2012-02-20) * [#3] prevent duplicate ISRCs; cleanup duplicate ISRCs on the server * [#5] show release events on release choice * [#2] add user agent * [#4] warn if python-musicbrainz2 is too old * [#1] Multidisc-release support (with offsets; due to NGS changes) ### Changes in 0.2.4 (2010-09-15) * Added debug switch (--debug) ### Changes in 0.2.3 (2009-11-26) * fix: catch more exceptions ### Changes in 0.2.1 (2009-10-03) * list release type for release choice ## Changes in 0.2 (2009-10-03) * handle missing dashes in ISRCs * give a choice if multiple releases match the discID isrcsubmit-2.1.0/.gitignore0000644000000000000000000000010012331733035014353 0ustar rootroot_site musicbrainz2 *.exe *.dll *.dylib /*.cue /*.toc *.pyc .tox isrcsubmit-2.1.0/doc/0000755000000000000000000000000012534557425013155 5ustar rootrootisrcsubmit-2.1.0/doc/conf.py0000644000000000000000000001407012534557425014456 0ustar rootroot# -*- coding: utf-8 -*- # # isrcsubmit documentation build configuration file, created by # sphinx-quickstart on Wed Oct 2 02:40:50 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.insert(0, os.path.abspath('.')) sys.path.insert(0, os.path.abspath('..')) import isrcsubmit # -- General configuration ----------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. needs_sphinx = '1.0' # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] # The suffix of source filenames. source_suffix = '.rst' # The encoding of source files. #source_encoding = 'utf-8-sig' # The master toctree document. master_doc = 'isrcsubmit.1' # General information about the project. project = u'isrcsubmit' copyright = u'2009-2015, Johannes Dewender' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. version = ".".join(isrcsubmit.__version__.split("-")[0].split(".")[0:2]) # The full version, including alpha/beta/rc tags. release = isrcsubmit.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. #language = None # There are two options for replacing |today|: either, you set today to some # non-false value, then it is used: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. exclude_patterns = [] # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None # If true, '()' will be appended to :func: etc. cross-reference text. #add_function_parentheses = True # If true, the current module name will be prepended to all description # unit titles (such as .. function::). #add_module_names = True # If true, sectionauthor and moduleauthor directives will be shown in the # output. They are ignored by default. #show_authors = False # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] # -- Options for HTML output --------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. html_theme = 'default' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. #html_theme_options = {} # Add any paths that contain custom themes here, relative to this directory. #html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". #html_title = None # A shorter title for the navigation bar. Default is the same as html_title. #html_short_title = None # The name of an image file (relative to this directory) to place at the top # of the sidebar. #html_logo = None # The name of an image file (within the static path) to use as favicon of the # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # pixels large. #html_favicon = None # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. #html_last_updated_fmt = '%b %d, %Y' # If true, SmartyPants will be used to convert quotes and dashes to # typographically correct entities. #html_use_smartypants = True # Custom sidebar templates, maps document names to template names. #html_sidebars = {} # Additional templates that should be rendered to pages, maps page names to # template names. #html_additional_pages = {} # If false, no module index is generated. #html_domain_indices = True # If false, no index is generated. #html_use_index = True # If true, the index is split into individual pages for each letter. #html_split_index = False # If true, links to the reST sources are added to the pages. #html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. #html_show_sphinx = True # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. #html_show_copyright = True # If true, an OpenSearch description file will be output, and all pages will # contain a tag referring to it. The value of this option must be the # base URL from which the finished HTML is served. #html_use_opensearch = '' # This is the file name suffix for HTML files (e.g. ".xhtml"). #html_file_suffix = None # Output file base name for HTML help builder. htmlhelp_basename = 'isrcsubmitdoc' # -- Options for manual page output -------------------------------------------- # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ ('isrcsubmit.1', 'isrcsubmit', u'isrcsubmit Documentation', [], 1), ('isrcsubmit-config.5', 'isrcsubmit-config', u'isrcsubmit Documentation', [], 5) ] # If true, show URL addresses after external links. #man_show_urls = False isrcsubmit-2.1.0/doc/isrcsubmit-config.5.rst0000644000000000000000000000252612534557425017506 0ustar rootroot:orphan: isrcsubmit configuration ======================== Synopsis -------- **$XDG_CONFIG_HOME/isrcsubmit/config** Description ----------- The configuration file contains various options controlling the behavior of :program:`isrcsubmit`. All the options given here can be overridden by passing command line arguments to :program:`isrcsubmit`. If **$XDG_CONFIG_HOME** is not set, **%APPDATA%** is used on Windows and **~/.config** for all other systems. general ------- This refers to the ``[general]`` section of the configuration file. backend ^^^^^^^ Force using a specific backend to extract ISRCs from the disc. Possible backends are: mediatools, media_info, cdrdao, libdiscid, discisrc. browser ^^^^^^^ Program to open URLs. device ^^^^^^ CD device with a loaded audio CD. keyring ^^^^^^^ Use keyring if it is available. musicbrainz ----------- This refers to the ``[musicbrainz]`` section of the configuration file. server ^^^^^^ Server to send ISRCs to. user ^^^^ MusicBrainz username. Example ------- This snippet demonstrates the format of the configuration file. .. code-block:: text [general] backend = libdiscid keyring = False [musicbrainz] server = test.musicbrainz.org user = foo Author ------ This manual page was written by Sebastian Ramacher. :program:`isrcsubmit` was written by Johannes Dewender. isrcsubmit-2.1.0/doc/isrcsubmit.1.rst0000644000000000000000000000612712534557425016240 0ustar rootrootisrcsubmit manual page ====================== Synopsis -------- **isrcsubmit** [*options*] [*user*] [*device*] Description ----------- :program:`isrcsubmit` extracts International Standard Recording Codes (ISRC) from audio CDs and allows one to submit the data to MusicBrainz. ISRCs are used to uniquely identifiy sound and music video recordings. Options ------- --version Show program's version number and exit. -h Short usage help. --help Complete help for the program. --debug Show debug messages. -u , --user= MusicBrainz username, if not given as argument. -d , --device= CD device with a loaded audio CD, if not given as argument. The default is /dev/cdrom. --release-id= Optional MusicBrainz ID of the release. This will be gathered if not given. -b , --backend= Force using a specific backend to extract ISRCs from the disc. Possible backends are: mediatools, media_info, cdrdao, libdiscid, discisrc. They are tried in this order otherwise. See also :strong:`BACKENDS`. --browser= Program to open URLs. This will be automatically deteced for most setups, if not chosen manually. --force-submit Always open TOC/disc ID submission page in browser. --server= Server to send ISRCs to. If not given, musicbrainz.org is used. --keyring Use keyring if it is available. --no-keyring Do not use keyring. Backends -------- :program:`isrcsubmit` is able to use various backends to extract the ISRC. The **libdiscid** library is a requirement for isrcsubmit and can also be used as a backend on most systems. ISRCs are nearly always stored in the subchannel information and all tools read them from there. However, some drives tend to extract the same ISRC for adjacent tracks. Restarting the script might help and using a different drive might help. CD writers are reported to give better results than many CD reader drives. mediatools, media_info These tools use an experimental algorithm to gather ISRCs from the disc. This should give less duplicates on the same drive than with other tools. However, there might be other problems. (only available for Windows) cdrdao This tool can read ISRCs from CD-Text if no ISRCs are in the subchannel information. This is rarely the case. Most ISRCs are stored in the subchannel. (usually available on Linux, but there are also Windows builds (plank)) libdiscid Starting with **libdiscid** 0.3.0 this can be used not only for the disc ID, but also to extract ISRCs. (Windows, Mac; Linux support with 0.3.1) discisrc The **discisrc** binary is created from source builds of **libdiscid**. There is an experimental branch *isrc_raw* that might give better results regarding duplicate ISRCs on Linux. You can use this binary separately without installing an experimental libdiscid library on the system. See also -------- :manpage:`isrcsubmit-config(5)` Author ------ This manual was written by Sebastian Ramacher and Johannes Dewender. :program:`isrcsubmit` was written by Johannes Dewender. isrcsubmit-2.1.0/AUTHORS0000644000000000000000000000107613434120134013443 0ustar rootrootThis is just one isrcsubmit. There are other isrc submission tools by different people. The following people have contributed to this isrcsubmit.py: Johannes Dewender - creator and maintainer Sebastian Ramacher - keyring support - configuration file - man pages Frederik "Freso" S. Olesen - reducing duplicate ISRCs - multiple bugfixes jesus2099 - tested the windows support excessively Ville Skyttä - multiple test fixes for recent Python Ulrich Klauer Jim Patterson Guilherme Danno - minor fixes