Re: Sick Beard (ALPHA) - Download/sort/rename episodes, XBMC/growl integration, more
Posted: July 6th, 2010, 4:55 pm
There's no solution yet, still trying to decide the best way to deal with it.
https://237678.vipkidinterhk.tech/
If I may make a suggestion, why not put an override into the script that even if the file is smaller, if it contains "DVD" in the INITIAL file name, it will replace the .avi already in the folder? Same would go for .mkv for HD stuff.midgetspy wrote: There's no solution yet, still trying to decide the best way to deal with it.
Code: Select all
#!/bin/bash
### BEGIN INIT INFO
# Provides: Sick Beard
# Short-Description: start/stop Sick Beard
### END INIT INFO
USER="user"
BEARD_DIR="/home/user/.sickbeard"
BEARD_IP="192.168.1.2:8081"
BEARD_USER="user"
BEARD_PASS="password"
case "$1" in
start)
echo `date` "Starting Sick Beard."
pushd $BEARD_DIR
/usr/bin/sudo -u $USER -H python $BEARD_DIR/SickBeard.py &
;;
stop)
echo `date` "Shutting down Sick Beard."
/usr/bin/wget -q --delete-after --http-user=$BEARD_USER --http-password=$BEARD_PASS "http://$BEARD_IP/home/shutdown/"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
Cool. Thanks. Done.stephenm00 wrote:I made a google code issue so at least we will get an email when its fixed if you star it.Homerboy wrote:If I may make a suggestion, why not put an override into the script that even if the file is smaller, if it contains "DVD" in the INITIAL file name, it will replace the .avi already in the folder? Same would go for .mkv for HD stuff.midgetspy wrote: There's no solution yet, still trying to decide the best way to deal with it.
http://code.google.com/p/sickbeard/issu ... ry%20Stars
Code: Select all
sudo chmod +x /etc/init.d/sickbeard.sh
Code: Select all
sudo update-rc.d sickbeard.sh start 30 2 3 4 5 . stop 14 0 1 6 .
Code: Select all
#! /bin/sh
### BEGIN SCRIPT INFO
# Provides: Sick Beard Start/Stop/Update
# Copied by Ainer.org from http://forums.sabnzbd.org/index.php?topic=2013.0
# Written by Tret on April 17, 2009
# Fix added by Tophicles on July 7, 2010
# Modified by Ainer on various dates in 2010
### END SCRIPT INFO
#Required & Must Be Changed
USER="USER" #Set Ubuntu (or other GNU/Linux) username here.
#Required but Defaults Provided (only change if you know you need to).
HOST="127.0.0.1" #Set Sick Beard address here.
PORT="8081" #Set Sick Beard port here.
BRANCH="master" #Set Sick beard branch to download here.
#Optional (Unneeded unless you have added a Username and Password to Sick Beard).
SBUSR="" #Set Sick Beard Username (if you use one) here.
SBPWD="" #Set Sick Beard Password (if you use one) here.
#Script -- No changes needed below.
case "$1" in
start)
#Start Sick Beard.
cd /home/$USER/.sickbeard
echo "Starting Sick Beard"
sudo -u $USER -H nohup python /home/$USER/.sickbeard/SickBeard.py --quiet &
;;
stop)
#Shutdown Sick Beard.
echo "Stopping Sick Beard"
wget -q --user=$SBUSR --password=$SBPWD "http://$HOST:$PORT/home/shutdown/"
sleep 6s
;;
update)
#Start update process.
# Shutdown Sick Beard.
echo "Stopping Sick Beard"
wget -q --user=$SBUSR --password=$SBPWD "http://$HOST:$PORT/home/shutdown/"
sleep 6s
# Get source and untar it.
echo "Downloading Sick Beard"
cd /home/$USER
wget -q http://github.com/midgetspy/Sick-Beard/tarball/$BRANCH
tar zxf midgetspy-Sick-Beard*
rm midgetspy-Sick-Beard*.tar.gz
# Make Backups, copy essential files, and install new version.
echo "Backing-up Sick Beard"
cp -ru .sickbeard_backup .sickbeard_backup_old
cp -ru .sickbeard .sickbeard_backup
mv .sickbeard/sickbeard.db midgetspy-Sick-Beard-*/
mv .sickbeard/config.ini midgetspy-Sick-Beard-*/
mv .sickbeard/autoProcessTV/autoProcessTV.cfg midgetspy-Sick-Beard-*/autoProcessTV/
rm -rf .sickbeard
echo "Updating Sick Beard"
mv midgetspy-Sick-Beard-* .sickbeard
# Restart Sick Beard quietly and send output To nohup.out.
echo "Restarting Sick Beard"
cd /home/$USER/.sickbeard
sudo -u $USER -H nohup python /home/$USER/.sickbeard/SickBeard.py --quiet &
;;
*)
echo "Usage: $0 {start|stop|update}"
exit 1
esac
exit 0
Starting up Sick Beard alpha2 from /Users/MHK/Desktop/SickBerd/config.ini
22:15:57 INFO::MAIN :: Checking database structure...
22:15:57 INFO::MAIN :: Starting Sick Beard on http://localhost:8081
22:15:57 INFO::MAIN :: Loading initial show list
22:15:57 INFO::MAIN :: Searching DB and building list of airing episodes
22:15:57 INFO::SEARCH :: Changing all old missing episodes to status WANTED
22:15:57 INFO::SEARCH :: Searching DB and building list of airing episodes
22:15:57 INFO::SEARCH :: Beginning search for new episodes on RSS
22:15:57 INFO::SEARCH :: Searching all providers for any needed episodes
22:15:57 INFO::SEARCH :: No needed episodes found on the RSS feeds
22:15:57 INFO::SEARCH :: Searching DB and building list of airing episodes
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cheetah/Compiler.py:1509: UserWarning:
You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
"\nYou don't have the C version of NameMapper installed! "
500 Internal Server Error
The server encountered an unexpected condition which prevented it from fulfilling the request.
Traceback (most recent call last):
File "/Users/MHK/Desktop/SickBerd/cherrypy/_cprequest.py", line 660, in respond
response.body = self.handler()
File "/Users/MHK/Desktop/SickBerd/cherrypy/lib/encoding.py", line 193, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/Users/MHK/Desktop/SickBerd/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/Users/MHK/Desktop/SickBerd/sickbeard/webserve.py", line 1148, in index
return _munge(t)
File "/Users/MHK/Desktop/SickBerd/sickbeard/webserve.py", line 119, in _munge
return unicode(string).encode('ascii', 'xmlcharrefreplace')
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cheetah/Template.py", line 1010, in __unicode__
return getattr(self, mainMethName)()
TypeError: unbound method respond() must be called with Users_MHK_Desktop_SickBerd_data_interfaces_default_home_tmpl instance as first argument (got nothing instead)
+1 on this... I liked that list, an option would be great.rascalli wrote: Would it be an option to have the "MISSED EPS" back ?
As sometimes SB misses some shows , and i only see it because I look at the main screen & the numbers
SickBeard runs 24/7 here and until I updated recently (after a *long* time) it worked great. The problem I'm seeing now is that if an episode doesn't get uploaded/indexed/etc before SickBeard does its search it will not be downloaded ever unless I 'force' it manually (I can see the episode on the new RSS feed of a few sites <24 hours after SickBeard went looking).midgetspy wrote:Newly-aired Wanted episodes will automatically get downloaded because they will be on the "new" RSS feeds for the providers. If SB isn't running when they are on the index sites' RSS feeds then they will not get searched for until the backlog runs.