Mopidy-InternetArchive-3.0.0/0000755000175000017500000000000013601165760015772 5ustar tkemtkem00000000000000Mopidy-InternetArchive-3.0.0/.circleci/0000755000175000017500000000000013601165760017625 5ustar tkemtkem00000000000000Mopidy-InternetArchive-3.0.0/.circleci/config.yml0000644000175000017500000000213213572474612021621 0ustar tkemtkem00000000000000version: 2.1 orbs: codecov: codecov/codecov@1.0.5 workflows: version: 2 test: jobs: - py38 - py37 - black - check-manifest - docs - flake8 jobs: py38: &test-template docker: - image: mopidy/ci-python:3.8 steps: - checkout - restore_cache: name: Restoring tox cache key: tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.cfg" }} - run: name: Run tests command: | tox -e $CIRCLE_JOB -- \ --junit-xml=test-results/pytest/results.xml \ --cov-report=xml - save_cache: name: Saving tox cache key: tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.cfg" }} paths: - ./.tox - ~/.cache/pip - codecov/upload: file: coverage.xml - store_test_results: path: test-results py37: <<: *test-template docker: - image: mopidy/ci-python:3.7 black: *test-template check-manifest: *test-template docs: *test-template flake8: *test-template Mopidy-InternetArchive-3.0.0/.readthedocs.yml0000644000175000017500000000031413572474612021064 0ustar tkemtkem00000000000000version: 2 python: version: 3.7 install: - method: pip path: . extra_requirements: - docs sphinx: builder: htmldir configuration: docs/conf.py formats: - pdf - epub Mopidy-InternetArchive-3.0.0/CHANGELOG.rst0000644000175000017500000000550413601165634020017 0ustar tkemtkem00000000000000v3.0.0 (2019-12-26) =================== - Depend on final release of Mopidy 3.0.0. v3.0.0a1 (2019-12-06) ===================== - Require Python >= 3.7. - Require Mopidy >= 3.0.0a5. - Require Pykka >= 2.0.1. - Update project setup. v2.0.3 (2017-06-16) =================== - Handle archive.org JSON API changes. v2.0.2 (2017-01-09) =================== - Fix file name handling. v2.0.1 (2017-01-09) =================== - Handle multiple item titles. v2.0.0 (2015-12-08) =================== - Support configurable sort criteria when browsing collections via "browse views". - Include collections in browse results. - Add support for ``LibraryProvider.get_images()``. - Drop support for deprecated ``Album.images``. - Drop special handling of bookmarks. - Cache root collections. - Update documentation. v1.3.0 (2015-09-11) =================== - Require Mopidy >= 1.1. - Use Mopidy proxy settings and HTTP User-Agent. - Fix track bitrates represented in Kbit/s. - Drop exact search support. - Only cache items. v1.2.1 (2015-03-25) =================== - Remove search query normalization. - Prepare for Mopidy v1.0 exact search API. v1.2.0 (2015-03-19) =================== - Remove playlists provider. - Add bookmarks to root directory for browsing. v1.1.0 (2014-11-19) =================== - Load bookmarks as individual playlists. - Clear library cache when refreshing playlists. - Encode filenames in URIs. - Add HTTP connection retries. v1.0.3 (2014-11-14) =================== - Fix handling of re-derived VBR MP3 files. - Remove Ogg Vorbis from default audio formats. v1.0.2 (2014-11-07) =================== - Update dependencies. - Browse Internet Archive items as albums. - Make caching optional. - Disable PNG image format in default configuration. - Temporarily disable VBR MP3 and track comments. v1.0.1 (2014-09-29) =================== - Add item descriptions as track comments. - Filter search results for exact queries. v1.0.0 (2014-09-26) =================== - Major rewrite for version 1.0.0. v0.5.0 (2014-02-28) =================== - Update `README` with link to documentation. - New config values: ``search_order``, ``browse_order``. - Allow empty queries for searching. v0.4.0 (2014-02-25) =================== - Various performance and stability improvements. - Option to exclude specific collections from searching/browsing. - Add image URLs to albums. v0.3.1 (2014-02-21) =================== - Fix default configuration. v0.3.0 (2014-02-21) =================== - Add bookmark browsing support. - Better filtering of search results. - Stability and performance improvements. v0.2.0 (2014-01-31) =================== - Add library browsing support. - Cache search results and metadata. - Properly quote/encode query terms. v0.1.0 (2014-01-24) =================== - Initial release. Mopidy-InternetArchive-3.0.0/LICENSE0000644000175000017500000002367613572474612017023 0ustar tkemtkem00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS Mopidy-InternetArchive-3.0.0/MANIFEST.in0000644000175000017500000000051713572474612017541 0ustar tkemtkem00000000000000include *.py include *.rst include .mailmap include .readthedocs.yml include LICENSE include MANIFEST.in include pyproject.toml include tox.ini recursive-include .circleci * recursive-include .github * include mopidy_*/ext.conf recursive-include tests *.py recursive-include tests/data * recursive-include docs * prune docs/_build Mopidy-InternetArchive-3.0.0/Mopidy_InternetArchive.egg-info/0000755000175000017500000000000013601165760024077 5ustar tkemtkem00000000000000Mopidy-InternetArchive-3.0.0/Mopidy_InternetArchive.egg-info/PKG-INFO0000644000175000017500000000737313601165760025206 0ustar tkemtkem00000000000000Metadata-Version: 2.1 Name: Mopidy-InternetArchive Version: 3.0.0 Summary: Mopidy extension for playing music from the Internet Archive Home-page: https://github.com/tkem/mopidy-internetarchive Author: Thomas Kemmer Author-email: tkemmer@computer.org License: Apache License, Version 2.0 Description: ********************** Mopidy-InternetArchive ********************** .. image:: https://img.shields.io/pypi/v/Mopidy-InternetArchive :target: https://pypi.org/project/Mopidy-InternetArchive/ :alt: Latest PyPI version .. image:: https://img.shields.io/circleci/build/gh/tkem/mopidy-internetarchive :target: https://circleci.com/gh/tkem/mopidy-internetarchive :alt: CircleCI build status .. image:: https://img.shields.io/codecov/c/gh/tkem/mopidy-internetarchive :target: https://codecov.io/gh/tkem/mopidy-internetarchive :alt: Test coverage .. image:: https://img.shields.io/readthedocs/mopidy-internetarchive :target: https://mopidy-internetarchive.readthedocs.io/ :alt: Read the Docs build status Mopidy-InternetArchive is a Mopidy_ extension for playing music from the `Internet Archive`_. This extension lets you search for and stream recordings ranging from `alternative news programming`_, to `Grateful Dead concerts`_, to `Old Time Radio shows`_, to `book and poetry readings`_, to `original music`_ uploaded by Internet Archive users. It also gives you access to a vast number of high-quality live recordings from the `Live Music Archive`_, and thousands of free audiobooks from the LibriVox_ collection. For more information and installation instructions, please see Mopidy-InternetArchive's online documentation_. .. _Mopidy: http://www.mopidy.com/ .. _Internet Archive: http://archive.org .. _alternative news programming: https://archive.org/details/audio_news .. _Grateful Dead concerts: https://archive.org/details/GratefulDead .. _Old Time Radio shows: https://archive.org/details/radioprograms .. _book and poetry readings: https://archive.org/details/audio_bookspoetry .. _original music: https://archive.org/details/opensource_audio .. _Live Music Archive: https://archive.org/details/etree .. _LibriVox: https://archive.org/details/librivoxaudio .. _Documentation: http://mopidy-internetarchive.readthedocs.org/en/latest/ Project resources ================= - `Source code `_ - `Issue tracker `_ - `Changelog `_ Credits ======= - Original author: `Thomas Kemmer `__ - Current maintainer: `Thomas Kemmer `__ - `Contributors `_ Platform: UNKNOWN Classifier: Environment :: No Input/Output (Daemon) Classifier: Intended Audience :: End Users/Desktop Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Topic :: Multimedia :: Sound/Audio :: Players Requires-Python: >=3.7 Provides-Extra: docs Provides-Extra: lint Provides-Extra: release Provides-Extra: test Provides-Extra: dev Mopidy-InternetArchive-3.0.0/Mopidy_InternetArchive.egg-info/SOURCES.txt0000644000175000017500000000200613601165760025761 0ustar tkemtkem00000000000000.readthedocs.yml CHANGELOG.rst LICENSE MANIFEST.in README.rst pyproject.toml setup.cfg setup.py tox.ini .circleci/config.yml Mopidy_InternetArchive.egg-info/PKG-INFO Mopidy_InternetArchive.egg-info/SOURCES.txt Mopidy_InternetArchive.egg-info/dependency_links.txt Mopidy_InternetArchive.egg-info/entry_points.txt Mopidy_InternetArchive.egg-info/not-zip-safe Mopidy_InternetArchive.egg-info/requires.txt Mopidy_InternetArchive.egg-info/top_level.txt docs/.gitignore docs/Makefile docs/changelog.rst docs/conf.py docs/config.rst docs/index.rst docs/install.rst docs/license.rst mopidy_internetarchive/__init__.py mopidy_internetarchive/backend.py mopidy_internetarchive/client.py mopidy_internetarchive/ext.conf mopidy_internetarchive/library.py mopidy_internetarchive/playback.py mopidy_internetarchive/translator.py tests/__init__.py tests/conftest.py tests/test_browse.py tests/test_configmap.py tests/test_extension.py tests/test_images.py tests/test_lookup.py tests/test_playback.py tests/test_search.py tests/test_translator.pyMopidy-InternetArchive-3.0.0/Mopidy_InternetArchive.egg-info/dependency_links.txt0000644000175000017500000000000113601165760030145 0ustar tkemtkem00000000000000 Mopidy-InternetArchive-3.0.0/Mopidy_InternetArchive.egg-info/entry_points.txt0000644000175000017500000000010113601165760027365 0ustar tkemtkem00000000000000[mopidy.ext] internetarchive = mopidy_internetarchive:Extension Mopidy-InternetArchive-3.0.0/Mopidy_InternetArchive.egg-info/not-zip-safe0000644000175000017500000000000113600617572026327 0ustar tkemtkem00000000000000 Mopidy-InternetArchive-3.0.0/Mopidy_InternetArchive.egg-info/requires.txt0000644000175000017500000000054613601165760026504 0ustar tkemtkem00000000000000Mopidy>=3.0.0 Pykka>=2.0.1 cachetools>=1.0 requests>=2.0 setuptools uritools>=1.0 [dev] sphinx black check-manifest flake8 flake8-bugbear flake8-import-order isort[pyproject] twine wheel pytest pytest-cov [docs] sphinx [lint] black check-manifest flake8 flake8-bugbear flake8-import-order isort[pyproject] [release] twine wheel [test] pytest pytest-cov Mopidy-InternetArchive-3.0.0/Mopidy_InternetArchive.egg-info/top_level.txt0000644000175000017500000000002713601165760026630 0ustar tkemtkem00000000000000mopidy_internetarchive Mopidy-InternetArchive-3.0.0/PKG-INFO0000644000175000017500000000737313601165760017101 0ustar tkemtkem00000000000000Metadata-Version: 2.1 Name: Mopidy-InternetArchive Version: 3.0.0 Summary: Mopidy extension for playing music from the Internet Archive Home-page: https://github.com/tkem/mopidy-internetarchive Author: Thomas Kemmer Author-email: tkemmer@computer.org License: Apache License, Version 2.0 Description: ********************** Mopidy-InternetArchive ********************** .. image:: https://img.shields.io/pypi/v/Mopidy-InternetArchive :target: https://pypi.org/project/Mopidy-InternetArchive/ :alt: Latest PyPI version .. image:: https://img.shields.io/circleci/build/gh/tkem/mopidy-internetarchive :target: https://circleci.com/gh/tkem/mopidy-internetarchive :alt: CircleCI build status .. image:: https://img.shields.io/codecov/c/gh/tkem/mopidy-internetarchive :target: https://codecov.io/gh/tkem/mopidy-internetarchive :alt: Test coverage .. image:: https://img.shields.io/readthedocs/mopidy-internetarchive :target: https://mopidy-internetarchive.readthedocs.io/ :alt: Read the Docs build status Mopidy-InternetArchive is a Mopidy_ extension for playing music from the `Internet Archive`_. This extension lets you search for and stream recordings ranging from `alternative news programming`_, to `Grateful Dead concerts`_, to `Old Time Radio shows`_, to `book and poetry readings`_, to `original music`_ uploaded by Internet Archive users. It also gives you access to a vast number of high-quality live recordings from the `Live Music Archive`_, and thousands of free audiobooks from the LibriVox_ collection. For more information and installation instructions, please see Mopidy-InternetArchive's online documentation_. .. _Mopidy: http://www.mopidy.com/ .. _Internet Archive: http://archive.org .. _alternative news programming: https://archive.org/details/audio_news .. _Grateful Dead concerts: https://archive.org/details/GratefulDead .. _Old Time Radio shows: https://archive.org/details/radioprograms .. _book and poetry readings: https://archive.org/details/audio_bookspoetry .. _original music: https://archive.org/details/opensource_audio .. _Live Music Archive: https://archive.org/details/etree .. _LibriVox: https://archive.org/details/librivoxaudio .. _Documentation: http://mopidy-internetarchive.readthedocs.org/en/latest/ Project resources ================= - `Source code `_ - `Issue tracker `_ - `Changelog `_ Credits ======= - Original author: `Thomas Kemmer `__ - Current maintainer: `Thomas Kemmer `__ - `Contributors `_ Platform: UNKNOWN Classifier: Environment :: No Input/Output (Daemon) Classifier: Intended Audience :: End Users/Desktop Classifier: License :: OSI Approved :: Apache Software License Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Topic :: Multimedia :: Sound/Audio :: Players Requires-Python: >=3.7 Provides-Extra: docs Provides-Extra: lint Provides-Extra: release Provides-Extra: test Provides-Extra: dev Mopidy-InternetArchive-3.0.0/README.rst0000644000175000017500000000466613572474612017503 0ustar tkemtkem00000000000000********************** Mopidy-InternetArchive ********************** .. image:: https://img.shields.io/pypi/v/Mopidy-InternetArchive :target: https://pypi.org/project/Mopidy-InternetArchive/ :alt: Latest PyPI version .. image:: https://img.shields.io/circleci/build/gh/tkem/mopidy-internetarchive :target: https://circleci.com/gh/tkem/mopidy-internetarchive :alt: CircleCI build status .. image:: https://img.shields.io/codecov/c/gh/tkem/mopidy-internetarchive :target: https://codecov.io/gh/tkem/mopidy-internetarchive :alt: Test coverage .. image:: https://img.shields.io/readthedocs/mopidy-internetarchive :target: https://mopidy-internetarchive.readthedocs.io/ :alt: Read the Docs build status Mopidy-InternetArchive is a Mopidy_ extension for playing music from the `Internet Archive`_. This extension lets you search for and stream recordings ranging from `alternative news programming`_, to `Grateful Dead concerts`_, to `Old Time Radio shows`_, to `book and poetry readings`_, to `original music`_ uploaded by Internet Archive users. It also gives you access to a vast number of high-quality live recordings from the `Live Music Archive`_, and thousands of free audiobooks from the LibriVox_ collection. For more information and installation instructions, please see Mopidy-InternetArchive's online documentation_. .. _Mopidy: http://www.mopidy.com/ .. _Internet Archive: http://archive.org .. _alternative news programming: https://archive.org/details/audio_news .. _Grateful Dead concerts: https://archive.org/details/GratefulDead .. _Old Time Radio shows: https://archive.org/details/radioprograms .. _book and poetry readings: https://archive.org/details/audio_bookspoetry .. _original music: https://archive.org/details/opensource_audio .. _Live Music Archive: https://archive.org/details/etree .. _LibriVox: https://archive.org/details/librivoxaudio .. _Documentation: http://mopidy-internetarchive.readthedocs.org/en/latest/ Project resources ================= - `Source code `_ - `Issue tracker `_ - `Changelog `_ Credits ======= - Original author: `Thomas Kemmer `__ - Current maintainer: `Thomas Kemmer `__ - `Contributors `_ Mopidy-InternetArchive-3.0.0/docs/0000755000175000017500000000000013601165760016722 5ustar tkemtkem00000000000000Mopidy-InternetArchive-3.0.0/docs/.gitignore0000644000175000017500000000000713572474612020715 0ustar tkemtkem00000000000000_build Mopidy-InternetArchive-3.0.0/docs/Makefile0000644000175000017500000001277413572474612020403 0ustar tkemtkem00000000000000# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . # the i18n builder cannot share the environment and doctrees with the others I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" @echo " dirhtml to make HTML files named index.html in directories" @echo " singlehtml to make a single large HTML file" @echo " pickle to make pickle files" @echo " json to make JSON files" @echo " htmlhelp to make HTML files and a HTML help project" @echo " qthelp to make HTML files and a qthelp project" @echo " devhelp to make HTML files and a Devhelp project" @echo " epub to make an epub" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @echo " latexpdf to make LaTeX files and run them through pdflatex" @echo " text to make text files" @echo " man to make manual pages" @echo " texinfo to make Texinfo files" @echo " info to make Texinfo files and run them through makeinfo" @echo " gettext to make PO message catalogs" @echo " changes to make an overview of all changed/added/deprecated items" @echo " linkcheck to check all external links for integrity" @echo " doctest to run all doctests embedded in the documentation (if enabled)" clean: -rm -rf $(BUILDDIR)/* html: $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." dirhtml: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml." singlehtml: $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml @echo @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml." pickle: $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle @echo @echo "Build finished; now you can process the pickle files." json: $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json @echo @echo "Build finished; now you can process the JSON files." htmlhelp: $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp @echo @echo "Build finished; now you can run HTML Help Workshop with the" \ ".hhp project file in $(BUILDDIR)/htmlhelp." qthelp: $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp @echo @echo "Build finished; now you can run "qcollectiongenerator" with the" \ ".qhcp project file in $(BUILDDIR)/qthelp, like this:" @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Mopidy-InternetArchive.qhcp" @echo "To view the help file:" @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Mopidy-InternetArchive.qhc" devhelp: $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp @echo @echo "Build finished." @echo "To view the help file:" @echo "# mkdir -p $$HOME/.local/share/devhelp/Mopidy-InternetArchive" @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Mopidy-InternetArchive" @echo "# devhelp" epub: $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub @echo @echo "Build finished. The epub file is in $(BUILDDIR)/epub." latex: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex." @echo "Run \`make' in that directory to run these through (pdf)latex" \ "(use \`make latexpdf' here to do that automatically)." latexpdf: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @echo "Running LaTeX files through pdflatex..." $(MAKE) -C $(BUILDDIR)/latex all-pdf @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." text: $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text @echo @echo "Build finished. The text files are in $(BUILDDIR)/text." man: $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man @echo @echo "Build finished. The manual pages are in $(BUILDDIR)/man." texinfo: $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo @echo @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo." @echo "Run \`make' in that directory to run these through makeinfo" \ "(use \`make info' here to do that automatically)." info: $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo @echo "Running Texinfo files through makeinfo..." make -C $(BUILDDIR)/texinfo info @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo." gettext: $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale @echo @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale." changes: $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes @echo @echo "The overview file is in $(BUILDDIR)/changes." linkcheck: $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck @echo @echo "Link check complete; look for any errors in the above output " \ "or in $(BUILDDIR)/linkcheck/output.txt." doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in $(BUILDDIR)/doctest/output.txt." Mopidy-InternetArchive-3.0.0/docs/changelog.rst0000644000175000017500000000010013572474612021400 0ustar tkemtkem00000000000000********** Change Log ********** .. include:: ../CHANGELOG.rst Mopidy-InternetArchive-3.0.0/docs/conf.py0000644000175000017500000000205013572474612020224 0ustar tkemtkem00000000000000import configparser import pathlib def setup(app): app.add_object_type( "confval", "confval", objname="configuration value", indextemplate="pair: %s; configuration value", ) def get_version(): # Get current library version without requiring the library to be # installed, like ``pkg_resources.get_distribution(...).version`` requires. cp = configparser.ConfigParser() cp.read(pathlib.Path(__file__).parent.parent / "setup.cfg") return cp["metadata"]["version"] project = "Mopidy-InternetArchive" copyright = "2014-2019 Thomas Kemmer" version = get_version() release = version exclude_patterns = ["_build"] master_doc = "index" html_theme = "default" latex_documents = [ ( "index", "Mopidy-InternetArchive.tex", "Mopidy-InternetArchive Documentation", "Thomas Kemmer", "manual", ) ] man_pages = [ ( "index", "mopidy-internetarchive", "Mopidy-InternetArchive Documentation", ["Thomas Kemmer"], 1, ) ] Mopidy-InternetArchive-3.0.0/docs/config.rst0000644000175000017500000000736413572474612020741 0ustar tkemtkem00000000000000************* Configuration ************* This extension has a number of configuration values that can be tweaked. However, the :ref:`default configuration ` contains everything to get you up and running, and will usually require only a few modifications to match personal preferences. .. _confvals: Configuration Values ==================== .. confval:: internetarchive/enabled Whether this extension should be enabled or not. .. confval:: internetarchive/base_url Base URL to access the Internet Archive. .. confval:: internetarchive/collections A list of collection identifiers to show as top-level directories when browsing. These are also used to limit the search scope when no search base is given by Mopidy clients explicitly. .. confval:: internetarchive/audio_formats A list of audio file formats, in order of preference. This entry contains a list of `Internet Archive file formats`_. By default, only audio formats suitable for streaming are requested. Note that the Internet Archive also contains a large number of high-quality media files in FLAC_ and other lossless formats, but for sake of bandwidth (both your's and the Archive's), it is recommended that you stick to lossy audio formats for streaming through Mopidy. .. confval:: internetarchive/image_formats A list of image file formats, in order of preference. This entry contains a list of `Internet Archive file formats`_ to be considered when providing images for Internet Archive items. Note that some Mopidy clients, especially MPD clients, will ignore album art provided by Mopidy-InternetArchive or other Mopidy extensions. .. confval:: internetarchive/browse_limit The maximum number of browse results. This is used to limit the number of items returned when browsing the Internet Archive. .. confval:: internetarchive/browse_views When browsing Internet Archive collections (or *directories* in Mopidy), this provides a list of virtual subdirectories so results can be retrieved using a particular :ref:`sort order`. The format for each entry is `` (asc|desc) |