diff --git a/.local/bin/tools/ripper b/.local/bin/tools/ripper index 45de00a..9c0488a 100755 --- a/.local/bin/tools/ripper +++ b/.local/bin/tools/ripper @@ -7,15 +7,15 @@ #This can be limit the number of recent videos available. For a whole download of bitchute channels consider other methods first. #needed if run as cronjob -export XDG_VIDEOS_DIR=$HOME/vids -DLARCHIVE=$XDG_VIDEOS_DIR/.downloaded -DLLOC=$XDG_VIDEOS_DIR -CHANNELSFILE=$XDG_VIDEOS_DIR/.channels +export XDG_VIDEOS_DIR=$HOME/vids #TODO ADJUST FOR PERSONAL USE HERE! +DLARCHIVE="${XDG_VIDEOS_DIR:-$HOME/Videos}/.downloaded" +DLLOC="${XDG_VIDEOS_DIR:-$HOME/Videos}" +CHANNELSFILE="${XDG_VIDEOS_DIR:-$HOME/Videos}/.channels" #FORMAT OF CHANNELSFILE: #Youtube: include the channel URI: https://www.youtube.com/channel/ #Bitchute: normal channel URI: https://www.bitchute.com/channel/ #Lines starting with '#' will be ignored in this file -BLACKLIST=$XDG_VIDEOS_DIR/.blacklist +BLACKLIST="${XDG_VIDEOS_DIR:-$HOME/Videos}/.blacklist" # Required to display notifications if run as a cronjob: export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus