Commit Graph

7711 Commits

Author SHA1 Message Date
Nick Steel
d6da4b5cdb audio: Upgrade GST state mapping race logging from DEBUG to WARN. 2019-01-31 23:13:35 +00:00
Nick Steel
dfbab4bf88 audio: Disable buffering handling during track change. (Fixes #1722).
Skip handling buffering messages if pipeline not PLAYING or PAUSED.
2019-01-31 23:13:35 +00:00
Nick Steel
3e40f918c9 Merge branch 'master' into release-2.2 2019-01-31 22:59:27 +00:00
Nick Steel
531c090da9 test: Skips scanner tags test when there's no mp3 support.
The file order returned by .find is not deterministic which made
testing the first scanner result fail when it happened to be an unsupported
media format (e.g. mp3).
2019-01-31 22:56:36 +00:00
Nick Steel
7230aff07b flake8: F632 use != to compare str 2019-01-31 22:56:28 +00:00
Nick Steel
5b32f87364 test: flake8 to ignore camelcase usage in our deps.
Ignore N813 when importing the c version of xml.etree.ElementTree.

Ignore N815 when controlling failure diff length in unittest.
2019-01-31 20:22:10 +00:00
Nick Steel
6f615d30f3
Merge pull request #1735 from kingosticks/fix/change-track-sample-rates
audio: removed unused fakesink. (Fixes #1528)
2019-01-30 10:31:07 +00:00
Nick Steel
5e8fd9a338 audio: removed unused fakesink. (Fixes #1528)
The 'always connected fakesink' is causing problems when switching
between tracks with different sample rates and with some custom
output pipelines. Since it's only there to support dynamic outputs,
which we don't yet support, we might as well remove it for now.
2019-01-29 23:54:13 +00:00
Nick Steel
84f231af96
docs: set 'async=false' for shout2send pipelines
As part of #1528
2019-01-16 01:48:30 +00:00
Nick Steel
cf47d6dcf0
Merge pull request #1731 from mxjeff/patch-1
docs: Update mpd.rst
2019-01-11 15:48:46 +00:00
kaliko
046673e275
Update mpd.rst
Update MPD Website URL
2019-01-11 16:15:56 +01:00
Stein Magnus Jodal
e9f8245e32 Release v2.2.2 2018-12-29 17:06:58 +01:00
Stein Magnus Jodal
1c22796994 Bump version to v2.2.2 2018-12-29 17:06:30 +01:00
Stein Magnus Jodal
bcdf8baea1 docs: Remove duplicate changelog 2018-12-29 17:05:36 +01:00
Stein Magnus Jodal
93f57c8df4 Merge branch 'master' into release-2.2 2018-12-29 17:04:52 +01:00
jcass77
27f9614d10 docs: Update OSX Homebrew installation instructions. 2018-12-29 16:54:52 +01:00
Stein Magnus Jodal
a1690bf565 Merge branch 'master' into release-2.2 2018-12-07 23:12:50 +01:00
Stein Magnus Jodal
c075a773d0 docs: Remove UPnP-Inspector
Both UPnP-Inspector and its dependency Coherence seems unmaintained
since ~2009 and are not trivial to get running today.
2018-12-07 23:09:05 +01:00
Stein Magnus Jodal
672e225021 docs: Refer to Mopidy-MPRIS docs for Rygel setup 2018-12-07 23:08:00 +01:00
Stein Magnus Jodal
ae4b141e8a docs: Refer to Mopidy-MPRIS docs for MPRIS clients 2018-12-07 23:05:17 +01:00
Stein Magnus Jodal
dea1a428b2 travis: Build on xenial 2018-12-02 00:31:59 +01:00
Stein Magnus Jodal
52a035d217 flake8: Fix new warnings from flake8 2.4.0 2018-12-02 00:28:25 +01:00
Stein Magnus Jodal
b34bcd0f58 flake8: Ignore W504
It is ignored by default, but we must redefine the ignore since we
specify what warnings are ignored ourselves.
2018-12-02 00:23:23 +01:00
Stein Magnus Jodal
c94b9d5fd2 xdg: Read paths from user-dirs.dirs as bytes
Fixes #1676, #1725
2018-11-27 23:22:50 +01:00
Stein Magnus Jodal
9bf8ac2099 xdg: Read paths from user-dirs.dirs as bytes
Fixes #1676, #1725
2018-11-26 22:51:48 +01:00
Nick Steel
2a8375a947
docs: improve http/allowed_origins (Fixes #1719).
Be explicitly that should not include the scheme or default ports and given an example.
2018-10-29 11:26:26 +00:00
Stein Magnus Jodal
10c571b153
Merge pull request #1716 from kingosticks/fix/hang-on-stopping-http
http: use current Tornado IOLoop when stopping. (Fixes #1715).
2018-10-22 22:06:31 +02:00
Nick Steel
1d30e73ab0 http: use current Tornado IOLoop when stopping. (Fixes #1715).
This is in response to the breaking change in Tornado v5.0 where
IOLoop.instance is now a deprecated alias for IOLoop.current.
More info at https://www.tornadoweb.org/en/stable/releases/v5.0.0.html
2018-10-22 15:28:39 +01:00
Stein Magnus Jodal
e2b4a2749b Update MANIFEST.in to include .github and exclude .doctrees 2018-10-15 22:41:08 +02:00
Stein Magnus Jodal
9a7adc280f Release v2.2.1 2018-10-15 22:09:53 +02:00
Stein Magnus Jodal
7988708cbf Bump version to 2.2.1 2018-10-15 22:09:12 +02:00
Stein Magnus Jodal
d153e855f4 Merge master into release-2.2 2018-10-15 22:08:46 +02:00
Stein Magnus Jodal
c720d90b53 docs: v2.2.1 release notes 2018-10-15 22:08:07 +02:00
Stein Magnus Jodal
cce87edaa0 git: Ignore docs/.doctrees/ 2018-10-15 22:06:39 +02:00
Stein Magnus Jodal
2390f3a891
Merge pull request #1714 from kingosticks/feature/disable-http-csrf-config
http: Add config option to disable CSRF protection (Fixes: #1713)
2018-10-15 22:04:30 +02:00
Nick Steel
10fafc0228 http: Add config option to control CSRF protection (Fixes: #1713)
Allows users to disable CSRF protection and revert to the HTTP server's
previous (less secure) behaviour. Users are advised to leave this config
value enabled if possible. However, if disabled this will:
  * Remove the requirement to set a ``Content-Type: application/json``
    header for JSON-RPC POST requests.
  * Disable all same-origin checks, effectively ignoring the ``allowed_origins``
    config since requests from any origin will be allowed.
  * Suppress all ``Access-Control-Allow-*`` response headers.
2018-10-15 17:24:45 +01:00
Stein Magnus Jodal
9f7b3478d2
Merge pull request #1712 from kingosticks/fix/cors-breaking-changes
http: allow local files to access websocket (Fixes #1711)
2018-10-09 00:50:25 +02:00
Nick Steel
6e9ed9e8a9 http: allow local files to access websocket (Fixes #1711)
check_origin() still ensures the Origin header is set but now only blocks
when missing from the allowed list *if* a network location was extracted
from the header. This prevents websocket connections originating from
local files (common in Apache Cordova apps such as Mopidy-Mobile) from
being blocked; these files don't really have a sensible value for Origin
so the client browser sets the header to something like 'file://' or
'null'.

Also added some tests for check_origin().
2018-10-08 23:39:47 +01:00
Stein Magnus Jodal
0bc458cade docs: Minor tweaks 2018-10-09 00:25:44 +02:00
Nick Steel
043da0e871
docs: mention required Content-Type header 2018-10-08 17:38:39 +01:00
Nick Steel
4f8b755a2a
docs: update curl HTTP POST example
Must set 'Content-Type: application/json' header due to #1668
2018-10-08 17:24:59 +01:00
Nick Steel
4a75a39880
Merge pull request #1701 from vonZeppelin/develop
docs: Add Yandex.Disk backend
2018-10-02 23:39:20 +01:00
Leonid Bogdanov
aa9fde4dd9 Add Yandex.Disk backend 2018-10-01 20:53:16 +10:00
Stein Magnus Jodal
e025f04160 Release v2.2.0 2018-09-30 00:28:47 +02:00
Stein Magnus Jodal
d6a920aacb Bump version number to 2.2.0 2018-09-30 00:28:23 +02:00
Stein Magnus Jodal
b62c153425 docs: v2.2.0 release notes 2018-09-30 00:09:48 +02:00
Stein Magnus Jodal
c83132b5ec Update AUTHORS 2018-09-30 00:03:57 +02:00
Stein Magnus Jodal
7a0ade4112 tox: Remove pytest-xdist
This seems to fix the Travis build that recently started getting an
ImportError on `gobject`.
2018-09-29 23:32:30 +02:00
Nick Steel
09240dae2f
Merge pull request #1702 from jodal/fix/m3u-arbitrary-file-access
Fix arbitrary file access in M3U backend
2018-09-27 22:52:32 +01:00
Stein Magnus Jodal
58e75b2b7a m3u: Ignore paths outside the playlist_dir
Fixes #1659
2018-09-19 22:27:18 +02:00