Commit Graph

3716 Commits

Author SHA1 Message Date
Thomas Adamcik
77dc046efd audio: Fix rST formatting in docstring 2014-12-21 21:49:51 +01:00
Thomas Adamcik
7b36a598bb review: Fix typos found in PR#915 feedback 2014-12-21 21:48:09 +01:00
Thomas Adamcik
32da1cb8e9 local: Use MIN_DURATION_MS in log message 2014-12-21 21:46:21 +01:00
Thomas Adamcik
9be788b129 audio: Move tags to track conversion to audio utils 2014-12-18 23:36:56 +01:00
Thomas Adamcik
983148a9a4 audio: Start storing the tags we find in audio
Adds a new get_currents_tags method for fetching the full set of current tags.
There are still some untested cases for this, and I also suspect we still want
some API refinements one core starts using this.
2014-12-18 23:28:19 +01:00
Thomas Adamcik
bc347f1650 audio: Fix minor typo in a debug log message 2014-12-18 23:28:19 +01:00
Thomas Adamcik
6c62252919 audio: Add tags changed event to audio.
Current version simply emits the keys of the changed tags to the audio
listener. Following change will add support for storing the actual data.
2014-12-18 23:28:19 +01:00
Thomas Adamcik
de6bd63481 audio: Remove min duration code from scanner.
The local scanner now handles this itself by looking at the duration.
2014-12-18 23:28:19 +01:00
Thomas Adamcik
4f8244c499 audio: Convert audio_data_to_track to tags_to_track
The new function only uses tags as input. In other words we now need to set
length, uri and mtime ourselves. Users of scan APIs have been updated.
2014-12-18 23:28:19 +01:00
Thomas Adamcik
4948dee4b9 audio: Make scanner return duration in milliseconds
Also ensures that we normalize unknown duration to None instead of -1.
2014-12-18 23:28:19 +01:00
Thomas Adamcik
d9d501cd98 audio: Update scanner to just return tags+duration
The caller should know what URI we are talking about. Additionally finding the
mtime is never belonged in this class and has been moved out.
2014-12-18 23:28:19 +01:00
Thomas Adamcik
dcaa0f6732 local: Move musicbrainz cover art helper to translator 2014-12-18 23:28:14 +01:00
Thomas Adamcik
671ee5ee6a audio: Switch to using converted taglists instead of raw data. 2014-12-14 22:25:52 +01:00
Thomas Adamcik
f477e9176e audio: Add helper for converting taglists
Goal is simply to avoid leaking gst types to the rest of mopidy. Only part we
will be leaking is the tag keys. Which we can live with.
2014-12-14 22:23:13 +01:00
Thomas Adamcik
2c3217685b utils: Switch to exceptions.FindError for errors. 2014-12-14 14:08:45 +01:00
Thomas Adamcik
f99028ce41 Merge pull request #882 from lukasvogel/develop
Escape newline characters when dispatching data
2014-12-14 13:19:21 +01:00
Thomas Adamcik
1404f379ca Merge pull request #904 from tamland/tag_refresh
local: fix modified files not being updated
2014-12-14 13:17:09 +01:00
Stein Magnus Jodal
4e508cd017 mpd: Enable browsing of empty dirs
This was disabled together with a bunch of other changes without any
explanation in commit f24ca36e5a. I'm
guessing that this wasn't intentional, and no test covered the case.
2014-12-13 01:27:14 +01:00
Stein Magnus Jodal
33e3fe9173 mpd: Add browse() helper docs 2014-12-13 01:26:36 +01:00
Stein Magnus Jodal
be341fcd04 docs: Fix references 2014-12-12 22:45:02 +01:00
Thomas Amland
dfd897832a [local] fix modified files not being updated 2014-12-11 14:41:37 +01:00
Stein Magnus Jodal
7acf62723a py3: Use itervalues() for local track database 2014-12-07 21:44:39 +01:00
Stein Magnus Jodal
4f428b8601 py3: Move compat module out of utils 2014-12-07 21:36:15 +01:00
Stein Magnus Jodal
57cdab586a Fix flake8 warnings 2014-12-07 20:39:39 +01:00
Stein Magnus Jodal
e35a066d5e py3: Use explicit float or integer division 2014-12-07 20:25:51 +01:00
Stein Magnus Jodal
7124226fc7 py3: Use renamed function via compat 2014-12-07 20:19:01 +01:00
Stein Magnus Jodal
01c7f12976 py3: Import moved modules via compat 2014-12-07 20:19:01 +01:00
Stein Magnus Jodal
95df66865e py3: Use list comprehensions instead of filter()
This is just a stylistic change, and is not strictly required for Python 3
compat.
2014-12-07 20:19:01 +01:00
Stein Magnus Jodal
1d26c2d63c py3: Use .item() and .values()
As .iteritem() and .itervalues() doesn't exist in Python 3.
2014-12-07 20:19:01 +01:00
Stein Magnus Jodal
58527406c1 py3: Use compat.text_type instead of unicode 2014-12-07 20:17:10 +01:00
Stein Magnus Jodal
b9a5192d5f py3: Add Python 2/3 compat module
Keep all the hacks in a single place. This looks like all we need, so no need
to depend on six.
2014-12-07 20:17:10 +01:00
Stein Magnus Jodal
98ca748996 py3: Use print function instead of print statement 2014-12-07 20:17:10 +01:00
Stein Magnus Jodal
496142c201 py3: Use absolute imports by default 2014-12-07 20:17:10 +01:00
Stein Magnus Jodal
e18fd7d507 Merge branch 'release/v0.19.x' into develop 2014-11-26 23:53:31 +01:00
Stein Magnus Jodal
4a6e7d292c docs: Don't refer to the tracklist as a playlist 2014-11-25 21:37:55 +01:00
Stein Magnus Jodal
680dbffc0c models: Make all fields default to None or empty collection
(cherry picked from commit abed15b9e4)
2014-11-04 21:27:29 +01:00
Stein Magnus Jodal
a4b17a9aa8 models: Fix equality for fields set to the default
Fixes #837

(cherry picked from commit bdd1fb983b)
2014-11-04 20:17:20 +01:00
Stein Magnus Jodal
88d64044de models: Hide empty lists from repr()
(cherry picked from commit 305a76486d)

Conflicts:
	docs/changelog.rst
2014-11-04 20:17:13 +01:00
Thomas Kemmer
1c5b07a374 Make everything that is not a Track browseable 2014-10-24 12:47:58 +02:00
Lukas Vogel
c8bc0afc93 reintroduce generator expression 2014-10-23 12:31:55 +02:00
Lukas Vogel
f0574d1c8e fixed embarassing bug left over from refactoring to meet coding standards 2014-10-23 03:24:18 +02:00
Lukas Vogel
f499dafe13 Escape newline characters when dispatching data 2014-10-23 02:57:57 +02:00
Stein Magnus Jodal
c84ed733ee Merge pull request #874 from adamcik/feature/improve-find-and-scan-code
Feature/improve find and scan code
2014-10-20 14:07:46 +02:00
Thomas Adamcik
b9a7a9d2b6 local: Add follow symlinks setting 2014-10-17 20:08:33 +02:00
Thomas Adamcik
369edab76d utils/path: Make it more clear that we are not following symlinks 2014-10-17 20:08:12 +02:00
Thomas Adamcik
d4f47a34c2 local: Move Hidden file/directory check to excluded extensions check 2014-10-17 16:52:01 +02:00
Thomas Adamcik
43d8062094 util/path: s/os.error/OSError/ 2014-10-17 16:46:33 +02:00
Thomas Adamcik
5bf6b779ac local: Add basic logging of scan errors 2014-10-15 23:56:59 +02:00
Thomas Adamcik
3dc0a06ffe local: Fix skipping of hidden file/directories 2014-10-15 23:54:52 +02:00
Thomas Adamcik
063c757570 utils/path: Add support for handling sym/hardlink loops 2014-10-15 23:46:08 +02:00