I've written an installscript that can do the following:
Install Couchpotato
Install Sickbeard
Install Periscope + postprocessingscripts + cronjob-processing + manual processing
Install AlbumIdentify + postprocessingscripts + manual processing
I named it LaSi, short for Lazy admin Scripted Installers. The complete script can be found at http://dl.dropbox.com/u/18712538/LaSi/LaSi.sh.
Make it executable with sudo chmod +x and start it with ./LaSi.sh. You will be presented a menu that guides you through install of an app you choose.
You can use the LaSi.sh installer for installing those, it will ask you some questions about where to install and what kind of postprocessing you need and adjusts them automatically to your input, or download the scripts below and adjust paths and stuff yourself and make 'm executable.
It also installs the next (by choice) postprocessingscripts for Sabnzbd:
You need to install Periscope for this to work: http://code.google.com/p/periscope/downloads/list
Periscope: After downloading a movie Periscope searches for subtitles for that movie or tvshow. [url=http://"http://dl.dropbox.com/u/18712538/Periscope/SabtoPeriscope.sh"]Download SabtoPeriscope.sh[/url] [url=http://"http://dl.dropbox.com/u/18712538/Periscope/downloadSub.py"]Download PeriscopeCLI[/url]
Periscope to Sickbeard: After downloading a TV Show it searches for subtitles first, then it lets Sickbeard process all files. [url=http://"http://dl.dropbox.com/u/18712538/Periscope/SabtoPertoSick.sh"]Download SabtoPertoSick.sh[/url]
You need to install AlbumIdentify for this to work: https://github.com/scottr/albumidentify
AlbumIdentify: After downloading musicfiles it tries to find the album on musicbrainz, corrects tags and replaygains the files, tries to find albumart and moves the files inside your musiclibrary according to a selfchosen namingscheme. You can choose to move untagged files into another directory for later manual processing. [url=http://"http://dl.dropbox.com/u/18712538/AlbumIdentify/SabtoAlbum.sh"]Download SabtoAlbum.sh[/url]
Please use Github if you have issues or like to work/implement things on LaSi.
[BASH] Sab to Periscope, Sab to Periscope to Sickbeard, Sab to Albumidentify
[BASH] Sab to Periscope, Sab to Periscope to Sickbeard, Sab to Albumidentify
Last edited by Mar2zz on February 4th, 2011, 8:58 am, edited 1 time in total.
Re: [BASH] Sab to Periscope, Sab to Periscope to Sickbeard, Sab to Albumidentify
Beautiful, thank so much for this. The only thing that didn't work for me was AlbumIdentify. At the very end of the install script this is what I got:
I chmod 0755'd my /scripts folder and tried it again, same thing. I'm new to Linux so I'm not sure if there's something I'm not doing. Thanks again for this, it saved me a ton of time.
Ryan
Code: Select all
Please specify the full path to your folder containing postprocessing-scripts
e.g. /home/ryan/.sabnzbd/scripts
or S to skip
:/usr/share/sabnzbdplus/scripts
ln: creating symbolic link `/usr/share/sabnzbdplus/scripts/SabtoAlbum.sh': Permission denied
Created symbolic link to /usr/share/sabnzbdplus/scripts/SabtoAlbum.sh
Make sure you enable this script in Sabnzbd for your musicdownloads
I chmod 0755'd my /scripts folder and tried it again, same thing. I'm new to Linux so I'm not sure if there's something I'm not doing. Thanks again for this, it saved me a ton of time.
Ryan
Re: [BASH] Sab to Periscope, Sab to Periscope to Sickbeard, Sab to Albumidentify
hmm strange. It does:
That's the normal command to create a symlink (and backup old one if one allready exists).
This code is responsible for it:
Could you try it manually as the same user you executed the installscript with? Does it work then? If that doesn't work you'e rights arent ok, then please provide output of
Code: Select all
ln -s -b /dir/to/albumidentify/SabtoAlbum.sh /dir/to/postprocessing/SabtoAlbum.sh
This code is responsible for it:
Code: Select all
set_Sabpost () {
ln -s -b $INSTALLDIR/$SABTOALBUM $SABPATH/$SABTOALBUM
echo
echo "Created symbolic link to $SABPATH/$SABTOALBUM"
echo "Make sure you enable this script in Sabnzbd for your musicdownloads"
}
Code: Select all
ln -s -b /dir/to/albumidentify/SabtoAlbum.sh /usr/share/sabnzbdplus/scripts/SabtoAlbum.sh
Code: Select all
ls -l /usr/share/sabnzbdplus/scripts
Last edited by Mar2zz on February 6th, 2011, 3:07 am, edited 1 time in total.
Re: [BASH] Sab to Periscope, Sab to Periscope to Sickbeard, Sab to Albumidentify
Weird, my filesystem was having I/O errors and the entire disk was in read-only mode. I'm guessing it was leftover from a badly closed fsck? Anyway I ran fsck and executed the command you gave me and it created a symlink just fine.
But of course it wouldn't work for me that simply. I added a test album to Sab and after it downloaded and executed the script it gave me this output:
and the files remained untouched. I'm running a fresh install from yesterday morning and 'apt-get install python-musicbrainz2' claims it's the most recent version. In the meantime I'll test it out on Squeeze. Thanks again for your help so far.
But of course it wouldn't work for me that simply. I added a test album to Sab and after it downloaded and executed the script it gave me this output:
Code: Select all
Starting renamealbum for Eminem Relapse 2009 RTT
/usr/lib/pymodules/python2.6/musicbrainz2/model.py:21: DeprecationWarning: the sets module is deprecated
from sets import Set
lockfile is recommended
see: http://pypi.python.org/pypi/lockfile/
To submit ISRCs to the musicbrainz database you need
python-musicbrainz2 >= v 0.7.0
Sun Feb 6 10:44:01 MST 2011
Album search ended for Eminem Relapse 2009 RTT
Re: [BASH] Sab to Periscope, Sab to Periscope to Sickbeard, Sab to Albumidentify
The installerscript also tries to install or update your python-musicbrainz2, so I am sure you'll have it on your system (otherwise it would have prompted your for confirm install or manual install.
Lenny has 0.6 python-musicbrainz2, maybe that's what's the problem, I assume you are on lenny as you are trying squeeze now?
(typeto find out what version is on your system, you need 0.7 or greater).
You could try the .deb here: http://forums.musicbrainz.org/viewtopic.php?id=1908.
I only tested on Ubuntu-systems, please let me know if it works on Squeeze so I can add it to my tested/passed list..
Lenny has 0.6 python-musicbrainz2, maybe that's what's the problem, I assume you are on lenny as you are trying squeeze now?
(type
Code: Select all
dpkg -s python-musicbrainz2 | grep -i version
You could try the .deb here: http://forums.musicbrainz.org/viewtopic.php?id=1908.
I only tested on Ubuntu-systems, please let me know if it works on Squeeze so I can add it to my tested/passed list..
Re: [BASH] Sab to Periscope, Sab to Periscope to Sickbeard, Sab to Albumidentify
I installed it on fresh copies of Lenny and Squeeze and both times it flagged a permission denied until I rebooted. Then I could run the ln etc. command to create a symlink and Sab would see it and execute it, however the settings from the install script didn't save into SabtoAlbum.sh (the faildir was still /path/to/faildir/) . I installed musicbrainz 0.7 and it executed the script but didn't touch the mp3s. I'm not sure what a successful SabtoAlbum output looks like but here's what it gave me:
Code: Select all
Sun Feb 6 19:53:00 MST 2011
Starting renamealbum for Eminem Relapse 2009 RTT
lockfile is recommended
see: http://pypi.python.org/pypi/lockfile/
Sun Feb 6 19:53:00 MST 2011
Album search ended for Eminem Relapse 2009 RTT
Re: [BASH] Sab to Periscope, Sab to Periscope to Sickbeard, Sab to Albumidentify
Normal output is this: http://pastebin.com/NyKmR1XR
If you want to see what happens edit the script #!/usr/bin/env bash to #!/bin/bash -x. Post your terminal output on pastebin so I can tell where it is stuck...
Start it with ./SabtoAlbum.sh "/path/to/Eminem Relapse 2009 RTT" "x" "testrun" . Post your terminal output on pastebin, maybe I can tell where it is stuck...
If you want to see what happens edit the script #!/usr/bin/env bash to #!/bin/bash -x. Post your terminal output on pastebin so I can tell where it is stuck...
Start it with ./SabtoAlbum.sh "/path/to/Eminem Relapse 2009 RTT" "x" "testrun" . Post your terminal output on pastebin, maybe I can tell where it is stuck...
Last edited by Mar2zz on February 7th, 2011, 11:19 am, edited 1 time in total.
Re: [BASH] Sab to Periscope, Sab to Periscope to Sickbeard,
The dropbox links are dead?