Skip to content

Commit

Permalink
hdfd
Browse files Browse the repository at this point in the history
  • Loading branch information
fatg3erman committed Mar 14, 2024
1 parent 2f61526 commit 0eded2d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
39 changes: 38 additions & 1 deletion docs/Backend-Daemon.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,47 @@ And start it with
As this will fail (or why are you running it as a service?) you will see the error that it is not running again.
Systemd should restart it after 5 seconds and then you'll be able to load RompR**

### On Systems without systemd (eg FreeBSD)

If you run a system that doesn't have systemd, one user has reported that the following works on FreeBSD

Create the file /usr/local/etc/rc.d/romprbackend

# PROVIDE: romprbackend
# REQUIRE: LOGIN cleanvar sshd apache24
# KEYWORD: shutdown

. /etc/rc.subr

name="romprbackend"
rcvar="romprbackend_enable"

romprbackend_chdir="/PATH_TO_ROMPR/"

command="/usr/sbin/daemon"
command_args="-r -f -u www /usr/local/bin/php /PATH_TO_ROMPR/rompr_backend.php"

load_rc_config $name
: ${romprbackend_enable:=no}
: ${romprbackend_msg="Nothing started."}

run_rc_command "$1"

Where /PATH_TO_ROMPR/ is the RompR installation directory, as above. This requires first running.

sysrc romprbackend_enable="YES"

More info might be available by following [This Thread](https://github.com/fatg3erman/RompR/issues/140)

## Troubleshooting

If it's not working, first enable [debug logging](/RompR/Troubleshooting) to level 7 then restart rombackend.
You'll see some output from it in the web server's error log (and your custom logifle if you're using one).

You can also try to run it from the command-line with php /PATH/TO/ROMPR/rompr_backend.php, but if you do this it will need write access to your webserver's error log and everything in your rompr/prefs directory.
You can also try to run it from the command-line with

cd /PATH_TO_ROMPR
php /PATH_TO_ROMPR/rompr_backend.php

but if you do this it will need write access to your webserver's error log and everything in your rompr/prefs directory.
This might, however, be useful if it's crashing out really early.
8 changes: 6 additions & 2 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

* Sleep Timer fadeout time is now configurable.
* Further support for Qobuz using the [mopidy-qobuz-hires backend](https://github.com/vitiko98/mopidy-qobuz)
* New options to not scrobble Podcasts and/or Spoken Word tracks to Last.FM
* MPD outputs with hyperlnks in the name will now cause a link to be displayed in the UI (contributed by ron-from-nl)
* All Mopidy-linked functionality that depends on online music sources (eg 'Music From Everywhere') should now recognise all the main ones that work well (Spotify, YTMusic, YouTube, Qobuz)
* You can now limit your Collection view to only show tracks from a specific Mopidy backend (eg only loca, only spotify, etc..)
* A few minor bugfixes

NOTE. Due to a limtation in mopidy-qobuz-hires version 0.1.0, to use that backend with RompR 2.14 or later you will
Expand All @@ -28,7 +32,7 @@ until an official updated version is released. Trying to use the official releas
### If upgrading from a version before 2.00 please read the notes for version 2.00 before continuing.

* Album art bugfix for people running PHP 8, contributed by svalo.
* Files can now be downloaded through the browser from the File Browser by clicking on the 'mp3' (or whatever) icon next to the file name. This works with anything in mpd and for local files in Mopidy. It requires the path to your localmusic to be configured in the preferences.
* Files can now be downloaded through the browser from the File Browser by clicking on the 'mp3' (or whatever) icon next to the file name. This works with anything in mpd and for local files in Mopidy. It requires the path to your local music to be configured in the preferences.


## Version 2.06
Expand Down Expand Up @@ -76,7 +80,7 @@ until an official updated version is released. Trying to use the official releas
* Make the SQLite collection case-insensitive, which makes it work the same way as MySQL and means I can remove a lot of case checking statements, which speeds things up.
* All tracks and podcast episodes can now have an arbitrary number of named bookmarks associated with them.
* All Personal Radio stations are now populated by the Backend Daemon, so there is no longer any need to keep a browser open.
* If Mopidy's HTTP interface is available and you do a search in RompR and limit the search to specific backends the search can be performed using Mopidy's HTTP interface instead of the MPD interface. This can provide significantly improved search performance and better quality information but it can use a lot of RAM and in certain setups it might be a lot slower. You can disable this behaviour by unchcking 'Use Mopidy HTTP interface for Search' on the rompr/?setup screen.
* If Mopidy's HTTP interface is available and you do a search in RompR and limit the search to specific backends the search can be performed using Mopidy's HTTP interface instead of the MPD interface. This can provide significantly improved search performance and better quality information but it can use a lot of RAM and in certain setups it might be a lot slower. You can disable this behaviour by unchecking 'Use Mopidy HTTP interface for Search' on the rompr/?setup screen.
* The usual collection of undocumented bugfixes.
* **Youtube Music as a Spotify Replacement**
* Now that Mopidy-Spotify is no longer working, and we don't know how long it will take (or if ever) to get a fix, the rompr/?setup screen has an option to mark all your Spotify tracks as unplayable. They will no longer appear in your collection and will be added to Your Wishlist. Note that selecting this option will force a rescan of your Music Collection. The Wishlist Viewer will give you an easy way to browse them and decide which ones you want to buy digital or physical copies of. I recommend Bandcamp, where the artist gets a fair share of the money, unlike from Spotify. If you have enabled Youtube Music support in Mopidy the Wishlist Viewer will permit you to search for tracks on Youtube Music and import them into your Collection in place of your Spotify tracks, preserving the tags, ratings, and playcounts.
Expand Down
4 changes: 2 additions & 2 deletions docs/Rompr-And-Mopidy.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ At the time of writing, version 0.1.0 of mopidy-qobuz-hires does not support alb
you might find the search results get corrupted and end up plyaing different tracks.
I have raised this as a Pull Request with the maintainer but until that gets merged you should install mopidy-qobuz-hires using the command

pip3 install git+https://github.com/fatg3erman/mopidy-qobuz@dev
pip3 install git+https://github.com/vitiko98/mopidy-qobuz@dev


## Mopidy-YTMusic and Mopidy-Youtube
Expand Down Expand Up @@ -165,7 +165,7 @@ If you haven't done this right, then your music collection update will just hang

## Genres

Note that only Mopidy-Local seems to return Genres, so Genre-based Collection functions will not work as your might expect if you use Spotify, Soundcloud, etc.
Note that only Mopidy-Local seems to return Genres, so Genre-based Collection functions will not work as you might expect if you use Spotify, Soundcloud, etc.


## Downloading Youtube Tracks
Expand Down

0 comments on commit 0eded2d

Please sign in to comment.