From 69b6364f888627db88b86f9624254f5dff790ecb Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 17 Feb 2023 13:57:50 -0500 Subject: [PATCH] Update todos and add Procfile/honcho --- Procfile | 2 ++ poetry.lock | 20 +++++++++++++++++++- pyproject.toml | 1 + todos.org | 18 ++++++++++-------- 4 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..d204970 --- /dev/null +++ b/Procfile @@ -0,0 +1,2 @@ +web: python manage.py runserver 0.0.0.0:8014 +worker: celery -A vrobbler worker -l DEBUG diff --git a/poetry.lock b/poetry.lock index 43c93a1..3bf6c4f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -587,6 +587,20 @@ category = "main" optional = false python-versions = ">=3.7" +[[package]] +name = "honcho" +version = "1.1.0" +description = "Honcho: a Python clone of Foreman. For managing Procfile-based applications." +category = "main" +optional = false +python-versions = "*" + +[package.dependencies] +colorama = {version = "*", markers = "sys_platform == \"win32\""} + +[package.extras] +export = ["jinja2 (>=2.7,<3)"] + [[package]] name = "httpcore" version = "0.16.3" @@ -1598,7 +1612,7 @@ testing = ["flake8 (<5)", "func-timeout", "jaraco.functools", "jaraco.itertools" [metadata] lock-version = "1.1" python-versions = "^3.8" -content-hash = "4b71b291b00a768d7d3c253a02faf70249d1f10ba85fcb88fc5c80fecb412332" +content-hash = "d57d0a79f04c3288d12d8a9fb3579e03fa514d1a130b11c28812150feeb66a06" [metadata.files] amqp = [ @@ -2079,6 +2093,10 @@ h11 = [ {file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"}, {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"}, ] +honcho = [ + {file = "honcho-1.1.0-py2.py3-none-any.whl", hash = "sha256:a4d6e3a88a7b51b66351ecfc6e9d79d8f4b87351db9ad7e923f5632cc498122f"}, + {file = "honcho-1.1.0.tar.gz", hash = "sha256:c5eca0bded4bef6697a23aec0422fd4f6508ea3581979a3485fc4b89357eb2a9"}, +] httpcore = [ {file = "httpcore-0.16.3-py3-none-any.whl", hash = "sha256:da1fb708784a938aa084bde4feb8317056c55037247c787bd7e19eb2c2949dc0"}, {file = "httpcore-0.16.3.tar.gz", hash = "sha256:c5d6f04e2fc530f39e0c077e6a30caa53f1451096120f1f38b954afd0b17c0cb"}, diff --git a/pyproject.toml b/pyproject.toml index 1e3a059..164ae59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ django-redis = "^5.2.0" pylast = "^5.1.0" django-encrypted-field = "^1.0.5" celery = "^5.2.7" +honcho = "^1.1.0" [tool.poetry.dev-dependencies] Werkzeug = "2.0.3" diff --git a/todos.org b/todos.org index 1a39a31..4359ecc 100644 --- a/todos.org +++ b/todos.org @@ -49,6 +49,15 @@ An example of the format: 311 311 Misdirected Hostility 7 179 S 1740496085 61ff2c1a-fc9c-44c3-8da1-5e50a44245af , #+end_src +* DONE [#B] Allow scrobbling music without MB IDs by grabbing them before scrobble :improvement: +CLOSED: [2023-02-17 Fri 00:10] + +This would allow a few nice flows. One, you'd be able to record the play of an +entire album by just dropping the muscibrainz_id in. This could be helpful for +offline listening. It would also mean bad metadata from mopidy would not break +scrobbling. +* DONE When updating musicbrainz IDs, clear and run fetch artwrok :improvement: +CLOSED: [2023-02-17 Fri 00:11] * TODO [#A] Add ability to manually scrobble albums or tracks from MB :improvement: Given a UUID from musicbrainz, we should be able to scrobble an album or @@ -58,12 +67,6 @@ individual track. * TODO [#B] Adjust cancel/finish task to use javascript to submit :improvement: * TODO [#B] Implement a detail view for TV shows :improvement: * TODO [#B] Implement a detail view for Moviews :improvement: -* TODO [#B] Allow scrobbling music without MB IDs by grabbing them before scrobble :improvement: - -This would allow a few nice flows. One, you'd be able to record the play of an -entire album by just dropping the muscibrainz_id in. This could be helpful for -offline listening. It would also mean bad metadata from mopidy would not break -scrobbling. * TODO [#C] Implement keeping track of week/month/year chart-toppers :improvement: :LOGBOOK: CLOCK: [2023-01-30 Mon 16:30]--[2023-01-30 Mon 18:00] => 1:30 @@ -372,9 +375,8 @@ has to re-populate when the server restarts. } #+end_src * TODO [#C] Consider a purge command for duplicated and stuck in-progress scrobbles :improvement: -* TODO Figure out how to add to web-scrobbler :imropvement: +* TODO [#C] Figure out how to add to web-scrobbler :imropvement: An example: https://github.com/web-scrobbler/web-scrobbler/blob/master/src/core/background/scrobbler/maloja-scrobbler.js -* TODO When updating musicbrainz IDs, clear and run fetch artwrok :improvement: