Just deleted about 400 bot accounts and a bunch of spam. To mitigate this in the future, we've enabled reCaptcha on signup. Let me know if someone got caught in the crossfire.

Commit 4b8f179e authored by Rob Nelson's avatar Rob Nelson
Browse files

Bunch of fixes.

parent 446a4ee2
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8
# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
/files-upl
/tmp_files
#/source
*.pyc
grabmusic.sh
This diff is collapsed.
#!/usr/bin/python
import glob, os, hashlib, logging, subprocess, sys
def DownloadYoutube(uri,todir):
return cmd(['youtube-dl', '-o', 'source/{DIR}/%(title)s-%(id)s.%(ext)s'.format(DIR=todir), '-x', '--audio-format=vorbis', uri],showoutput=True)
return cmd(['youtube-dl', '-o', 'source/{DIR}/%(title)s-%(id)s.%(ext)s'.format(DIR=todir), '-x', '--audio-format=mp3', uri],showoutput=True)
def cmd(command, showoutput=False):
logging.debug(u'>>> '+repr(command))
......
......@@ -8,7 +8,14 @@ CACHE_DIR=${ROOT_DIR}/cache
set -x
rsync -Rrhavvp --chmod=ugo=rw --delete --progress files-upl/ $ROOT_DIR/
if [ ! -d $POOL_DIR ]; then
mkdir -p $POOL_DIR
fi
if [ ! -d $CACHE_DIR ]; then
mkdir -p $CACHE_DIR
chmod -R 766 $CACHE_DIR
fi
rm -rf $POOL_DIR/*
cp -r ${TMP_POOL_DIR}/* ${POOL_DIR}
rm -rf ${CACHE_DIR}/*
chmod -R 755 ${POOL_DIR}
chmod -R 777 $ROOT_DIR
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment