Commit Graph

3692 Commits

Author SHA1 Message Date
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
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
Thomas Adamcik
54a89038d3 utils/path: Don't skip hidden files and folders in generic find code
Updates the local scan code to do this instead.
2014-10-15 23:45:49 +02:00
Thomas Adamcik
ebb62885cd util/path: Add basic support for following symlinks 2014-10-15 23:44:48 +02:00
Thomas Adamcik
de5fe5ebab tests: Add test for current find symlink handling 2014-10-15 23:43:13 +02:00
Thomas Adamcik
de4bdbec03 tests: Minor cleanup of the existing find tests 2014-10-15 23:42:15 +02:00
Thomas Adamcik
2447e2fa40 util/path: Expose errors to callers of find helper 2014-10-15 23:42:12 +02:00
Stein Magnus Jodal
c9b0101e76 docs: Make extensiondev example and API docs for validate_environment() match
(cherry picked from commit 31c874b3eb)
2014-10-13 23:19:30 +02:00
Stein Magnus Jodal
31c874b3eb docs: Make extensiondev example and API docs for validate_environment() match 2014-10-12 11:40:59 +02:00
Thomas Adamcik
2665a5521b audio: Add gst.DEBUG_BIN_TO_DOT_FILE pipeline debuging 2014-09-26 23:51:33 +02:00
Stein Magnus Jodal
130b1eb32a docs: Define timestamp type 2014-09-23 20:55:16 +02:00
Stein Magnus Jodal
7b50855908 Merge remote-tracking branch 'mopidy/develop' into feature/history
Conflicts:
	docs/changelog.rst
2014-09-23 20:14:40 +02:00
Thomas Adamcik
a16cac2188 Merge pull request #862 from jodal/fix/clear-current-track
core: Remove clear_current_track argument from stop()
2014-09-23 19:54:59 +02:00
Stein Magnus Jodal
542cd3a3bb http: Add history controller to JSON-RPC API 2014-09-23 19:02:58 +02:00
Stein Magnus Jodal
5317834baf history: Change size property to get_length() method
For consistency with tracklist.get_length() and our goal of aligning Python
and JS APIs by using less properties in the core API.
2014-09-23 18:47:54 +02:00
Stein Magnus Jodal
177f91fb27 history: Tweaking formatting and variable names 2014-09-23 18:45:24 +02:00
Stein Magnus Jodal
1f1e86023b history: Cleanup docstrings 2014-09-23 18:44:17 +02:00
Stein Magnus Jodal
d30cf68efd history: Raise TypeError if non-Tracks are added 2014-09-23 18:42:41 +02:00
Stein Magnus Jodal
ded43039bf history: Keep history in private attribute
So it is not accessible directly from other actors.
2014-09-23 18:38:38 +02:00
Stein Magnus Jodal
f3a6c10188 history: Import entire modules
For concistency with other code.
2014-09-23 18:37:18 +02:00
Stein Magnus Jodal
1f9c5c609a history: Use time.time() to get time since epoch 2014-09-23 18:34:50 +02:00
Stein Magnus Jodal
f8f06f4ec4 playback: Move comment so its next to the line it applies to 2014-09-23 18:33:24 +02:00
Stein Magnus Jodal
718405421d history: Rename class to HistoryController
For consistency with other core controllers.
2014-09-23 18:32:37 +02:00
Arjun Naik
a6370b0a67 Switched track name and artist order in history object. 2014-09-23 18:09:12 +02:00
Arjun Naik
9006968f75 TrackHistory stores Ref instances. Timestamp as epoch in milliseconds also stored. 2014-09-23 18:09:12 +02:00
Arjun Naik
ed87ab8dd1 Added a playback history object to the core. 2014-09-23 18:09:11 +02:00