Fallback if XDG not present

This commit is contained in:
Alexander Bocken 2021-01-01 19:26:09 +01:00
parent e8b5d81bd2
commit 2753105043
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -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. #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 #needed if run as cronjob
export XDG_VIDEOS_DIR=$HOME/vids export XDG_VIDEOS_DIR=$HOME/vids #TODO ADJUST FOR PERSONAL USE HERE!
DLARCHIVE=$XDG_VIDEOS_DIR/.downloaded DLARCHIVE="${XDG_VIDEOS_DIR:-$HOME/Videos}/.downloaded"
DLLOC=$XDG_VIDEOS_DIR DLLOC="${XDG_VIDEOS_DIR:-$HOME/Videos}"
CHANNELSFILE=$XDG_VIDEOS_DIR/.channels CHANNELSFILE="${XDG_VIDEOS_DIR:-$HOME/Videos}/.channels"
#FORMAT OF CHANNELSFILE: #FORMAT OF CHANNELSFILE:
#Youtube: include the channel URI: https://www.youtube.com/channel/<channelId> #Youtube: include the channel URI: https://www.youtube.com/channel/<channelId>
#Bitchute: normal channel URI: https://www.bitchute.com/channel/<user> #Bitchute: normal channel URI: https://www.bitchute.com/channel/<user>
#Lines starting with '#' will be ignored in this file #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: # Required to display notifications if run as a cronjob:
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus