Skip to content
MADindustries edited this page Apr 12, 2017 · 12 revisions

The transcoded are uploaded automatically to passtheheadphones.me so please check them out to see if they are correct.

Settings

There are several settings that needs to be changed. Make sure the transcoding settings in settings.py are correct. The transcode username and password is for a user that exists within WM.

Celery

Celery broker is needed for the transcodes. You can either install it from apt with sudo apt-get install python-celery or via pip with pip install Celery==3.1.17. You need a broker and the default settings.py uses amqp which is used by Rabbit MQ so Rabbit MQ is recommended.

Install screen and then run celery either with celery.sh or with python manage.py celery worker --loglevel=info --concurrency=1

Problems

I had Segmentation fault when running. This was fixed with sudo pip install -U librabbitmq

If you have a what.cd upload error, it's probably due to stale login data. Please delete all rows from the database table home_whatlogincache and it will work.

Crontab

If celery.sh runs next step is to add a crontab. Making a standard cronfile as earlier it would look like this. The basic transcode sync is as follows (modify the URL if you installed WM in a subfolder):

* * * * * root curl curl http://host.com/transcode/update

With crontab -e this would be

* * * * * curl http://host.com/transcode/update

See if it's working to go to http://host.com/transcode and add a transcode job either there or with userscripts.

Clone this wiki locally