remove entête line from *ASTRXBIAN

pull/35/head
fred 1 year ago
parent 48aaa661ea
commit b2d2e095f5

@ -10,12 +10,12 @@ FILTER="$2"
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) && [[ ! $YOU ]] && echo "ipfs NOT RUNNING. EXIT" && exit 1
if [[ ! $FILTER ]]; then
# We use `grep -Ev "];;` to filter out videos without an ipns link
MY_VIDEOS=`cat /home/$YOU/.zen/ipfs/.*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | grep -Ev "];;" | tail -n +2`
SWARM_VIDEOS=`cat /home/$YOU/.zen/ipfs_swarm/.*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | grep -Ev "];;" | tail -n +2`
(echo "$SWARM_VIDEOS" && echo "$MY_VIDEOS") | tac
# We use `grep -Ev "];;` to filter out videos without an ipns link
MY_VIDEOS=`cat /home/$YOU/.zen/ipfs/.*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | grep -Ev "];;" | grep -Ev "CAT;TMDB;"`
SWARM_VIDEOS=`cat /home/$YOU/.zen/ipfs_swarm/.*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | grep -Ev "];;" | grep -Ev "CAT;TMDB;"`
(echo "$SWARM_VIDEOS" && echo "$MY_VIDEOS") | tac
else
MY_VIDEOS=`cat /home/$YOU/.zen/ipfs/.*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | grep -Ev "];;" | tail -n +2 | grep "$FILTER"`
SWARM_VIDEOS=`cat /home/$YOU/.zen/ipfs_swarm/.*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | grep -Ev "];;" | tail -n +2 | grep "$FILTER"`
(echo "$SWARM_VIDEOS" && echo "$MY_VIDEOS") | tac
MY_VIDEOS=`cat /home/$YOU/.zen/ipfs/.*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | grep -Ev "];;" | grep -Ev "CAT;TMDB;" | grep "$FILTER"`
SWARM_VIDEOS=`cat /home/$YOU/.zen/ipfs_swarm/.*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | grep -Ev "];;" | grep -Ev "CAT;TMDB;" | grep "$FILTER"`
(echo "$SWARM_VIDEOS" && echo "$MY_VIDEOS") | tac
fi

Loading…
Cancel
Save